Skip to content

Commit d676eff

Browse files
committed
Add .gitignore and base hello world code
1 parent fecd720 commit d676eff

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Compiled object files
2+
*.o
3+
*.obj
4+
5+
# Precompiled Headers
6+
*.gch
7+
*.pch
8+
9+
# Compiled Dynamic libraries
10+
*.so
11+
*.dylib
12+
*.dll
13+
14+
# Compiled Static libraries
15+
*.a
16+
*.lib
17+
18+
# Executables
19+
*.exe
20+
*.out
21+
*.app
22+
*.elf
23+
24+
# Debug files
25+
*.dSYM/
26+
*.su
27+
*.idb
28+
*.pdb
29+
30+
# CMake build folders
31+
/build/
32+
[Cc]MakeCache.txt
33+
[Cc]MakeFiles/
34+
cmake_install.cmake
35+
Makefile
36+
37+
# Qt Creator
38+
*.pro.user
39+
*.qmake.stash
40+
41+
# Visual Studio Code
42+
.vscode/
43+
*.ilk
44+
45+
# CLion
46+
.idea/
47+
cmake-build-*/
48+
49+
# Other
50+
*.log
51+
*.tmp
52+
*.swp
53+
*~
54+
.DS_Store
55+
Thumbs.db

simple_cpp/input.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
5
2+
6

simple_cpp/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main() {
5+
cin.tie(0); ios_base::sync_with_stdio(0);
6+
int a, b;
7+
cin >> a >> b;
8+
cout << "Hello, Tsinghua SSSP!" << endl;
9+
cout << "The sum of " << a << " and " << b << " is " << a + b << "." << endl;
10+
return 0;
11+
}

0 commit comments

Comments
 (0)