How to choose a programming language and compiler for the on-machine exam?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.