Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. //functions.h
  2. #ifndef FUNCTIONS_H
  3. #define FUNCTIONS_H
  4.  
  5. void printMenu();
  6.  
  7. #endif
  8. //____________________________________________________________________________
  9. //main.cpp
  10.  
  11. #include <iostream>
  12. #include <vector>
  13. #include "../include/constants.h"
  14. #include "../include/functions.h"
  15.  
  16. using namespace std;
  17.  
  18. int main()
  19. {
  20.  
  21.   int input;
  22.   vector<Person> persons;
  23.  
  24.   printMenu();
  25.  
  26.   cin >> input;
  27.   switch(input)
  28.   {
  29.     case 1 : cout << "addName()";
  30.     break;
  31.     case 2 : return 0;
  32.   }
  33.  
  34.   return 0;
  35.  
  36. }
  37. //---------------------------------------------------------------------------
  38. //Functions.cpp
  39. #include "functions.h"
  40. #include<iostream>
  41.  
  42.  
  43. void printMenu(){
  44.   cout << "-------Menu-------" << endl;
  45.   cout << endl << "1. Add a name to the list" << endl;
  46.   cout << endl << "2. Quit" << endl;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement