Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include <iostream>
- using namespace std;
- void Input(char *a[], const int x)
- {
- cout << "Enter array:\n";
- for (int i = 0; i < x; i++)
- {
- int num=i+1;
- cout << "number\t" << num << endl;
- cin >> a[i];
- }
- }
- void Output(char *a[],char *b[], const int x)
- {
- cout << "route is:\n";
- for (int i = 0; i < x; i++)
- {
- int num = i + 1;
- cout << "\t route " << num << ": \n";
- cout << a[i]<<" - ";
- cout << b[i] << endl;
- }
- //cout << endl;
- }
- struct March {
- char *begin[8];
- char *end[8];
- int number;
- };
- int main()
- {
- March A;
- Input(A.begin, 8);
- Input(A.end, 8);
- Output(A.begin,A.end,8);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement