Skip to content

Instantly share code, notes, and snippets.

@mbcarruthers
Created June 3, 2017 01:49
Show Gist options
  • Save mbcarruthers/fe2d6f885fdb6f7c6be773b96b42b4fc to your computer and use it in GitHub Desktop.
Save mbcarruthers/fe2d6f885fdb6f7c6be773b96b42b4fc to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main () {
class person = new class();
string name;
int age;
cout<<"what is your name "<<endl;
cin>>name;
person.name = name;
cout<<"cool beans"<<name<<"now what is your age?"<<endl;
cin>>age;
person.age = age;
cout<<"damn nigga, "<<name<<"i would have never guessed that you were"<<age<< " years old"<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment