VC中的cannot execute program 是什么意思

我的运行程序是这个
#include<iostream.h>
int main()
{
char * s1="hello";
char* s2="123";
char a[20];
strcpy(a,s1);
cout<<(strcmp(a,s1)==0 ? "" : "not")<<"equal"<<endl;
cout<<strcat(a,s2)<<endl;
cout<<strrev(a)<<endl;
cout<<strset(a,'c')<<endl;
cout<<(strstr(s1,"ell") ? "" : "not")<<"found"<<endl;
cout<<(strchr(s1,'c') ? "" : "not")<<"found"<<endl;
}
这个程序哪里错了,还是什么原因让它通不过

程序编译通过,仅说明程序本身无语法错误,并不意味着程序能够顺利的执行。3 内存操作的问题,用OpenCV进行图像处理时,大多是用指针进行操作,这涉及到内存操作的问题。比如:一指针已指向内存,但是没有赋值,也就是为空,当在另一处对该指针进行操作时,就会出错。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-05-23
cannot execute program无法执行程序

cannot [can·not || 'kænɒt]

v. 不可; 不足; 不克; 不能

execute [ex·e·cute || 'eksɪkjuːt]

v. 执行; 完成; 实行

program (Amer.) [pro·gram || 'prəʊgræm]

n. 节目, 计划, 程序

v. 规划, 安排...入节目, 拟...计划
第2个回答  2015-07-03
这个表明您的项目程序无法执行
原因:1、代码编译出错,不符合编译规则。
2、程序逻辑有误。
你程序里任何一个变量值都要定义。其中count和endl都没做任何定义。
相似回答