mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1904.cpp
This commit is contained in:
parent
4a90b5a044
commit
c5044d9c6b
24
QUSTOJ/1904.cpp
Normal file
24
QUSTOJ/1904.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
struct
|
||||
{
|
||||
string a,b,c,d;
|
||||
}p[5];
|
||||
int main()
|
||||
{
|
||||
for(int i=0;i<5;i++)
|
||||
{
|
||||
cin>>p[i].a>>p[i].b>>p[i].c>>p[i].d;
|
||||
}
|
||||
int n;
|
||||
cin>>n;
|
||||
--n;
|
||||
cin>>p[n].a>>p[n].b>>p[n].c>>p[n].d;
|
||||
for(int i=0;i<5;i++)
|
||||
{
|
||||
cout<<"name:"<<p[i].a<<" address:"<<p[i].b<<" city:"<<p[i].c<<" mail:"<<p[i].d<<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user