13.typedef
#include<iostream>
using namespace std;
int main()
{
typedef char *pstring;
typedef double that;
char a = 'a';
that i = 2.3;
pstring b = &a;
cout << i << endl;
cout << *b << endl;
system("pause");
return 0;
}

#include<iostream> using namespace std; int main() { typedef char *pstring; typedef double that; char a = 'a'; that i = 2.3; pstring b = &a; cout << i << endl; cout << *b << endl; const pstring *c = &b; cout << **c << endl; system("pause"); return 0; }


浙公网安备 33010602011771号