Created
March 29, 2014 21:26
-
-
Save skabber/9863324 to your computer and use it in GitHub Desktop.
This file contains 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
// 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