标签:argc desc define pre cout stdout turn include auth
/* Name: Copyright: Author: 流照君 Date: 2019/9/22 22:29:36 Description: */ #include <iostream> #include<string> #include <algorithm> #include <vector> #define inf 0x3f3f3f3f using namespace std; typedef long long ll; void move(int **p,int a[]) { cout<<p<<endl; *p=&a[1]; cout<<*p<<endl; } int main(int argc, char** argv) { //freopen("in.txt", "r", stdin); //freopen("out.txt", "w", stdout); int a[]={1,2,3,4,5}; int *p=&a[0]; //p=&a[0]; cout<<p<<" "<<&a[0]<<endl; move(&p,a); cout<<*p<<endl; return 0; }
标签:argc desc define pre cout stdout turn include auth
原文地址:https://www.cnblogs.com/liuzhaojun/p/11569812.html