| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2059 人关注过本帖
标题:哪错了????、
只看楼主 加入收藏
q164928566
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-4-13
结帖率:0
收藏
已结贴  问题点数:20 回复次数:5 
哪错了????、
// myfirst.cpp -- displays a message

#include <iostream>// a PREPROCESSOR directive
int main()// function header
{// start of function body
    using namespace std;// make definitions visible
    cout << "Come up and C++ me some time.";// message
    cout << end1;// start a new line
    cout << "You won't regret it!" <<end1;// more output
    cin.get() return  0;// terminate main()
}// end of function body
搜索更多相关主题的帖子: start body cout main function 
2020-04-13 11:48
q164928566
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-4-13
收藏
得分:0 
说是第八行第十行有误
2020-04-13 11:49
lin5161678
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:45
帖 子:1136
专家分:3729
注 册:2011-12-3
收藏
得分:7 
    cin.get(); return  0;// terminate main()

https://zh.
2020-04-13 12:13
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:528
帖 子:9007
专家分:53942
注 册:2011-1-18
收藏
得分:7 
end1 似乎也不对,应该是
endl
2020-04-13 13:37
万致远醉帥
Rank: 2
等 级:论坛游民
威 望:1
帖 子:88
专家分:35
注 册:2020-3-24
收藏
得分:7 
程序代码:
// myfirst.cpp -- displays a message

#include <iostream>// a PREPROCESSOR directive
int main()// function header
{// start of function body
    using namespace std;// make definitions visible
    cout << "Come up and C++ me some time.";// message
    cout << endl;// start a new line
    cout << "You won't regret it!" << endl;// more output
    cin.get(); return  0;// terminate main()
}// end of function body
改好了,给你

我们遇到什么困难,也不要怕,微笑着面对他,消除恐惧的最好方法就是面对恐惧。
2020-04-14 11:31
万致远醉帥
Rank: 2
等 级:论坛游民
威 望:1
帖 子:88
专家分:35
注 册:2020-3-24
收藏
得分:0 
[fly]
程序代码:

// myfirst.cpp -- displays a message #include <iostream>// a PREPROCESSOR directive int main()// function header {// start of function body using namespace std;// make definitions visible cout << "Come up and C++ me some time.";// message cout << endl;// start a new line cout << "You won't regret it!" << endl;// more output cin.get(); return 0;// terminate main() }// end of function body

[/fly]

我们遇到什么困难,也不要怕,微笑着面对他,消除恐惧的最好方法就是面对恐惧。
2020-04-14 11:35
快速回复:哪错了????、
数据加载中...
 
   



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

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