In fact, before this, I always thought that gcc and g++ is a thing, just have two different names only, today in Linux under the compilation of a C code error only to find the difference between GCC and g++.First describe the error you encountered
First describe the error you encountered today:Because before writing the program, write is CPP file, and then directly use g++ compile, no error, also did not care about these problems, today there is a C file, but contains after the STL vector
Switch GCC, G ++, and gfortran versions in Ubuntu
Step 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran
Part 2: first, let's take a look at the gcc commands installed
Fundamental differences:Hduoj, g++ use is mingw,c++ with Msvc;mingw I/O speed is relatively slow, this is also some people with g++ timeout, and C + + AC ReasonDifference One:1, the output double type, if the use of g++ submission, scanf
The sort command helps us sort by different data types and is very efficient to sort, so it's also a very common command.Sort reference and Description: https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.htmlThis paper mainly
Appendix B message, control notification, and message image macroB .1 some common window messagesDescription of parameters of the w m commandW m c r e at e sends this message, telling the window to initialize itself to send l p a r a m to C r e at e
1.GCC
GCC represents "GNU Compiler Collection", and GCC is a collection of compilers for the release of several major programming languages that currently include C,c++,objective-c, Java, Fortran, Ada, and go.
GCC has three layers of meaning: (1) as
Preface:
In a 16-bit environment, INT/unsignedint occupies 16 bits, and long/unsigned long occupies 32 bits.
In a 32-bit environment, int occupies 32 bits, unsignedint occupies 16 bits, and long/unsigned long occupies 32 bits.
When to use:
The range
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.