Skip to content

Commit 5a03be8

Browse files
added notes document
1 parent b1c1ac4 commit 5a03be8

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

c++_Notes.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Compiling the code:
2+
3+
g++ command is a GNU c++ compiler invocation command, which is used for preprocessing, compilation, assembly and linking of source code to generate an executable file. The different “options” of g++ command allow us to stop this process at the intermediate stage.
4+
5+
6+
g++ hello_World.cpp
7+
8+
To output the binary code in the terminal ./helloWorld
9+
10+
Default compiled binary file name is a.out
11+
12+
13+
Commenting:
14+
15+
//this is a comment
16+
17+
Multi line comments...
18+
19+
/* This is all commented.
20+
std::cout << "hi!";
21+
None of this is going to run! */
22+
23+
Re-naming compiled files:
24+
25+
g++ hello_World.cpp -o hello.cpp
26+
27+
Data Types:
28+
29+
int = 9
30+
Char = e
31+
string = “this is string”
32+
Bool = True or False
33+
Floats = 1.9
34+
35+
36+
Int score = 9
37+
38+
Std::cin >> score >> “What do you want the new score to be? “
39+
std ::cout << score
40+
41+
42+
43+
44+

weight_Calculator/terminal_notes.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Change Directory
2+
3+
cd <dir> - change directory
4+
cd .. - go to parent directory
5+
6+
File And Directory Management:
7+
8+
mkdir <dir name> - make new directory
9+
touch <filename> - make new file
10+
11+
mv <filename> <filename> - rename file in current directory
12+
mv <filename> <dir> - move file into directory
13+
rm <filename> - delete file
14+
rm -rf <dir> - delete directory - Careful with this
15+
16+

0 commit comments

Comments
 (0)