Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Created May 12, 2020 07:36
Show Gist options
  • Select an option

  • Save srz-zumix/d7cb023d282d40015bed4ad5a625c8d6 to your computer and use it in GitHub Desktop.

Select an option

Save srz-zumix/d7cb023d282d40015bed4ad5a625c8d6 to your computer and use it in GitHub Desktop.
Wandbox-api sample
// 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/
#include <iostream>
#include <cstdlib>
#include "test.h"
int test()
{
std::cout << "test" << std::endl;
return 0;
}
int test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment