输入输出流的三种写法.....?

在学校机房和学弟学妹混,然后就自己去搜了搜递归,然后看见一个熟悉而又陌生的符号“std:”,才疏学浅又不乐于钻研,就以为是自己还没学的神犇程序,

 

今天略闲......?就搜了一下。

 

coding真神奇。

 

 

#include <iostream> int main() { using std::cout; using std::endl; cout << "Hello, world" << endl; return 0; }


#include <iostream> using namespace std; int main() { cout << "Hello, world" << endl; return 0; }


#include <iostream> int main() { std::cout << "Hello, world" << std::endl; return 0; }

 

 

然后我还发现,for循环的好几冲写法....

 

posted on 2018-08-14 09:05  林裕安  阅读(337)  评论(0编辑  收藏  举报

导航