vc6.0出问题了
点击运行后总是弹出红笔标注的错误,有时候是exe文件,link文件缺失之类的,有说装另外的vc6.0,刚开始也有用,只是我把编译程序的存储地址改了一下就又不行了,想着再找个重装下的,只是找不到另外的了,怎么整这个程序。。。。是哪里出错了,改下能行不?发愁。。。。 你这么写 不出错才怪呢 别的不说 随便一看 system();要用这个函数就得包括windows.h这个头文件 还有 比如直接 main() ←_← 这是很老 的标准的写法了 ←_← 最起码 是
#include<stdio.h>
int main()
{
return 0;
}
吧 牡丹花下死做鬼 发表于 2014-8-5 17:41
还有 比如
直接 main() ←_← 这是很老 的标准的写法了 ←_←
#include <stdio.h>
#define PRICE 30;
void main()
{
int num,total;
num = 10;
total = num * PRICE;
printf("total = %d\n",total);
}
运行的这个试了一次,还是一样的错误提示 白晃 发表于 2014-8-5 18:12
#include
#define PRICE 30;
还是你的问题
#include <stdio.h>
//#define PRICE 30;
#define PRICE 30
void main()
{
int num,total;
num = 10;
total = num * PRICE;
printf("total = %d\n",total);
}
别老是说是编译器的问题 ←_← 牡丹花下死做鬼 发表于 2014-8-5 17:40
别的不说 随便一看 system();要用这个函数就得包括windows.h这个头文件
system 这个函数是在 <stdlib.h> 里面的吧 沉默默 发表于 2014-8-5 19:01
system 这个函数是在里面的吧
windows.h 这里的 :sweat: 大神们能给个VC++6.0的下载地址吗,下几个了都不能用,系统是W8.1的,谢谢了 转自:http://bbs.csdn.net/topics/120050960
1.看一下你是否有原来的这个工程的进程在运行.
2.cl.exe丢失.在VC根目录\vc98\bin下
3.cl.exe有问题.重装vc
4.使用VC时出现error spawning cl.exe解决方法
If you get this error, your roaming profile records an incorrect directory for the Microsoft Visual C++ installation on the PC. Consequently, Microsoft Visual C++ cannot locate the compiler executable. The problem occurs because Microsoft Visual C++ is not yet installed in a uniform directory across PCs. This inconsistency is being resolved actively, but slowly. In the mean time, here's a fix:
Exit Microsoft Visual C++.
Select Start -> Run... and enter regedit. This starts the registry editor.
Carefully navigate down this path:
H_KEY_CURRENT_USER
Software
Microsoft
DevStudio
6.0
BuildSystem
Componenets
Platforms
Win32 (x86)
Directories
Carefully right-click on the Directories key and choose Delete.
Exit from the registry editor.
这个问题通常在把VC先装在一个文件夹后又改装到另一个新的文件夹的地方后出现
页:
[1]