Categories
C Programming Development

main (int ac, char * of[])和 main(int argc,char *argv[]) Of some of my understanding

Observance of the whereabouts of the 100th article,,,Although the content is somewhat illegible

Yesterday, see route on the main (int argc,char *argv[]) The article feels written brief said such a function

Of course first contact functions of this function is not the main (int argc,char *argv[]) But the main (int AC, ch[……]

Click link to continue reading...

Categories
C Programming Development

c language command-line arguments argc,argv

Start

int main(int argc, const char * argv[])

In the C language learning time,We are writing a program,Then view the results in a terminal run,Enter a number, and so on ...... do not know if you have not tried it allows you to write programs that can accept parameters like system commands it? For example,:ls -al like this。

If you wish to do so,Like that above[……]

Click link to continue reading...

Categories
C Programming Development

Commonly used strings in c-number function

atof(To convert a string into a floating-point number)

Related Functions atoi,atoll,strtod,strtol,strtoul
Header Files #include <stdlib.h>
Defined Functions double atof(const char * nptr);

Function Description atof()It will scan parameters nptr character[……]

Click link to continue reading...

Categories
C Linux

How to install Linux under the C development environment

Foreword

This article will guide you with detailed steps to deploy C-language development environment under Linux,Due to numerous Linux distributions,Specific circumstances vary,As used herein, the classic example of RHEL5。

Installation under Linux C development kit

Linux C development kit can be installed under the yum service,You can also use iso CD installation source files via the command rpm,Here use is[……]

Click link to continue reading...

Categories
C Linux

C development environment under Linux Introduction

Lead

Linux operating system kernel is mainly written in C,Many Linux software is written in C,For example, MySQL、Apache, etc.。Beginners When compiling such software,You will encounter a variety of errors,Just a preliminary understanding of the Linux C development environment,Preferences can resolve some errors during installation。

Linux's C Development Kit

Linux C development environment with the Wind[……]

Click link to continue reading...

Categories
C

About pointers in c language in some of the experiments

We learnpointerWhen there may be a lot of things so that we confuse so I use a few small experimental program to give you answers to your questions:

First, from the definition, the variable is a pointer to the address stored in the variable。

Unary operator * is the indirection or dereference operator

Unary operator&Take for an object address,It can only be applied to objects in memory

That * (indirection obtained[……]

Click link to continue reading...