Answer the question
In order to leave comments, you need to log in
How to add a scanf function parameter to the code so that punctuation marks are also read?
Punctuation marks like this(!"№;%:?*()_+,......)
here is part of the code
string str;
cout << "Vvedite slovo: ";
getline( cin, str );
cout < < "[COUT | CIN] " << str << "\n";
string s;
printf("%s","Slovo:");
scanf("%[az,AZ,0-9]s",s);
printf( "[SCANF | PRINTF] %s\n", s);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question