Error C2447: ‘{‘ : missing function header (old-style formal list?)?

Ive merely started publishing a computer code and ive encounter this miscalculation.my rule is seeing that follows

#include “stdafx.h”
#include
implementing namespace std;

int CreateBook (char szNameOfBook, char szAuthor, char szDateOfPublish);
int RemoveBook(char szNameOfBook, char szAuthor, char szDateOfPublish);
int menu();
int Welcome_screen();

int _tmain(int argc, _TCHAR* argv)

int Welcome_screen();
int iresponse=0;
cout << "WELCOME:" << endl;
cout << "Press 0 to carry on:" << endl;
cin >> iresponse;

in the event that (iresponse==0)
menu();

system(“pause”);
give back 0;

int menu();

int ireponse=0;

cout <<"What are you interested to do" << endl;
cout <<"Press 1 to set-up a Book" << endl;
cout <<"Press TWO to Remove duplicate content a book" << endl;

in the event that (ireponse==1)
CreateBook();

system(“pause”);
give back 0;

Might someone you need to help

The dilemma lies these:

int Welcome_screen();
int iresponse=0;

The actual “int” prior to Welcome_screen() tells the compiler you will be declaring or perhaps defining some sort of function, but you aren’t.You’ve witout a doubt done this.You probably need to invoke Welcome_screen(), in this way:

Welcome_screen();
int iresponse=0;

Desire that helps

In this case, it seems like you have many issue.

Firstly, int _tmain(int argc, _TCHAR* argv) doesn’t seem correct in any way.

A common definitions regarding main I recognize of are usually int main() in addition to int main(int argc, char *argv)
(or however int main(int argc, char **argv))

Another issue you’ve got, as stated with the below poster, is that you’ll be defining functions just a function.You should not do this particular.

Functions are known as within software.They often return some sort of data, or perform any recordings internal measures and come back no information.In most of your function, you choose to do the adhering to:

int Welcome_screen();
int menu();

It’s not allowed.Additionally, you have got this in your code:

just after int menu();

The compiler might find.This can be perfectly ok, it is an bare block.Nevertheless, the best brace alongside them, is not really ok.The compiler will probably notice that the braces will not match up, and produce an error.You must do away with at minimum the opening brace at that brand.

Others in the industry of this looks ok.

Leave a Reply