指针测试
来源:互联网 发布:mysql 进入数据库 编辑:程序博客网 时间:2024/05/22 12:34
#include<iostream>using namespace std;int main(){int *pInt = NULL;cout << "指针变量pInt地址是:" << &pInt << endl;int pop = 1;cout << "pop地址是:"<< &pop << endl;cout << "pop值是:"<< pop << endl;pInt = &pop;cout << "pInt's value is:"<<pInt<<endl;cout << "pInt's refer value is:"<< *pInt<<endl;int arr_int[2] = { 1,2 };pInt = arr_int;cout << "Address of the first factor of arr_int[0] is: "<< pInt<<endl;cout << "Address of the second factor of arr_int[1] is: "<<pInt + 1<<endl;cout << "Value of the first factor of arr_int[0] is:"<<*pInt<<endl;cout << "Value of the first factor of arr_int[1] is:"<< *pInt + 1<<endl;}
阅读全文
0 0
- 指针测试
- c++指针测试
- vector指针的测试
- c 二维指针测试
- 函数指针-测试
- C指针测试程序
- this指针测试
- 测试指针NULL
- C++智能指针测试
- c++指针测试
- 指针数组功能测试
- C指针强化测试
- boost域指针(智能指针)测试
- 容器,迭代器,数组指针,指针的指针 的一些测试
- c++指针&指针数组&数组的指针 的测试
- 测试函数指针传参
- c指针简单测试一
- 指针基础应用的测试
- java开发命名规则和格式要求
- Ubuntu
- http://www.cnblogs.com/dennisit/p/3184225.html
- PHP如何将log信息写入服务器中的log文件
- 解决$.ajax()在IE10以下失效的问题
- 指针测试
- 阿里云申请免费的https证书ssl
- Android Studio中Make Project,Clean Project,Rebuild Project区别
- unity法线贴图原理
- CodeForces
- 资讯精选 | 忽悠神经网络指南:教你如何把深度学习模型骗得七荤八素
- odoo 按日期字段 指定按 年,月,日等分组
- opengl es 着色器语言
- 30岁程序员困境:转行or跳槽?如何做才不会被替代?