Expand|Select|Wrap|Line Numbers
- # include <iostream>
- using namespace std;
- void clrscr (); //Prototype
- void pause (); //prototype
- void skipBlanks (); // prototype
- int main ()
- {
- cout << "Calling function Clear Screen\n";
- clrscr();
- cout << "Calling function pause\n";;
- pause();
- }
- char ch;
- while(ch=cin.peek()==' ' || ch=='\t'
- || ch=='\n' || ch=='\r') cin.get();}
- string title, id;
- double price;
- {
- cout << "Enter your student ID: ";
- cin >> id;
- cout << "Enter a book title: ";
- cin >> title;
- system ("pause");}
here are the errors i am getting in dev C++
16 expected constructor, destructor, or type conversion before '(' token
16 expected `,' or `;' before '(' token
18 expected unqualified-id before "while"
18 expected `,' or `;' before "while"
19 expected declaration before '}' token
Thanks
Banfa by following your advice and changing the placement of the closing brace to after price the following occurs
23 expected declaration before '}' token
the code following was written by lecturer unedited i may have misplaced it in the program though