ACM and eclipse for C ++ configure the mingw GCC compiler. Differences between vs compiler and GCC

Source: Internet
Author: User

I recently practiced the questions above ACM.

If the run result is named correctly, it cannot be passed.

I think it is a problem with the compiler.

ACM is generally a GCC compiler.

It seems that it is better to use eclipse.

Next to eclipse for C ++ on the official website

Next, the GCC compiler for mingw.

Configuration is OK.

Use of eclipse for C ++:

1. if an error occurs during running, first build and then run.

2. If you are prompted that you do not have the access permission during running, end the C ++ file you wrote in the Process Manager.Program.

Vs compiler and GCC

Difference 1 malloc initialization:

Int * s;

S = (int *) malloc (strnum * sizeof (INT ));

This method is used to generate an array. In vs, It is not initialized, that is, it is placed with unknown content.

In GCC, the initialization is 0!

Related Article

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.