Start New Discussion within our Software Development Community

Please help me try to figure this out. Keep getting this error,

error C3861: 'intialbid': identifier not found

Can't figure out how to fix it, here is my code, the program is not finished.

#include "stdafx.h"
#include <iostream>
using namespace std;
#include "myfuncs.h"


int main()
{
do
{
	char respond;

	cout << "Would you like to play a game?";
	cin >> respond;

	switch (respond)
	{
		case 'y':
		case 'Y':
			{
				int player;

				cout << "Will Player 1 or Player 2 start: (Enter 1 or 2)";
				cin >> player;

				switch (player)
				{
				case 1:
					{
						int d1, d2, d3, d4, d5;
						rolldice(d1, d2, d3, d4, d5);

						cout << "Player 1's dice are: " << d1 << ", "<<d2<<", "<<d3<<", "<<d4<<", "<<d5<<", "<<"\n";
						
					}
				case 2:
					{
						int d1, d2, d3, d4, d5;
						rolldice(d1, d2, d3, d4, d5);

						cout << "Player 2's dice are: " << d1 << ", "<<d2<<", "<<d3<<", "<<d4<<", "<<d5<<", "<<"\n";
					}
				
				break;
			}
				int numdice, diceamount, playerbid; 


				cout << "Please enter intial bid: ";
				cout << "Are you Player 1 or Player 2? (1 or 2 and press enter)";
				cin >> playerbid;
				cout << "\n\nEnter the number of dice you would like to bid: ";
				cin >> numdice;
				cout << "Enter the dice amount: ";
				cin >> diceamount;

				intialbid (playerbid, numdice, diceamount);
				cout << playerbid << numdice<<diceamount;
			}
		case 'n':
		case 'N':
			{
				return (0);
				break;
			}
				}




	}while (1);
}

sorry guys, figured it out. Didn't have my functions all listed in my .h file. Thanks though, might have questions later

This article has been dead for over six months. Start a new discussion instead.