软件开发周末兼职:vc6初学,运行程序时没能和C命令出来?
来源:百度文库 编辑:杭州交通信息网 时间:2024/06/01 12:49:19
//这是我第一个c++程序
#include<stdio.h>
#include<iostream.h>
void main()
{
printf("你想不想学习c++语言?");
cout<<我要学习c++语言!\n"; //输出一行文本
}
--------------------Configuration: hello - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
hello.obj - 1 error(s), 0 warning(s)
hello.obj - 1 error(s), 0 warning(s)这个是什么意思?
#include<stdio.h>
#include<iostream.h>
void main()
{
printf("你想不想学习c++语言?");
cout<<我要学习c++语言!\n"; //输出一行文本
}
--------------------Configuration: hello - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
hello.obj - 1 error(s), 0 warning(s)
hello.obj - 1 error(s), 0 warning(s)这个是什么意思?
编译时产生一个错误
cout<<我要学习c++语言!(\n"); //把括号里的东西去掉试试吧。
我要学习c++语言!\n";
前面少了"吧