CodePudding user response:
Baidu search, you speak good everywhere, the scanf, printf and cin, cout is the difference between the scanf is more suitable for use in a need formatted input, and cin, cout by iomanip formatted input and output is very troublesomeCodePudding user response:
Check the manual is good: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/scanf-scanf-l-wscanf-wscanf-l? View=v - 2019CodePudding user response:
# include
//the scanf printf and the header file is # include, here I use a universal header file
using namespace std;
Int main () {
int a;
The scanf (" % d ", & amp; A);//the scanf to add & amp;
Printf (" % d ", a);
return 0;
}//run it, have what problem can ask