Categories
C Programming Development

c = getchar()) != ' N' and for loop

learnedfor loop,In practice when it came to getchar()) != ‘n’ The problem。I.e.while loopSo that in thefor loopEnter the void (to be treated as a character。)

All to known,getchar functionUsed to get the character,And if the direct use in a loop,It found that the situation will not be able to press enter characters into the system。The reason is the carriage return character is so ~,At the same time we want to add[……]

Click link to continue reading...

Categories
C Programming Development

The c programming is really not a good book in the baby in the baby

I continue to read this. "C Programming》,It isHemopurificationThat this,Third Edition。I bought it was genuine,Really I do not know why so many people recommend this book online,day!

About thatvoid main () error shakingI do not do more than Tucao,,,

Saying today do exercises,Decisively I found a mistake。

In book 89,Exercise Exercise 4.5, his title was an example of this is the:[……]

Click link to continue reading...

Categories
C Programming Development

After you set syntax highlighting for VIM and sometimes invalid

I am learning c programming language did not use the old-fashioned tc2.0, nor with the new tc,Before school is under linux,Learn to give up after a short time。

Now before you start,It lion in,Using the console + vi (vim) + gcc compiler。

About vi highlighting syntax and set the first line indent, etc.,Well, IPrevious articleAlso introduced a solution,With them was quite pleasant。[……]

Click link to continue reading...

Categories
C Programming Development

How to learn C language

Today, the Internet search boring article,Find this,not bad,Cool shell network,Ok,,Posts to Favorites。Original linkhere

I believe,This may be a problem a lot of friends,I used to feel that way,Program compiled to a certain time,Ability to find the bottleneck,Neither deep,Nor solid,Dabbler。such as:Your long-term use of Java and .NET ,These virtual machines are convenient language for the development of convenience,But for programmers[……]

Click link to continue reading...

Categories
C Programming Development

Vi to write about it! Under OS X lion learn programming。

 

 

These days start learning a programming language c,Recommended for all programmers introductory language,Watching "c programming" Oh I still feel Alexander。This book should not be the best course of it,But I happen to have this book and the corresponding guidance,It will be on the read。

I am learning to program in lion under,So directly down the Xcode,Oh,Of course, I really would not use[……]

Click link to continue reading...