Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 620 Bytes

C++.md

File metadata and controls

40 lines (32 loc) · 620 Bytes

https://cplusplus.com/doc/tutorial/ https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

#include <iostream>
// main.cpp:
int main(int argc, char *argv[]) {
        std::cout << "hello world" << std::endl;
        return 0;
}
int a = 0;
int b(0); // same declaration
string s1 = "str 1";
string s2("str 2");

3.14159 // 3.14159
6.02e23 // 6.02 x 10^23
1.6e-19 // 1.6 x 10^-19
3.0 // 3.0

75 // decimal
0113 // octal
0x4b // hexadecimal

75 // int
75u // unsigned int
75l // long
75ul // unsigned long

true
false

condition ? result1 : result2

debugger

described in C