Skip to content

Instantly share code, notes, and snippets.

@jeffcrouse
Created October 11, 2013 14:23
Show Gist options
  • Select an option

  • Save jeffcrouse/6935474 to your computer and use it in GitHub Desktop.

Select an option

Save jeffcrouse/6935474 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
class Player {
public:
string name;
float xPos;
float yPos;
double timeAlive;
};
int main ()
{
Player p;
cout << "sizeof(p) = " << sizeof(p) << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment