I just be a idiot, cause i just cant see why this C++ isn't working, well, it is working, but the cin.get() doesn't seem to hold the code when it ends like it should.
HERES THE FILE
and heres the code:
If anyone can explain why it doesn't keep the window open after the program has finished, i'd be very gratefulCode:#include <iostream> using namespace std; int main() { char string; int Z = 0; cout<<"Enter a String: "; cin>> string; cin.ignore(); "\n\n\n\n"; for(int x = 0; x < 10; x++) { for(int y = 0; y < Z; y++) { cout<<" "; } cout<< string << "\n"; z++; } "\n"; cin.get(); }
Ben


LinkBack URL
About LinkBacks
Reply With Quote
