2010年6月2日 星期三

HTML Entity Character Lookup

It is easy to look up characters at this website...

http://leftlogic.com/projects/entity-lookup

The commands of process of compiling a c++ file

(1)

vim ex14-7.c

(2)

#include <iostream>
#include <stdio.h>

using namespace std;

class myclass{
public:
static int a;
int b;
};

int myclass::a = 5;

int main() {
myclass obj1, *ptr;
ptr = &obj1;

cout << "\nmyclass::a = " << a = " << obj1.a << "ptr->a = " << ptr->a;

myclass::a = myclass::a + 1;

cout << "\nmyclass::a = " << a = " << obj1.a << "ptr->a = " << ptr->a;

obj1.a = obj1.a + 1;

cout << "\nmyclass::a = " << a = " << obj1.a << "ptr->a = " << ptr->a;

ptr->a = ptr->a + 1;

cout << "\nmyclass::a = " << a = " << obj1.a << "ptr->a = " << ptr->a;

getchar();
}

(3)

g++ ex14-7.c -o ex14-7

(4)

./ex14-7