PS: This blog is small weak forced to write, is not voluntary. If you are practicing C language here, and you are lucky----go crazy, little is responsible! (hehe ~..) ~).
Small weak because brush network game of the puzzle brush not go down, and often have learned younger brother asked when to start teaching C language. Also forced by my beloved seniors---tang sister (I love so called him) pressure, so have this blog! Here is my nonsense, not afraid of the small partners can come in to see!
To learn a dongdong, first of all to understand its past life. (This sentence in my school 9+3+1=13 years, I do not know how many times I have heard!) )。 The following words are Cao Tan small dedication in the heavy sleep under the raving (with hanging almost) by my secretly recorded.
ask the reader to skip this paragraph: ramble about c/c++/ Java history: Created at Bell Labs. Based on the B language (don't ask the idiot "Why not a?") "---because of bell). Then the UNIX system was written in B then it didn't feel good, and then a guy created C language. And then rewrite the UNIX system in C language. Then this B was installed successfully, C language reputation big noise! Other people use it (the language is amazing-in the eyes of the group at that time), and then someone keeps perfecting it, (now window, and the programmer's favorite Linux operating system, is written in C). The C language went to her peak in life. Soon after, however, the object-oriented concept emerged as the scale of the software burst. Saw clouds all over the sky, the stars fly, earthshaking, a giant thunder in the air. C + + was born! See the momentum of C + + appearances, I have no need to describe her too much! Then, because C + + is too powerful, the average programmer can't control it (not everyone can digest the beauty of the Oh!). But most of the program apes think they've got her (C + +) And yet get just the body, not including the soul. So in the use of her left a variety of hidden dangers, or the error of their own but do not debug! So they began to loose, began a hunting career, is at this time and there is a dust-off of the "woman" Debut---java. Java is a combination of various restrictions on C + + evolution. To simplify C + +, she removed pointers in C + + and C, and the memory of God's horse was automatically assigned by the system (which, of course, meant restricting access to coder memory). Because she was subjected to various restrictions and encapsulation, so she is generally more plump, more stable gait (Java programs run slower!). By the way, because of their performance advantages, C/C + + is still in the charm! Generally if used in the background development, should be the C + +. But Java portability is good, the mobile end is written in Java. Now very fire and C #, because the small weak has not had time to learn, so dare not profane!
The C language and all programming languages are those old guys (mostly Yanks) in order for computers to recognize them on the keyboard (perhaps not the keyboard, early may be paper tape, cards!). In the end, I was talking about something, so we talked about it, with some specific characters representing the specific meaning. These characters form the C language. ----This is how the programming language was born.
All right! Gossip, the book belongs to the story!
// Please just look for a C language compiler, copy the following program // If you don't use the compiler, or you don't know what the compiler // Please self silently Baidu, download, install, learn to use // If you are too lazy to go to Baidu, please go out to meet the red light straight! #include<stdio.h>int main () { printf ("Whatfuck is You doing? " ); return 0
Don't ask why, just copy it and do it again.
#include <stdio.h>// // It's just that the code is used almost every program, so the guy who created the C language // write for us all, just use it! int main () {printf ( " what fuck is you doing? ); // output statement return 0
Then is the keyword, simple variable type, declaration statement, definition statement, operation symbol, loop structure, conditional structure, basic statement, array, string, struct, pointer, function, recursive function, living space and scope, memory model. These things in any of the C language books have, I do not say here (hehe!) I'm not writing a book. Estimate you understand the difficulty of the place, I have added the link! (Mad Point can be).
Your self-reading process ***************************************************
Well, the basic grammar you already have (inversion I suppose you already are!) OK, now you can knock some small programs.
You knock on your own procedure *****************************************************
*************************************************************************************************************** ***********
To this! You should have learned how to use C language! If you can insist on seeing here, and not swearing! (even if scold, I can not hear, do not scold on the comments on the good Oh!) Kiss!!! Congratulations, here are some practical stuff!
//Magical C-language input and output#include <stdio.h>intMain () {Doubleme =2222.2222222; printf ("%.0lf\n\n", ME); printf ("%.2lf\n\n", ME); printf ("%.10lf\n\n", ME); printf ("%10.0lf\n\n", ME); printf ("%2.2lf\n\n", ME); return 0;}
To be continued ~~~~~~
Little C's Story (Fast learning C language,,, Speed Edition!) )