Experience Summary: Many exams limit the amount of time the program runs, so it is important to choose the fastest programming language possible. In general, the language available for selection is C,c++,java and so on.
However, Java is relatively slow to execute, so it is more commonly used in C or C + +. Given that the C + + language is backwards compatible with C, and that C's input and output statements are much faster than C + +, we can use the C language in the main function. C + + features and features are very useful, such as variables can be defined at any time, with the Standard Template Library STL,
So, to a certain extent, we can mix some C + + languages.
The compiler's choice is individual, different exams may provide different compilers, depending on the situation to choose. But in general, the compiler may appear Vc6.0,vs series, dev-c++,code::blocks, etc., of which the VC6.0 standard is too old, many grammars in which there is no way to compile.
So try not to use it. Dev-c++,c-free,code::blocks is a handy compiler, recommended to use, depending on the situation to choose. The VS Series is a heavier compiler that can be used without other lightweight compilers to choose from. Eclipse is used for Java code writing.
Note: For C's scanf function and the printf function, the CIN and cout of C + + can be more convenient without specifying the input and output format.
But Cin and cout consume much more time than scanf and printf, and many topics may expire with an end input.
How to choose a programming language and compiler for the on-machine exam?