注册 登录
编程论坛 C++教室

哪错了????、

q164928566 发布于 2020-04-13 11:48, 2499 次点击
// 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
5 回复
#2
q1649285662020-04-13 11:49
说是第八行第十行有误
#3
lin51616782020-04-13 12:13
    cin.get(); return  0;// terminate main()
#4
rjsp2020-04-13 13:37
end1 似乎也不对,应该是
endl
#5
万致远醉帥2020-04-14 11:31
程序代码:
// 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
改好了,给你
#6
万致远醉帥2020-04-14 11:35
[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]
1