What's this?

cin.get();
Last edited on
closed account (Dy7SLyTq)
oh sorry i was misunderstanding you. so when ever you have cout just write printf("message %variabletype", corresponding variable)
and same with scanf
Sr. DTS. Can't Understand. Can you help me?
closed account (Dy7SLyTq)
ok so lets say i have a variable int x = 10; then say i
cout<<"The value of x is "<< x << endl;
how i would write that with printf("The value of x is %d", x);
with scanf it would be scanf("%d", &x);
Variable names?
Last edited on
closed account (Dy7SLyTq)
oh ummm. i only use cin.get to pause. so sorry i dont kn.... wait you could try getchar() in a for loop
cin.get???
Last edited on
closed account (Dy7SLyTq)
look up a page on printf. idk what the conversion rate between setw and %int is
Topic archived. No new replies allowed.