int main(){
string name, ic , address , model , colour;
float engineCapacity;
cout << "Please enter the detail of the ownership : ";
cout << endl <<"Please enter name your name : ";
cin >> name;
cout << endl << "Please enter your IC : ";
cin >> ic;
cout << endl << "Please enter your address : ";
cin >> address;
cout << endl;
cout << endl;
cout << "Please enter the detail of the vehicle : ";
cout << endl <<"Please enter the vehicle's model name' : ";
cin >> model;
cout << endl << "Please enter your colour of the vehicle : ";
cin >> colour;
cout << endl << "Please enter your engine capacity of the vehicle : ";
cin >> engineCapacity;
cout << endl;
register r1(string name,string ic,string address,string model,string colour,float engineCapacity); //this is the error im occuring right now. [Error] expected id-expression before 'register'
thx for the help guys but right now im ahving the 2nd problem when trying to run the code. The error is [Error] prototype for 'Register::Register(std::string, std::string, std::string, std::string, std::string, float, std::string)' does not match any in class 'Register1'. the error is on Register1.cpp
'Register::Register(std::string, std::string, std::string, std::string, std::string, float, std::string)' does not match any in class 'Register1'.
The error message tells you what is wrong. You don't have that constructor in your Register1 class. Check your constructor definitions to see if you have that exact constructor with all the parameters.