Skip to content

Instantly share code, notes, and snippets.

@samwightt
Created March 1, 2019 03:41
Show Gist options
  • Save samwightt/6df81e251da1d37b3f7399ee54c55837 to your computer and use it in GitHub Desktop.
Save samwightt/6df81e251da1d37b3f7399ee54c55837 to your computer and use it in GitHub Desktop.
Struct
include <iostream>
using namespace std;
struct thing {
int i;
string j;
}
int main(void) {
thing a = new thing;
thing->i = 5;
thing->j = "Hello";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment