An open API service indexing awesome lists of open source software.

https://github.com/piyush-linux/learn-cpp-with-piyush


https://github.com/piyush-linux/learn-cpp-with-piyush

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# CPP

1. Learn Only Basic (Dont Dug Much)
2.

## Setup
+ Vscode Setup
- c++ Extension
- task.json
- Layout: main.cpp, input.txt, output.txt
+ Sublime
- c++ Completion
- sublimeAStyleFormatter
- sublime> tools> c++
+ Browser
- https://wandbox.org/

## Projects
1. Hello World
2. Calculator
3.

### Two Sum

```
Example 1:
Input: nums = [2,7,11,15], target = 9
Output: [0,1]
Explanation: Because nums[0] + nums[1] == 9, we return [0, 1].

Example 2:
Input: nums = [3,2,4], target = 6
Output: [1,2]

Example 3:
Input: nums = [3,3], target = 6
Output: [0,1]

```

```cpp
#include
using namespace std;

int main(){

cout << "Hello World!";
int num[5] = {4, 3, 7, 2, 0};
for (int i = 0; i < 5; i++) {
cout << cars[i] << "\n";
}

return 0;
}
```

###