标题:求教:vc ++ 6.0 编译0 erros,但link出错。
取消只看楼主
hongyijia
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-2-20
 问题点数:0 回复次数:0 
求教:vc ++ 6.0 编译0 erros,但link出错。

我刚学c++
求教:vc ++ 6.0 编译能通过,但link出错。
很简单的一段程序啊,估计vc++软件的问题,哪儿不对呢?
//Fig.1.2:fig01_02.cpp
//A first programe in c++
#include <iostream>
begins programe execution
int main()
{
std::cout <<"welcome to c++!\n";

return 0;
} //end function main
//function main
--------------------Configuration: greet - Win32 Debug--------------------
Compiling...
greet.cpp
C:\greet\greet.cpp(4) : error C2146: syntax error : missing ';' before identifier 'programe'
C:\greet\greet.cpp(4) : error C2501: 'begins' : missing storage-class or type specifiers
C:\greet\greet.cpp(4) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

greet.exe - 1 error(s), 0 warning(s)

[此贴子已经被作者于2006-2-20 10:14:01编辑过]

搜索更多相关主题的帖子: link erros greet 编译 cpp 
2006-02-20 10:08



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-46272-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.190474 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved