中易网

有个C++程序连接时有错误,但编译时没有错!高手进

答案:2  悬赏:50  
解决时间 2021-03-12 12:00
a<<,*p3;
#include<#include<<"<"
using namespace std;cout<,the order is;<:"iostream>string><
if(a>x=y;<,string &);<
cout<
if(b><; " ",c);endl;
z=x;"<:"c) swap(a;
if(a>
gets(p3);c) swap(b;
gets(p1);endl;
string a="b) swap(a,
c="<,b),string &y)
{string z; " "<
char *p1;;
}
void swap(string &x;
p1=&a[0],
b="
return 0;<;input there line;endl; ",c);p3=&c[0];"
cout<,*p2;c;b<
int main()
{void swap(string &;<
cout<
gets(p2);p2=&b[0]
最佳答案
问题出在 swap函数上吧?你既然包含了string头文件,建议使用 strcpy()函数。
全部回答
b; people(people& p), char *id;"sex; cin> char* id.output();endl; public;员工编号; strcpy(id;123456789123456","string><,d) { number=n.output(): birthday() {year =0; strcpy(id, char s);< } void people:",m;endl; month = 0;<" p1;<>.output();<,8:",int d) { year=y; b; } people;<,8;:,d): people() {number =0; sex=p;< public; people p3(10;dayyear<<
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯