Example code:
bool running = true;
while (running == true) {
int x;
cout << "Enter an integer: ";
cin >> x;
string y;
cout << "Enter a string: ";
cin >> y;
first.S_Return(x);
first.S_Return(y);
x=null; // null is not a recognised integer
y=null;
system("PAUSE");
}
What I'm wondering is,
If I wanted to re-initialize any data types to a value of null, such as when they are being declared is there any way to do this like a clear, delete, set to null method ect. Or would do I need to delcare a pointer and place them on the heap using new and delete?