I need help with void command
I have seen in some peoples code the command void. From what I understand, it would allow you to point a person to another part in the program. I have tried this, but could not figure it out. The main idea of what I would try to get, would be a concept of something along the following lines:
Code:
#include <iostream>
using namespace std;
int main()
//I want to define a place that can be refered to here.
{
cout<<"Hello.\n";
cin.get();
cout<<"Press return to restart the program.\n";
cin.get();
//I want it to refer to the point above when it reaches this point.
}
If anyone can help me with this code, please do. Thanks for the help.
Razorblade Kiss