专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

如果这里解决不了您遇到的实际问题,请到老妖社区问问老妖们如何解决
间接修改指针的地址 代码: //testforapointer.cpp:Definestheentrypointfortheconsoleapplication. // #include\"stdafx.h\" #include<iostream> usingnamespacestd; typedefstruct { int*p; }Test; intmain() { int*p; //p[0]=4; //p[1]=3; Testtest; p=(int*)&test; p[0]=1; cout<<\"p[0]=\"&... [阅读全文] [PDF]
间接修改指针的地址 代码: // test for a pointer.cpp : Defines the entry point for the console application. // #include \"stdafx.h\" #include <iostream> using namespace std; typedef struct { int *p; }Test; int main( ) { int *p; // p[0] = 4; // p[1] = 3; Test test; p = (int *)&test; p... [阅读全文] [PDF]
1 共2条 分1页