C++ shell - 在线 C++ 编译器
- 1. C++ shell
- 2. Example program
- 3. Options
- 4. Execution
- References
1. C++ shell
C++ Shell v2
https://cpp.sh/
https://cpp.sh/about.html
C++ Shell v2, free online compiler, proudly uses emscripten to compile your code.
emscripten is a clang-based compiler toochain that produces WebAssembly code, which can run directly in most modern browsers.
Using cpp.sh, your code is compiled on the server, and its wasm-code equivalent is produced. This code is then safely run locally in a Web Worker on your own browser.
Please, note that due to the limitations of the target platform, certain system calls may fail.
2. Example program
// Example program
#include <iostream>
#include <string>
int main()
{
std::string name;
std::cout << "What is your name? ";
getline (std::cin, name);
std::cout << "Hello, " << name << "!\n";
}
3. Options
4. Execution
References
[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/
[2] C++ shell, https://cpp.sh/