By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,826 Members | 2,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,826 IT Pros & Developers. It's quick & easy.

Declaration Error, C++

Kindle Life 123
P: 7
I have typed in a function,but it shows declaration error.

here is the function:

void writeinto()
club c;
int N,i;
ofstream fout("project.dat",ios::binary);
cout<<"Enter the number of records to be entered";
Sep 19 '18 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 9,197
What was the error?

I assume you have #included declarations for club, iostream.

and you are using namespace std.
Sep 19 '18 #2

Kindle Life 123
P: 7
My compiler is turbo c++ 4.5. So it runs without namespace std.
the error is not specified.
Should I include void club::writeinto()?
Sep 21 '18 #3

Kindle Life 123
P: 7
Thanks a ton for all your efforts...
Sep 21 '18 #4

Post your reply

Sign in to post your reply or Sign up for a free account.