0

Hi

Why are these code in C++ something we use int () sometime is cin and this sign << https://sololearn.com/coach/260/?ref=app

31st Jul 2022, 12:34 AM
Nett
Nett - avatar
2 Respostas
+ 4
cin is pronounced "see-in". And is used for input, and uses the extraction operator (>>) cin >> x; cout is pronounced "see-out". Used for output, and uses the insertion operator (<<) string x; cout << "What is your name?: "; // Ask user their name cin >> x; // Get user input from the keyboard cout << "Hello: " << x; // Display the name value
31st Jul 2022, 2:45 AM
Chris Coder
Chris Coder - avatar
+ 1
Thanks for that. Im a beginner so there are many thing to learn.
31st Jul 2022, 4:35 AM
Nett
Nett - avatar