Created
March 1, 2019 03:41
-
-
Save samwightt/6df81e251da1d37b3f7399ee54c55837 to your computer and use it in GitHub Desktop.
Struct
This file contains hidden or 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
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