[cpp]C++笔记

#include <iostream>
using namespace std;

int main(){
    char c = 'a';
    char *p;
    p = &c;
    char **q;
    q = &p;

    printf("%p\n", q);
    printf("%p\n", *q);
    printf("%c\n", **q);

    cout << c << endl;
    cout << p << endl;
    cout << *p << endl;
    return 0;
}
posted @ 2017-03-10 15:19  cn_wk  阅读(33)  评论(0)    收藏  举报