Skip to content

Commit 7064167

Browse files
committed
test02.cpp
1 parent c04885e commit 7064167

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

section1/test02.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) 2020 by Chrono
2+
//
3+
// g++ test02.cpp -std=c++11 -o a.out;./a.out
4+
// g++ test02.cpp -std=c++14 -o a.out;./a.out
5+
//
6+
7+
#include <iostream>
8+
9+
10+
void case1()
11+
{
12+
using std::cout;
13+
using std::endl;
14+
15+
cout << "using std::xxx" << endl;
16+
}
17+
18+
void case2()
19+
{
20+
using namespace std;
21+
22+
cout << "using namespace std" << endl;
23+
}
24+
int main()
25+
{
26+
case1();
27+
case2();
28+
}

0 commit comments

Comments
 (0)