Void Function not displaying

Having issues figuring out why when I call the displayMenu function that no output is showing? The project I am working on is more complex than this, but I think once I figure this issue out I can finish the rest. I know this is going to be something very simple and I will probably smack myself upside the head, but I just cannot figure it out! Any help is appreciated :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  #include <cstdlib>
#include <iostream>
#include <iomanip>
#include <string>
#include <cctype>
#include <algorithm>

using namespace std;

/*
 * 
 */
//Function prototypes
void displayMenu();

int main(int argc, char** argv) {
    void displayMenu();

    return 0;
}

//Function definitions
void displayMenu(){
    
    cout << endl;
    cout << "To input data, select 1" << endl;
    cout << "To sort data in ascending order, select 2" << endl;
    cout << "To sort data in descending order, select 3" << endl;
    cout << "To print all data, select 4" << endl;
    cout << "To search for an individual, select 5" << endl;
    cout << "To end program, select 6" << endl;
    cout << endl;
    
}
@rabe5775

Line 17 is a declaration, not a function call. Remove the word 'void' and it should work correctly for you.
Just figured that out as you were probably typing that. Definitely smacked myself upside the head on that one. Thank you for your reply!
Registered users can post here. Sign in or register to post.