Problems with classes... just starting out w/ them.
I cannot figure out the proper way to implement classes, I have just begun learning about them and I am trying to wrtie a program to take a first name, last name, social security number, birth year, birth month, and birth day, and return them... here's what I have..
Code:
// person.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <iostream>
#include "person.h"
using std::cout;
using std::cin;
using std::endl;
void Get_Input (char* name, char* lname, char* soc){
cout <<"Input a name ";
cin >> name;
cout <<"Input a last name ";
cin >> lname;
cout <<"Input a SSN (9 digits) ";
cin >> soc;
}
int main (void)
{
char* name;
char* lname;
char* soc;
Person::SetfName(name);
name = Person::GetfName;
cout << name << endl;
}
I thought the ~ was for Destructors?
Correct me if I am wrong but I thought destructors used the ~.