Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@skabber
Created March 29, 2014 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skabber/9863324 to your computer and use it in GitHub Desktop.
Save skabber/9863324 to your computer and use it in GitHub Desktop.
// https://twitter.com/skabber/status/449702060049457153
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
struct card {
int rank;
std::string suit;
} c = {3, "clubs"};
printf ("%d of %s ", c.rank, c.suit.c_str());
}
// outputs
// 3 of clubs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment