iOS Learning Log

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.