본문 바로가기

C++4

Naming Conventions 1. Snake Casebig_potato 2. Pascal CaseBigPotato 3. Camel CasebigPotato 4. UpperCamelCase 5. Hungarian NotationiBigPotatoNums 6. Kebab Casebig-potato(like naming a repository) ... Links to:  Python Naming Conventions https://visualgit.readthedocs.io/en/latest/pages/naming_convention.html C++ Core Guidelines Naming and layout https://isocpp.github.io/CppCoreGuidelin.. 2023. 8. 1.
Never ever do this mistake Never do these!(x) g++ -o test.cpp test(x) gcc -o test.cpp test Because it will completely delete your test.cpp. Do this (o)g++ test.cpp -o test I didn't want to know it. 2023. 7. 12.
My first g++ compile ever #include  #include  using namespace std; int main() {         string s = "ABCDEF"                 "GHIJKLMNOP"                 "QRSTUVWXYZ\n";        cout         return 0; } gcc is for compiling c source code.And g++ is for compiling c++ source code. Though you can use gcc to compile c++ source code, they recommend to use g++ to compile c++ source code. g++ test.cpp -o test./test The .. 2023. 7. 12.
using namespace std When we use names of variables, functions, etc., we use one unique name in one namespace. We can use a variable name "num" in one namespace, and the same name in another namespace. And it can be used like the following: N1::numN2::num Of course, they are different variables. By typing "using namespace std" after typing "#include ", we can use names in the standard library directly like "cout" in.. 2023. 7. 2.