主题:这样能使字符串相加吗??
#include<iostream>
using namespace std;
double str(char *a,char *b)
{
return a+b;
}
int main()
{
char f[10]="dsa";
char h[10]="dsfa";
cout<<str(f,h)<<endl;
return 0;
}
要怎样改??
using namespace std;
double str(char *a,char *b)
{
return a+b;
}
int main()
{
char f[10]="dsa";
char h[10]="dsfa";
cout<<str(f,h)<<endl;
return 0;
}
要怎样改??