Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jarod83

toupper() function in turbo (borland) c++ ?!?!

This topic is 5556 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello... I have this sort of a problem... In visual c++ I used the toupper(int) function, so I had this code: int chr; chr = getch(); chr = toupper(chr); The problem is that Turbo C++ can''t find the toupper() function, that should have ben defined in conio. Is there another way of doing this code in turbo c++ ???

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
It might be in the ctype header file

Share this post


Link to post
Share on other sites
you could always write your own...


      
char toupper(char t)
{
if (t>='a' && t<='z')
t-=('a'-'A'); //Subtract the difference between lower case and upper case a

return t;
}


--- Edit ---
Just wanted to say, that I used to use toupper in Borlan's Turbo C/C++, and I beleive it's in the strings.h include file, but don't hold me to that.

[edited by - Ready4Dis on April 2, 2003 10:09:03 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!