What's this?

Mar 14, 2013 at 2:40am
cin.get();
Last edited on Mar 15, 2013 at 5:00am
Mar 14, 2013 at 3:05am
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
Mar 14, 2013 at 3:07am
Sr. DTS. Can't Understand. Can you help me?
Mar 14, 2013 at 3:10am
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);
Mar 14, 2013 at 3:38am
Variable names?
Last edited on Mar 15, 2013 at 5:00am
Mar 14, 2013 at 3:40am
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
Mar 14, 2013 at 3:48am
cin.get???
Last edited on Mar 15, 2013 at 4:59am
Mar 14, 2013 at 3:49am
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.