如何输入字符串指针
#include<iostream>using namespace std;
void iquote(int );
void iquote(double );
void iquote(const char *);
int main()
{
int a;double b;
cout<<"enter.....";
cin>>a;
cout<<"enter!!!!";
cin>>b;
char *p;
cin>>*p;
iquote(a);
iquote(b);
iquote(p);
return 0;
}
void iquote(int x)
{
cout<<x<<endl;
}
void iquote(double x)
{
cout<<x<<endl;
}
void iquote(const char *p)
{
cout<<p<<endl;
}
正在做一个函数重载的题,怎么输入那个字符串?