-
Just make an input judgment :
I just noticed that you are using C, and I started to think that you are using Delphi, which I saw in the Delphi team.
I'll change it to C. Hehe.
int z=0;
while (z!=1) and (z!=2)scanf("%i",&z);
if (z!=1) or (z!=2)
printf("You must enter either 1 or 2");
Here are Delphi's:
varz :integer;
beginz:=0;
while (z<>1) and (z<>2) do until 1 or 2 is entered
beginreadln(z);
if (z<>1) or (z<>2) thenwriteln('You must enter either 1 or 2');
end;end;
-
string s;
bool check = true;
Please enter 5 capital letters");
while (check)
elsecheck = false;}
else};
-
int i=0,j=0;First, define two variables to accept the input values if(,out i).
",i,j,i*j));
-
**Simpler,Don't comment.,If you don't understand, ask again.,If you're satisfied, adopt it!
using system;
namespace test,;}else,c);}else
-
c The entry point for the execution of the program is.
stathread]
static void main(string args)where (string args) is the parameter you enter and exit in the console, and you can output the information you require by judging the number of args.
Example [stathread].
static void main(string args)
-
I don't see what you mean, but your single and double quotes refer to specific commands.
using system;
using ; >>>More
The double buffer on the Internet refers to the program of the graphic mode,You are in character mode,If you want to brush fast,Not with double buffer,But to write the screen directly。
Basic command: cl showfps 0 1 off Displays the current fps value. >>>More
It is not recommended to play these, playing cheats will only ruin the game and have fun,
Have you activated the console? If you don't activate it, you first need to press the " " button on the keyboard to open the console, if it is a notebook press " " is invalid, you can also press "enter", that is, enter to open the console. >>>More