https://github.com/sahil-rajwar-2004/cpp.py
compile and run C++ files in python environment
https://github.com/sahil-rajwar-2004/cpp.py
cpp python
Last synced: about 1 year ago
JSON representation
compile and run C++ files in python environment
- Host: GitHub
- URL: https://github.com/sahil-rajwar-2004/cpp.py
- Owner: 0xhilSa
- License: mit
- Created: 2024-03-09T18:36:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T18:11:58.000Z (over 2 years ago)
- Last Synced: 2025-04-09T07:39:23.947Z (over 1 year ago)
- Topics: cpp, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ***cpp.py***
## compile and run C++ files in python environment :)
## Essentials
#### 1. `python` >= 3.0
#### 2. `C++` compiler should installed on your system
## Installation
```bash
git clone "https://github.com/Sahil-Rajwar-2004/cpp.py.git"
cd cpp.py
python setup.py sdist bdist_wheel
cd dist
pip install
```
### Implemetation
```python3
from cpp import CPP
src_code = """
#include
using namespace std;
int main(){
cout<<"Hello World"<