?? 6_9.cpp
字號:
#include<iostream.h>
#include<iomanip.h>
int main( )
{
void print(const int &s,const int *t);
int a=3,b=4;
int* const p1=&a;//常量指針p1
const int* const p2=&b;//指向常量的常量指針p2
print(a,&a);
print(b,&b);
cout<<setw(3)<<*p1<<setw(3)<<*p2<<endl;
(*p1)++;
cout<<setw(3)<<*p1<<endl;
return(0);
}
void print(const int &s,const int *t)
{
cout<<setw(3)<<s<<setw(3)<<*t<<endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -