Skip to content

Instantly share code, notes, and snippets.

@rweichler
Created December 8, 2015 22:24
Show Gist options
  • Save rweichler/9b18ffafe9dace3f7a01 to your computer and use it in GitHub Desktop.
Save rweichler/9b18ffafe9dace3f7a01 to your computer and use it in GitHub Desktop.
C++ sux
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
int x(5);
string s1("test");
printf("%d %s\n", x, s1.c_str());
return 0;
}
all:
clang++ cplusplussux.cpp -std=c++11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment