basic_cpp_notes
basic_cpp_notes
1. Introduction
2. Basic Syntax
- Example:
#include <iostream>
int main() {
return 0;
- Example:
float pi = 3.14;
int number;
5. Control Structures
- switch
6. Functions
- Example:
return a + b;
7. Arrays
- Example:
8. Pointers
- Example:
- Example:
class Car {
public:
string brand;
void honk() {
};
10. Comments
- Single line: //
- Multi-line: /* */