Home > Back-end >  About the scanf and printf
About the scanf and printf

Time:09-16

Have not learned the scanf and printf, only learned cin cout someone can tell me

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 troublesome

CodePudding 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 - 2019

CodePudding 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
  • Related