Teach you how to start from a zero base white C language learning

I want to pry into the mysterious world of code? The best entrance is undoubtedly the C language.

C language computer-based architecture, the hardware may be operated downward (including a microprocessor ARM, DSP, microcontroller, etc.), it may also be a write driver, the OS to write, writing the compiler. Up further learning C ++, JAVA and other object-oriented language, then learning some of the graphical user interface frameworks such as Qt, MFC, you can make like a calculator, QQ and other Window desktop applications, such as another Android, you can make micro-channel and other Android applications, another example Unity3D, you can make a similar glory of the king, to stimulate the battlefield and other mobile games. Think about is not just a little excited about it!
Finally, if you if you encounter difficulties in learning, looking for a C ++ learning environment, can join our Learning Circle C ++, click I joined it , it will save a lot of time, reduce the number of problems encountered in the study.

Teach you how to start from a zero base white C language learning
Then we down to earth, step by step to go on it. How to start learning C language began, after the latter method will share detailed study of oh. Learn the C language, entered the door to the computer field for future learning C ++, Java and other object-oriented languages ​​are a great benefit.

The figure is a popular online programmer "contempt chain." In fact, I want to say is, there are still some truth, ha ha ha, laugh without wordsTeach you how to start from a zero base white C language learning

Teach you how to start from a zero base white to learn C language
as a "program ape Uncle," I summed up a few steps to learn the C language, other programming language learning method substantially similar, we want to help.

1. reading

Learning a programming language first learning basic grammar.

C language syntax include base data types, operators, expressions, array, logic operations, functions, pointers, etc. Getting to learn these buy books, personally recommend the classic "Hemopurification C language", since a lot university selected the book as a textbook, there is always a rational point of it. This book is an introduction to knowledge are relatively simple and obvious point, but the coverage is broad. Learn grammar will knock case, looking at the code running on a computer that is not also a little excited. This will give impetus to continue learning forever.

C语言深入的话推荐《c primer plus》,你会发现有些地方晦涩难懂,不要被疑问绊住脚步,浪费太多时间在细枝末节的地方。C语言只是你进入新世界的第一步而已,而编程的世界远比你想象的更广阔,更有意思。《c primer plus》更适合作为一本字典使用,放在电脑旁,方便随时查阅。

我也推荐通过教学视频入门,老师会讲解重难点知识,并且进行演示,相对于看书会更容易。现在网络这么发达,有很多优质的教学视频可供利用。Teach you how to start from a zero base white C language learning

教你从零基础小白开始怎么学习C语言
2.写代码练习

想学好一门编程语言,仅仅是看书而不动手去练习是远远不够的,一定要把书里的代码搬到电脑里。

大多数人是使用Windows系统,那么就先下载一个Visual Studio吧,推荐使用VS2015。

喜欢Linux的朋友,可以下载一个VMWare虚拟机,在再虚拟机中安装Ubuntu等基于Linux内核的操作系统,然后再安装gcc,gdb。

安装好开放环境之后,就可以开始愉快的敲代码了。

试着写一些简单而有趣的代码,比如 Hello World,文件读写,逻辑运算、常用算法等等。

3.总结心得体会

把自己觉得抽象难懂的程序放到VS中跑一跑,调试一番,会有很多发现。很多代码在调试之后就能理解,会有一种恍然大悟的快感。我以前电脑里就经常会有一个Test工程文件夹,哪里有疑惑,就把代码放进去,一Debug,全部疑惑就解开了。

然后把这些总结整理起来,这样知识就变成自己的了。推荐使用印象笔记进行记录,很方便,随时可以查阅。

比如这样,了解 Union 的内存结构Teach you how to start from a zero base white C language learning

教你从零基础小白开始怎么学习C语言
比如这样,了解 C 语言的内存分配
Teach you how to start from a zero base white C language learning
教你从零基础小白开始怎么学习C语言Teach you how to start from a zero base white C language learning
教你从零基础小白开始怎么学习C语言
4.写一个小作品

基本知识掌握的差不多了,试着写个小程序。比如:计算器、打字游戏、图书管理系统等。

The first look at a life of its own development program, there will be a great sense of accomplishment. And in the process of writing a program, your programming skills will be greatly improved.

Calculator, typing games, library management system console program I've written it, was as curriculum design, really is full of a sense of accomplishment.Teach you how to start from a zero base white C language learning

Teach you how to start from a zero base white C language learning
Many students may not meet in the "Heibuliuqiu" console program, want to have a program interface, which need to use a graphical user interface framework, cited above has been passed . Of these learning methods will introduce later.

He concluded:

Practice writing code, writing code to practice, practice writing code, it is important to say things three times.

In fact, as a developer, there is a learning atmosphere with a circle of exchange is particularly important here please private letter I "programming" Whether you are white or Daniel welcome to stay to share grow together. Xiao Bian occasionally dry goods share the source code in it, including a zero-based c ++ tutorial I curated. Welcome all interested junior partner.

Learning ideas:Teach you how to start from a zero base white C language learning

Teach you how to learn C language to start from zero base white
learning materials:Teach you how to start from a zero base white C language learning

Teach you how to start from a zero base white C language learning

Guess you like

Origin blog.51cto.com/14209412/2407721