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
- Host: GitHub
- URL: https://github.com/piyush-linux/learn-cpp-with-piyush
- Owner: Piyush-linux
- Created: 2024-03-26T10:29:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T10:31:31.000Z (over 2 years ago)
- Last Synced: 2025-04-08T14:13:55.856Z (over 1 year ago)
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
}
```
###