Home > Back-end >  Help!!!!!! C input problem
Help!!!!!! C input problem

Time:10-28

Changed the scanf cin input into Chinese, also not line, change the encoding format or not!!!!!!

Big help!

CodePudding user response:

Vacode is inherently unsuitable for Chinese... What are you fight with a rolling pin, this is not for fun

CodePudding user response:

Vscode, suggest you change a compiler

CodePudding user response:

Input is ok, seen others success, as for how to succeed, go hard with the

CodePudding user response:

In c + + do not, I just learned he, also, you can use the gets (char variable), but is a character array

CodePudding user response:

Header file change # include

CodePudding user response:

Open notepad, open the CPP, save as, look at the bottom right hand corner is UTF8, save for a change as more, such as GB2312, UTF8 give it a try, it's a bit like code of CPP code and the console code does not match,

CodePudding user response:

Try a type string
 
# include & lt; Iostream>
# include & lt; string>

using namespace std;

Int main ()
{
String s;
Cin & gt;> s;
Cout & lt; <"Show:" & lt; return 0;
}

Suggest writing the code and Spaces
  • Related