Tangled for a long time eventually, chose to learn iOS with infinite interconnection.
The first part of Learning C language, although said to study once, but for a long time, or feel very unfamiliar, plus replace the compiler, need to adjust, here have to say x-code this compiler really good ah! Features are really powerful.
Previously seemingly very simple problem, did not write, personally wrote the code to know, really is not so simple, really will encounter a lot of problems, and then also very apologized to the tutor also gave the dizzy.
Let's share some of the technical aspects of your experience:
1.MacBook Shortcut key operation
Command key is similar to the control key for Windows
Command+ Space Toggle Input Method
Command+c replication
Command+v paste
Command+x Cut
Command+z Revocation
Command+q forced exit
Command+shift+4 (selected area)
Command+shift+3 fullscreen
Xcode operation shortcut Keys
Command+shift+n New Project
command+/notes
Command+r compiling
Command+[Left Indent
Command+] Indent Right
2. Some of the sharing of C languages:
Exchange of values without intermediate variables
int A, B;
A = a + B;
b = a A;
A = a-B;
Perverted usage of the "+ +" operator
K = i + + + + + j;
Parse: K = i + + + j;
All right! I'm not going to write about it anyway!
Considerations for some symbols or functions
%: Take 1. Two digits must be integer 2. The symbol depends on the first number:-10% 3 =-1
The case can only be followed by constants
The break statement can be used for a switch statement in a loop statement
sizeof (a) indicates the length of the array, and the length of the array requires "/array type of bytes"
Example: int a[]; Length=sizeof (a)/sizeof (int.);
%p: Print the address of a variable
Example: int a=0;printf ("%p", a);
Http://www.iphonetrain.com
iOS Learning Log