0

I got the error with the following code :-

controller.h

class control{
	public:
	void casino_game();
	void register(registration &);
};

controller.cpp

#include<iostream>
#include "controller.h"
#include "ui.h"
#include "registration.h"
#include "db.h"
using namespace std;



void control::casino_game()
{
	ui uiobj;
	registration R;
	db dbobj;
	int loop=1;
	uiobj.mainui();
	int choice=uiobj.get_choice();
	while(loop==1)
	{
		switch(choice)
		{
			case 1:
				uiobj.set_details(R);
				dbobj.register(R);
				break;
			
				
			case 2:
				cout<<"Under Constraction";
				break;
			case 3:
				exit(1);
				break;
			default:
				cout<<"\nInvalid Choice";
		}
	}
}

db.h

#include "registration.h"
class db{
	public:
		int dbconnect();
		int register(registration &);
};

Errors are:
controller.h:4: error: expected `)' before â&â token
db.h:5: error: expected `)' before â&â token
controller.cpp: In member function âvoid control::casino_game()â:
controller.cpp:24: error: expected unqualified-id before âregisterâ
controller.cpp:24: error: expected `;' before âregisterâ

Please help me to resolve these error. I stuck with this error past 3 days. Please reply as soon as possible.

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Ancient Dragon
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.