Here is the code i have so far i need to define the elements using void
and write the function getblanks ();Code:# 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");}
prototyped by void getBlanks ()
i think that i have done the first part okay after trying to complie the code i hav eincluded i get the following errors
18 expected unqualified-id before "while"
18 expected `,' or `;' before "while"
19 expected declaration before '}' token
Any help or fixed code would be greatly appriciated