int Trivia(){ cout << "\n\n\n\t\tWelcome to Computer Trivia!\n\t\tPrepare for your First Question.\n"; typedef vector<int (*)(void)> func_vector; func_vector questions; questions.push_back(&Kilobyte); questions.push_back(&age); questions.push_back(&binary); questions.push_back(&RAM); questions.push_back(&entername); questions.push_back(&bios); questions.push_back(&nibble); questions.push_back(&mouse); random_shuffle(questions.begin(), questions.end()); for(func_vector::iterator c = questions.begin(); c != questions.end(); ++c) (**c)(); return 0;}
Some Random Question Help
Just replace your trivia function with this and it should work.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
C:\Program Files\Microsoft Visual Studio\MyProjects\Computer Trivia 2nd Edition\Computer Trivia 2nd Edition\Computer Trivia 2nd Edition.cpp(120) : error C2664: ''push_back'' : cannot convert parameter 1 from ''int (void)'' to ''int (__cdecl *const & )(v
i get that error, its the only one now, what can i do to fix it
i get that error, its the only one now, what can i do to fix it
~~Johnathan~~LTM my new fad, know it, use it, love it, LAUGHING TO MYSELF
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement