新年快乐! [英] Happy New Year!

查看:78
本文介绍了新年快乐!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#include< iostream>

int main()

{

使用命名空间std;


cout<<"祝所有人祝大家新年快乐!"<< endl;

}


-

Ioannis Vranos

http: //www23.brinkster.com/noicys

#include <iostream>
int main()
{
using namespace std;

cout<<"Best wishes for a Great Happy New Year to all!"<<endl;
}

--
Ioannis Vranos

http://www23.brinkster.com/noicys

推荐答案

Ioannis Vranos写道:
Ioannis Vranos wrote:
#include< iostream>

int main()
{
使用命名空间std;

cout<<"祝新年快乐新年快乐all!"<< endl;
}
#include <iostream>
int main()
{
using namespace std;

cout<<"Best wishes for a Great Happy New Year to all!"<<endl;
}



这应该给编译器警告。你声明int main(),但是

没有返回语句。


This should give a compiler warning. You declare int main(), but have
no return statement.


Jon Wilson写道:
Jon Wilson wrote:
Ioannis Vranos写道:
Ioannis Vranos wrote:
#include< iostream>

int main()
{
使用命名空间std;

cout<<"祝所有人祝大家新年快乐!"<< endl;
}
#include <iostream>
int main()
{
using namespace std;

cout<<"Best wishes for a Great Happy New Year to all!"<<endl;
}


这应该给编译器警告。你声明int main(),但是没有返回语句。


This should give a compiler warning. You declare int main(), but have
no return statement.




不在符合标准的编译器上。

Jonathan



Not on a conforming compiler.
Jonathan




" Jon Wilson" < js*@fnal.gov>在消息中写道

news:YJeBd.667039

"Jon Wilson" <js*@fnal.gov> wrote in message
news:YJeBd.667039


这篇关于新年快乐!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆