⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 对于c++primer中前面几章的练习以及书上的例子
💻 CPP
字号:
#include <cstdlib>
#include <iostream>
#include<string>
using namespace std;

int main(int argc, char *argv[])
{

char *ch="the long\n";
cout<<"&ch:"<<&ch<<endl;
cout<<"*ch:"<<*ch<<endl;
cout<<"ch:"<<ch<<endl;
char * *ival=&ch;

cout<<"&ival为"<<& ival<<"\n";//表示ival的地址
cout<<"*ival为"<<*ival<<"\n";//显示“the long"

string st(ch);
cout<<"st为"<<st<<"\n"; 
//cout<<"ch :"<<ch<<endl;
char ***pc=&ival; 
  
cout<<"pc:"<<pc<<"\n"; 
char **pc1=ival;
cout<<"pc1:"<<*pc1<<endl;
    system("PAUSE");
    return EXIT_SUCCESS;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -