用vc进行调试时总是提示找 不到*.cpp文件

lantian3 2004-11-18 09:25:59
我在用vc进行调试时总是提示找 不到*.cpp文件,而不能进行,希望各位告诉我这是怎么回事.现我举个例子说明.
hello 程序:
#include"iostream.h"

void main()
{
cout<<"Hello Word!\n"<<endl;
}

我按f10,运行到最后时提示:Please enter the path for crto.c
此时不关你选择哪个路径都回提示:No file by that name was found in this directory.
如果选择cancle则进入汇编语言界面,继续按F10直至结束,结果界面没有内容.

如果开始时按F11,则运行到cout语句行时提示,Please enter the path for ostream.cpp,然后和上面所说情况相同,
这里选cancle继续按F11接着会提示:,Please enter the path for iso.h
选cancle,继续 会提示,Please enter the path for strlen.asm
每次都选cancle相序提示:,Please enter the path for dbendw.cpp
,Please enter the path for streamb.h
,Please enter the path for iostrini.cpp
,Please enter the path for streamb.cpp
,Please enter the path for filebug.cpp
,Please enter the path for onexit.c
,Please enter the path for dbgheap.c
,Please enter the path for dbhook.c
,Please enter the path for expand.c
,Please enter the path for malloc.c
,Please enter the path for sbheap.c
,Please enter the path for memset.asm
,Please enter the path for streamb.h
,Please enter the path for iostrini.cpp
,Please enter the path for ostream.cpp


等等,很多这样的提示,(注:每次都选择cancle,并接着按F11)
我不知道这是为什么,我直接运行的时候是正确的,但分部时就提示这么多错误,我希望各位能给我一个答复.
...全文
2194 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
jilei82 2004-11-19
  • 打赏
  • 举报
回复
文件名要以.cpp为后缀。
  • 打赏
  • 举报
回复
你VC安装的问题,在Option / Dirs / source files / 下面加上你的CRT目录,MFC/SRC等路径.
zhaoshichu 2004-11-19
  • 打赏
  • 举报
回复
你编写的程序在保存时是保存成了.cpp文件吗
csdnlady 2004-11-19
  • 打赏
  • 举报
回复
可能是你的配置文件有错误或者文件扩展名不对
张志龙 2004-11-19
  • 打赏
  • 举报
回复
#include <iostream>
using namespace std;
lantian3 2004-11-19
  • 打赏
  • 举报
回复
我建立就是一个.cpp文件,我装的是创天的企业版有问题么?直接运动行的时候,有时候就停住不动
单步就出现上面的问题
xuzheng318 2004-11-18
  • 打赏
  • 举报
回复
头文件不对!
#include <iostream>
using namespace std;
边城狂人 2004-11-18
  • 打赏
  • 举报
回复
#include <iostream>
using namespace std;
dongyuanzhang 2004-11-18
  • 打赏
  • 举报
回复
注意程序的后缀是.c还是.cpp

65,201

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧