Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //functions.h
- #ifndef FUNCTIONS_H
- #define FUNCTIONS_H
- void printMenu();
- #endif
- //____________________________________________________________________________
- //main.cpp
- #include <iostream>
- #include <vector>
- #include "../include/constants.h"
- #include "../include/functions.h"
- using namespace std;
- int main()
- {
- int input;
- vector<Person> persons;
- printMenu();
- cin >> input;
- switch(input)
- {
- case 1 : cout << "addName()";
- break;
- case 2 : return 0;
- }
- return 0;
- }
- //---------------------------------------------------------------------------
- //Functions.cpp
- #include "functions.h"
- #include<iostream>
- void printMenu(){
- cout << "-------Menu-------" << endl;
- cout << endl << "1. Add a name to the list" << endl;
- cout << endl << "2. Quit" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement