今天编程序发现我的vs出问题了,我对一个窗体程序修改了(删了一个按钮)但是运行结果却是原来没改之前的
VS没有调好,有个地方需要调一下,我以前也出现过这样的情况,不过忘记在哪调了,貌似在项目里调。
我用VS2010编写C,虽然我把代码修改了,但编译后运行结果还是修改前的结果啊?高手们请帮忙,尽量解答详细
把string.h改成string就好了。
另外,可以直接用命名空间std,你那样写有点麻烦。
#include iostream
#include string
using namespace std;
int main()
{
string word;
// read until end-of-file ,writing each word to a new line
while (cin word)
cout word endl;
system("pause"); //暂停一下,看结果
return 0;
}
VS2008更新数据库数据的时候,已经修改了文本框的值,但是调试程序的时候发现文本框的值并没有改变。
我分享下我的经验吧:
我最最大的体会就是代码能简约就简约,
更新=删除+添加
只要写一个数据库操作类:里面只有删除和添加操作就行
要用到的时候调用一下
反正你都是从文本框等获取信息的,先把原来的删除(调用一下方法),
再调用下添加方法就可以了。
**************************************************************分割线要华丽丽的***************
为什么要这么做呢?
因为更新你是不一定每次都是更新哪儿个字段,都是不确定的,所以每次都要重写sql语句
而删除和添加基本都是固定的,会减少出错的几率。
**************************************************************分割线要华丽丽的***************
以上纯属个人见解
vs切换了debug改的代码消失
软件bug。vs切换了debug后,更改代码后代码小时是软件出现bug导致的,VS是指MicrosoftVisualStudio,它是美国微软公司的开发工具包系列产品,是一个完整的开发工具集。
VS2010修改后运行不能改变依旧还是改之前的样子
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(29): error C2143: 语法错误 : 缺少;(字符串前面)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(29): error C2059: 语法错误:字符串
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(56): error C2143: 语法错误 : 缺少;({前面)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(56): error C2447: {: 缺少函数标题(否老式形式表?)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(627): error C2036: FILE *: 未知大小
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(629): error C2036: FILE *: 未知大小
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(733): error C2059: 语法错误:}
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(733): error C2143: 语法错误 : 缺少;(}前面)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(733): error C2059: 语法错误:}
1d:\c\atm\atm\atm\atmlogin.cpp(31): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(32): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(60): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(69): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(74): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(78): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(85): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(100): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(118): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(130): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(140): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(145): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(149): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(155): error C2036: FILE *: 未知大小
1d:\c\atm\atm\atm\atmlogin.cpp(163): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(194): error C2065: card: 未声明标识符
1d:\c\atm\atm\atm\atmlogin.cpp(267): warning C4172: 返回局部变量或临时变量地址
1 ATMdatum.cpp
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(29): error C2143: 语法错误 : 缺少;(字符串前面)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(29): error C2059: 语法错误:字符串
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(56): error C2143: 语法错误 : 缺少;({前面)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(56): error C2447: {: 缺少函数标题(否老式形式表?)
1d:\program files\microsoft visual studio 10.0\vc\include\stdio.h(627): error C2036: FILE *: 未知大小
我vs2011label大小能改变要设置啊还有textbook也样做起来麻烦求高手