Code://Begin Search Function void Search(/*char input[25]*/) { cout << "Please Enter The Surname You are searching for" << endl; cin.getline(input,NAME_LEN); int r; int t; int z = 0; do { z++; }while (input[z] != '\0'); for(r=0; r<=n; r++) { for(t=0; t<z; t++) { if (ref[r].name[t] == input[t]) { if (t == z-1) { displayOrder(ref[r]); system("pause"); } } } //displayOrder(ref[r]); //system("pause"); } } //End Search Function //Begin Main int main(int argc, char *argv[]) { InFile(ref[1]); n = 1; do { if ((ref[n].initials[0] >= 'A' & ref[n].initials[0] <= 'Z') || (ref[n].initials[0] >= 'a' & ref[n].initials[0] <= 'z') ) n++; //cout << n << endl; }while ((ref[n].initials[0] >= 'A' & ref[n].initials[0] <= 'Z') || (ref[n].initials[0] >= 'a' & ref[n].initials[0] <= 'z') ); (ref[n].initials[0] >= 'a' & ref[n].initials[0] <= 'z') ); //system("pause"); Search(); GetOrder(); cout << "Do you wish to see your orders?" << endl; new_order = YesNoQuestion(); if (new_order == true) { system("cls"); for (n=1; n<=m; n++) displayOrder(ref[n]); } OutFile(ref[1]); system("PAUSE"); return 0; } //End Main
In the line I've highlighted red it comes up with an error saying 'statement missing'. I'm new to this so what do you suggest? I'm probably being really thick because its something simple, but I've working on this for eight hours and my minds boggled. I would really appeciate the help
thanks