vc编译的问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 14:10:22
本人学习c++,在vc6.0下将以串源代码复制后粘贴,点compile
Deleting intermediate files and output files for project 'Cpp1 - Win32 Debug'.
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
c:\documents and settings\administrator\my documents\cpp1.cpp(1) : fatal error C1021: invalid preprocessor command 'inlcude'
Error executing cl.exe.

Cpp1.exe - 1 error(s), 0 warning(s)
出现以上的提示,用别的代码试了下,一样的,估计是每设置或是有些什么东西不会。
学c的时候用的是win-tc,所以关于那些编译连接设置方面的东西不是很懂,给出解答请尽量详细,特别是点哪个建,给出相关的网站也可,可我没找到讲这方面的。

我原来用vc时,什么代码都有一个错误,包括hello,world.
后来重装了vc6.0就好了

inlcude和include是很不一样的

你把源码贴出来看看。
根据错误提示,可能是头部的include出现的问题。