could someone tell me what the "%7s" means in this:
scanf("%7s",&record.field3);
Printable View
could someone tell me what the "%7s" means in this:
scanf("%7s",&record.field3);
Maximum field length. Only inputs a string of length 7.
I thought scanf was C. :confused:
It is from C, but C++ includes all C.
Would there be any upside to using scanf instead of cin?