What is wrong? Error: expected ';' before string constant...

i know i should not put help in the title but:
i have looked every where, all people having the same issue had it resolved, though i could not see whats wrong with my code!!
have a look(Error in underlined area)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
  #include <iostream>
#include <string>
using namespace std;

void DataInput()
{
    string Name1, Name2, Name3, Name4, NationalId, BCountry, BCity, Religion, Nationality, Gender, OldSchool, PastRegRelatives, PrntName, PrntLanuage, PrntNationalty, PrntComp, PrntOccup,State, HomeTele, WrkTele, POBox, MthrTele, FthrTele, PassPN, EMail;
    int BDay, BMonth, BYear;
    bool SchoolTransPort;
    cout << "Welcome to School Registration Program Beta Version " << endl << "You Are Applying for AlAnsar int. School";
    cout << endl <<"please enter the student's first Name          : "; //cout = print in QBasic
    cin >> Name1;                                                    //cin  = input in QBasic
    cout         <<"Please enter the student's Father Name         : ";
    cin >> Name2;
    cout         <<"Please enter the student's Grandfather name    : ";
    cin >> Name3;
    cout         <<"please enter the student's last name           : ";
    cin >> Name4;
    cout         <<"please enter the student's National ID         : ";
    cin >> NationalId;
    cout         <<"please enter the student's Birth Day           : ";
    cin >> BDay;
    cout         <<"please enter the student's Birth Month         : ";
    cin >> BMonth;
    cout         <<"please enter the student's Birth Year          : ";
    cin >> BYear;
    cout         <<"please enter the student's Country of birth    : ";
    cin >> BCountry;
    cout         <<"please enter the student's city of birth       : ";
    cin >> BCity;
    cout         <<"please enter the student's Religion            : ";
    cin >> Religion;
    cout         <<"please enter the student's Nationality         : ";
    cin >> Nationality;
    cout         <<"please enter the student's Gender(Male/Female) : ";
    cin >> Gender;
    cout         <<"please enter the student's past school details : ";
    cin >> OldSchool;
    cout         <<"Specify any other Brothers/Sisters in school   : ";
    cin >> PastRegRelatives;
    cout         <<"please enter the Parent/Guardian's Name        : ";
    cin >> PrntName;
    cout         <<"please enter the parent's first language       : ";
    cin >> PrntLanuage;
    cout         <<"please enter the parent's Nationality          : ";
    cin >> PrntNationalty;
    cout         <<"please enter the parents company of work       : ";
    cin >> PrntComp;
    cout         <<"please enter the parents occupation            : ";
    cin >> PrntOccup;
    cout         <<"please enter the home telephone number         : ";
    cin >> HomeTele ;
    cout         <<"please enter the Work telephone number         : ";
    cin >> WrkTele;
    cout         <<"please enter the state                         : ";
    cin >> State;
    cout         <<"please enter the P.O box                       : ";
    cin >> POBox;
    cout         <<"please enter the Father's Mobile Phone number  : ";
    cin >> FthrTele;
    cout         <<"please enter the Mother's Mobile Phone number  : ";
    cin >> MthrTele;
    cout         <<"please enter the parent's passport number      : ";
    cin >> PassPN;
    cout         <<"please enter the Parent's E-Mail               : ";
    cin >> EMail;
    cout         <<"Will your Child use School transport? True for yes, False For No";
    cin >> SchoolTransPort;
}

void ProgramOrganizer1()
{
     DataInput();
}

void DisplayData ()
{
    cout << "Please verify that the data above is 100% correct and Accurate." << endl;
    cout << "please select by entering the number of option:" << endl;
    cout << "(1)Data is correct (2)Data is wrong (3)Exit program without saving"; //saving unavailable in beta :(
    int option;
    cin >> option;
    if ( option == 1 ) cout "Thank you! Your Application form is now saved in the database!";
    else if ( option == 2 ) ProgramOrganizer1();
    else if ( option == 3 )   {
                cout "Program closing, runtime successful, clearing RAM";
                int pause;
                cin >> pause; }
    else    {
            cout << "Error, No such option, Please try again";
            DisplayData();
            }
}


int main()
{
    ProgramOrganizer1();
    DisplayData();
    return 0;
}

please excuse me for being bad, i am only 14 years old and i am new to c++
also this is for a school project that i need fast.
Thank you!
Last edited on
I have limited time, please help
line 83 and 86 you need << after cout.
if ( option == 1 ) cout << "Thank you! Your Application form is now saved in the database!"; cout << "Program closing, runtime successful, clearing RAM";
Wow, just wow
that is what i get for programing in qbasic (school requirements -_-") and then returning to c++ to give a project (intended to be in qbasic) in c++
Thank you gentleman!
ok, did that, but another problem:
after i finish inputing all the detrails, just after
cout <<"Will your Child use School transport? True for yes, False For No";
the program will go while (true) loop style repeating void displaydata ()
solved my problem, thank you anyway
Topic archived. No new replies allowed.