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

prototype means in c++ iam getting confused in it asit is not compiling

P: 1
iam making program of case conversion so iam getting error that function upper case should have a prototype.
#include<iostream.h>
#include<conio.h>
#include<ctype.h>
main()
{
char a,b,c;
cout<<"enter the first value";
cin>>a;
b=uppercase(a)
a=lower case(b)
get ch();
return(0);
}
Jun 1 '17 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Your function cannot be "lower case". It has to be one word.

Also, do you mean to change a to upper case and put the result in b? If so, the function is toupper. Ditto for tolower for lower case.

Post again let me know what happened.
Jun 1 '17 #2

Post your reply

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