摘要: #include<iostream>usingnamespace std;int main(){ cout<<"This is";//看到这两个语句的输出结果,即使语句占两行, cout<<"C++!"; // 但输出结果仍为一行,且注意到输出中"is"和"C++"之间没有空格。 cout<<"\nWE can\njump\n\ntwo lines."; cout<<endl; cout<<"Here,we sho 阅读全文
posted @ 2012-06-21 15:57 蚂蚁踩死了大象 阅读(154) 评论(0) 推荐(0)
摘要: #include<iostream> //该行告知,程序包含了输入和输出库函数。usingnamespace std; //该行允许更好地访问C++内部资源,如输入和输出。int main() //该行表示main函数就要开始了。{ //该大括号开始一段代码块,这里是main函数体的开始。 cout<<"This is c++!"; //该行在屏幕上输出“This is C++!”。 return0;//} //该大括号结... 阅读全文
posted @ 2012-06-21 15:48 蚂蚁踩死了大象 阅读(186) 评论(0) 推荐(0)