能帮我看看哪里错了么#include #include using namespace std;void firstname(char []);void middlename(char[]);void lastname(char[]);void finalname(char[]);int main(){ const int Size=100; char name[Size]; char name1[Size]; char nam
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/21 20:43:10
能帮我看看哪里错了么#include #include using namespace std;void firstname(char []);void middlename(char[]);void lastname(char[]);void finalname(char[]);int main(){ const int Size=100; char name[Size]; char name1[Size]; char nam
能帮我看看哪里错了么
#include
#include
using namespace std;
void firstname(char []);
void middlename(char[]);
void lastname(char[]);
void finalname(char[]);
int main()
{ const int Size=100;
char name[Size];
char name1[Size];
char name2[Size];
char name3[Size];
cout
能帮我看看哪里错了么#include #include using namespace std;void firstname(char []);void middlename(char[]);void lastname(char[]);void finalname(char[]);int main(){ const int Size=100; char name[Size]; char name1[Size]; char nam
#include <iostream>
#include <string>
using namespace std;
void firstname(char[]);
void middlename(char[]);
void lastname(char[]);
void finalname(char[], char[], char[]);
int main()
{
const int Size = 100;
char name[Size];
char name1[Size];
char name2[Size];
char name3[Size];
firstname(name1);
middlename(name2);
lastname(name3);
finalname(name1, name2, name3);
system("pause");
return 0;
}
void firstname(char name1[])
{
cout << "enter users first name:\n";
cin >> name1;
}
void middlename(char name2[])
{
cout << "enter users middle name:\n";
cin >> name2;
}
void lastname(char name3[])
{
cout << "enter users last name:\n";
cin >> name3;
}
void finalname(char name1[], char name2[], char name3[])
{
cout << "users full name:\n\t";
cout << name1 << ", " << name2 << " " << name3;
}