关于堆栈的一个小例子

2010-12-08 17:06

#include <iostream.h>

void main()

{

char *p;

p="hello to the world!";

cout<<p<<endl;

 

int iA = 0;

int iB = 1;

int ic = 2;

*(&iB-1) = 1;

cout <<"ia:"<<iA << endl;

         cout <<"ib:"<<iB<< endl;

          cout <<"ic:"<<ic << endl;

}

posted on 2010-12-09 08:59  董冰  阅读(274)  评论(0编辑  收藏  举报

导航