#include<iostream>
#include
<string>
using namespace std;
void input(int n,int *p1,int *p2,int *p3,string *s)
{
int i=0;
for(i=0;i<n;i++)
{
cin >>p1[i];
}
for(i=0;i<n;i++)
{
cin >>p2[i];
}
for(i=0;i<n;i++)
{
cin >>p3[i];
}
for(i=0;i<n;i++)
{
getline(s[i]);
}
}
void output(int n,int *p1,int *p2,int *p3,string *s)
{
}
int main()
{
int n;
cin >>n;
int *p1,*p2,*p3;
string *s;
p1=new int[n];
p2=new int[n];
p3=new int[n];
s=new string[n];
input(n,p1,p2,p3,s);
output(n,p1,p2,p3,s);
delete []p1;
delete []p2;
delete []p3;
delete []s;
return 0;
}
程序还有一个函数没有编写,它出的错误是什么意思? error C2780: 'class std::basic_istream<_E,_Tr> &__cdecl std::getline(class std::basic_istream<_E,_Tr> &,class std::basic_string<_E,_Tr,_A> &,const _E)' : expects 3 arguments -
error C2780: 'class std::basic_istream<_E,_Tr> &__cdecl std::getline(class std::basic_istream<_E,_Tr> &,class std::basic_string<_E,_Tr,_A> &)' : expects 2 arguments - 1 provide
d