use enter key to exit
how do i use the entee button to exit a program, lookie here:
#include <iostream.h>
using namespace std;
int main() {
unsigned char x[9];
cout<<"Input an 8 letter or less password: ";
cin>>x;
cout<<"Your password was: "<<x<<"\n";
cin.get(); <-----------------|
|
return 0; |
} |
|
i thought that would do it!. |
y not? ----------------------|
isnt cin.get() supposed to do it?:(
MÃ
§~|~®GÃ(v)R~
__________________
-Stuart Smith
|