Introduction to C language programming under Linux operating system

Source: Internet
Author: User
Tags command line

Here is a brief introduction to some of the entry-level knowledge of C + + programming on Linux/unix machines.

· Background knowledge required

· The basic environment needed for development

· Ways to get help

· Understand basic steps with an instance

Prerequisite Prerequisites:

To write a C program on Linux, you should at least be familiar with the following two basics:

1. C language Programming basis, at least to know some basic grammar, control process, such as programming common sense.

Common knowledge of standard C function libraries is common.

2. General knowledge of the operation of Linux/unix, master of commonly used shell commands, such as LS, CAT, CP, mkdir ... etc.

Environment Required Environment:

1. Linux/unix operating system, you can also use the Cygwin under Windows.

What we're talking about here is done with the shell command line. What if Linux goes into the graphical interface? As long as you open a terminal command, it's exactly the same as the command-line environment (open the Start menu to find the Terminal command).

2. Prerequisite Development tools:

1 Input program needs an editor. Commonly used are VI, Emacs. On the command line, enter VI, Emacs, ... You can enter the editing environment

About VI

About EMACS

2 C language Compiler. Commonly used is the GNU C compiler gcc (compiled C program), g++ (c + + program compiled).

About gcc/g++

About makefile >>>> for simplifying the compilation process

Here is an introductory article Linux under the C language Programming basics, you can first look at

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.