C++入门 输出Hello World
#include <iostream>using namespace std;int main(){
cout << "Hello, world!" << endl; return 0;}它等效于
#include <iostream>using namespace std;int main(){
cout << "Hello, world! \n"; return 0;}#include <iostream>using namespace std;int main(){
cout << "Hello, world!" << endl; return 0;}它等效于
#include <iostream>using namespace std;int main(){
cout << "Hello, world! \n"; return 0;}#include <iostream> using namespace std; int main() { if(1+1==2) { cout << "1+1=2"; }...
#include <iostream> using namespace std; class fenshu { public: int xuehao; int yuwen; }; ...
#include<iostream> using namespace std; int main() { cout << "The size of int is&nb...
#include<iostream> using namespace std; int sum(int a,int b);//函数声明 int main() { cout <<&nb...
#include<iostream> void print(); int main() { char a=0; for(a=0;a<20;a++) print(); return 0; } v...
/*C风格字符串的声明和使用 #include<cstdio.h> int main() { char x[]={'H','e','l','l','o','&...