Thursday, 29 May 2014

[MIT] Note 2 of Introduction to C and C++

18.01 Single Variable Calculus

Lecture 4 : Data Structures, Debugging



note: Structure Memory
ex.
#include <stdio.h>

int main()
{
    struct X
    {
        short s; 
        int i; 
        char c;
    };

    struct Y
    {
        int i;
        char c;
        short s;
    };

    struct Z
    {
        int   i;
        short s;
        char  c;
    };

    printf("%ld\n", sizeof(struct X));
    printf("%ld\n", sizeof(struct Y));
    printf("%ld\n", sizeof(struct Z));

    return 0;
}

12
8
8

Ref. http://ocw.mit.edu/courses/mathematics/18-01sc-single-variable-calculus-fall-2010/

[MIT] Note 1 of Introduction to C and C++

MIT 6.S096 Introduction to C and C++

Lecture 1: Compilation Pipeline


Ref. http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-s096-introduction-to-c-and-c-january-iap-2013/

[MIT] Note 1 of Single Variable Calculus

MIT 18.01 Single Variable Calculus

Lecture 1: Compilation Pipeline



Ref. http://ocw.mit.edu/courses/mathematics/18-01sc-single-variable-calculus-fall-2010/

Monday, 26 May 2014

Unlock Mechanism

It's a cool and creative security solution!
Cant wait to download and try~

Ref. http://www.airsig.com/

Thursday, 8 May 2014

[C++] Generic Programmin

1) Function templates
2) Class templates
- inherit:
a)


b)

c)

d)

Ref.: Practice on Programming course from Peking University

Thursday, 1 May 2014