Skip to content

Instantly share code, notes, and snippets.

@speedsticko
Created February 7, 2013 19:08
Show Gist options
  • Save speedsticko/4733308 to your computer and use it in GitHub Desktop.
Save speedsticko/4733308 to your computer and use it in GitHub Desktop.
How are objects constructed? objects, pointers, stack, heap?
#include "MyObject.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
auto o1 = new MyObject();
MyObject o2;
char line[80];
cin>>line;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment