C++6.0,求大神帮忙ps看一下哪里出错误了?

这段程序在Visual C++ 6.0运行出错求大神指教_百度知道
这段程序在Visual C++ 6.0运行出错求大神指教
if (fopen(#include &lt.;
fclose(file);
printf(&File %s not found, lineText)!gets(caption) || (caption[0] == &#39: &
char lineText[512];) == 0)
printf(&quot.h&#include &lt.;);
getch(), file))
if (strnicmp(lineT;,\;nInput the caption.txt&quot, FileName.h& char caption[81];\));#include &lt.\
printf(&quot.h&gt.&int main(void){
} while (;Test1, strlen(caption)) == 0)
while (fgets(lineText.h&);const char* FileName = &%s&quot, FileName);nPress any key to continue, &rt&&#92, _countof(lineText);0'n&
return EXIT_SUCCESS#include &lt
提问者采纳
确定是运行出错么, FileNrt&quot, &) == 0)要改为if ((file=fopen(FileNrt&quot, &quot?编译都不过呀: if (fopen(file
这个的问题
说是countof的问题,undeclared identifier
_countof是哪里来的函数?
就是C++中计算静态分配数组中元素个数的高数
这个宏是不是在6.0的stdlib.h里面没定义?你可以用:#define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
提问者评价
太给力了,你的回答完美地解决了我的问题,非常感谢!
来自团队:
其他类似问题
为您推荐:
其他1条回答
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求大神解答,c语言课设问题,帮帮忙谢谢-中国学网-中国IT综合门户网站
> 信息中心 >
求大神解答,c语言课设问题,帮帮忙谢谢
来源:互联网 发表时间: 21:07:00 责任编辑:王亮字体:
为了帮助网友解决“求大神解答,c语言课设问题,帮帮忙谢谢”相关的问题,中国学网通过互联网对“求大神解答,c语言课设问题,帮帮忙谢谢”相关的解决方案进行了整理,用户详细问题包括: different types for formal and actual parameter 2C;function'Users&#92: warning C4024,x)==0) if(strcmp(stu[w]: warning C4047;Desktop\C; differs in levels of indirection from &#39.strcmp&#39:&#92: different types for formal and actual parameter 2if(strcmp(stu[w];char ' ; ;Desktop\strcmp'Users&#92: &#39: 'Desktop&#92: &#39.c(82) ;Desktop\zhaoxu.c(69) : 'zhaoxu.c(82) ;Administrator&#92: ' ; differs in levels of indirection from 'Users\C: warning C4047;Administrator\char &#39.c(69) ;Administrator\const char *'const char *'function&#39: 'zhaoxu:\Users\zhaoxu:&#92: warning C4024. :&#92C;Administrator&#92,具体解决方案如下:解决方案1:
这是用来比较字符串的您的num和x也要定义为字符串型才行
1个回答3个回答1个回答1个回答1个回答1个回答1个回答1个回答2个回答3个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答
相关文章:
最新添加资讯
24小时热门资讯
Copyright © 2004- All Rights Reserved. 中国学网 版权所有
京ICP备号-1 京公网安备02号为什么这个程序不能运行?我用的是Visual c++6.0 求大神帮忙改一下_百度知道
为什么这个程序不能运行?我用的是Visual c++6.0 求大神帮忙改一下
{ return a*b!&quot!=3&&i.加法 2;
cout&a&gt!.*(a.+ (a;&&
{ return a+b;&输入有误;& if(i;b;i,b:&quot.乘法 4;}
cout&lt,b);&lt?&void main(){ {public
else if(i==3)
cout&lt!=1&&i#include&lt.减法 3;&gt,int b);
{ return a/&&} }
};void main(){
one compu.除法),int b),int b);
{ return a-b;&
else if(i==4)
cout&输入你的操作(1;&one'
int *(int a,b).-(a!;}
int %( cin&请输入两个整数,int b);&lt!=4)
cout&&& cout&
else if(i==2)
cout&&&&&gt!=2&&i.%(a,b);&&using namespace std,b);'iostream&&
提问者采纳
&lt,& int&&plus(int& }};a;&==&& cin&&iostream&&std,&&&输入你的操作(1!=&;4) {
cout&nbsp: int&& else&2)
cout&&(i&&&&&nbsp,&(i&b);==&nbsp!;& cin&4;&&class&nbsp:&b) {
return&if&main(){ compu&a&(i&b) {
return& //cout&&&nbsp!=&&i;b); } int&+&nbsp!=&nbsp!=&b);&&using&&&& else&nbsp.mul(a;void& } int&nbsp这是哪里抄来的代码;&3;==&&&nbsp,&compu{&&&&one&&&&&& else&/& if&nbsp,&a& } cout&;1&输入有误;b;&&nbsp.plus(a;;if&&i&&;i&&&1)
cout&a;a; if&a;&&if&nbsp!;&gt,&b.加法&namespace&&&(i&i;&==&&请输入两个整数;b,&3)
cout&b.div(a;&&lt.minus(a;(i&b) {
return&div(int&&lt.乘法&i& } int&&2;endl,& cout&&int&&2&&int&&nbsp!&&a&minus(int&b;&&&int&&gt,&&b) {
return&&lt.减法&3&&-&&b);a*b;4)
cout&int&nbsp?乱七八糟的啊#include&int&mul(int&
return.除法)?&&a;a&nbsp
提问者评价
非常感谢!
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁急啊大神们:在运行中文版C++6.0的时候,出现Microsoft(R)DeveloperStudio已停止工作的问题怎么解决
急啊大神们:在运行中文版C++6.0的时候,出现Microsoft(R)DeveloperStudio已停止工作的问题怎么解决
我来告诉你标准答案!你用的应该是WIN7吧?是可以删了重装,但是不能只是简单地把文件夹删掉,再装好之后用控制面板的卸载程序,把VC的组件卸干净,再重新安装。再把主程序改为兼容至WindowsXPSP3应该就不会再出现问题了。希望可以帮到你!
其他回答 (1)
Vista/Win7不兼容Visual Studio 6.0及其更低版本,建议使用Visual Studio
相关知识等待您来回答
健康常识领域专家
& &SOGOU - 京ICP证050897号百度贴吧提示信息很抱歉,该吧被合并您所访问的贴子无法显示。系统将在秒后,自动跳转到严正声明:凡符合法律规定的投诉请求,百度将依法予以处理,且不收取任何费用。请采取正常投诉途径投诉,切勿相信不法分子收费删贴的欺诈行为。

我要回帖

更多关于 求大神帮忙ps 的文章

 

随机推荐