Created
May 12, 2020 07:36
-
-
Save srz-zumix/d7cb023d282d40015bed4ad5a625c8d6 to your computer and use it in GitHub Desktop.
Wandbox-api sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This file is a "Hello, world!" in C++ language by GCC for wandbox. | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include "test.h" | |
| int main() | |
| { | |
| #if defined(TEST) | |
| std::cout << "test" << std::endl; | |
| #else | |
| std::cout << "Hello, Wandbox!" << std::endl; | |
| #endif | |
| return test(); | |
| } | |
| // GCC reference: | |
| // https://gcc.gnu.org/ | |
| // C++ language references: | |
| // https://cppreference.com/ | |
| // https://isocpp.org/ | |
| // http://www.open-std.org/jtc1/sc22/wg21/ | |
| // Boost libraries references: | |
| // https://www.boost.org/doc/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cstdlib> | |
| #include "test.h" | |
| int test() | |
| { | |
| std::cout << "test" << std::endl; | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment