C++ Language Basics Part I - CMU School of Computer Science
https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15211/spring.96/www/cxxbasics_one.html
WEBcin >> b; // equivalent to scanf("%d", &b); cin >> d; // equivalent to scanf("%lf", &d); cin >> str; // equivalent to scanf("%s", str); cout << "The sum of a and b is"; cout << a + b; cout << "\n"; } First, the file iostream.h is a standard C++ header file that defines cin, cout, and the operators << and >>.
DA: 40 PA: 12 MOZ Rank: 21