_A library that implements the powerful features of Python 3 in C++_
C++ has faster speed, while Python has powerful libraries. This library aims to port some of the powerful features of Python to C++, making C++ programming faster.
Run the following code on the terminal:
git clone https://github.com/C14147/EasyCpp.git
Then, you can copy it into your project. No additional operation required!
There is no code in the source file for generating static libraries or dynamic link libraries. If necessary, please manually edit and compile. Please note the open source agreement.
Refer to the wiki of this repository.
The warehouse already contains a test file (test.cpp). You can manually compile this file and check if the library is working properly. In addition, in future updates, some mini programs written using this library may be added. Here is an example of a guessing game for numbers:
#define PYTHON_FORMATED
#include"EasyCpp.h"
#include"String/String.h"
#include"FuncOptimize/func_io.h"
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace easycpp;
int main(){
srand(time(0));
int num = rand() % 100;
int guess = -1;
print(str("Guess A Number(0-100):"));
scanf("%d",&guess);
while(guess != num){
print(str("Wrong! Guess Again:"));
scanf("%d",&guess);
}
print(str("Right! The number is: {}").format(num));
system("pause");
return 0;
}