[nfbcs] C++ question

charleseblack at att.net charleseblack at att.net
Mon Nov 12 03:28:29 UTC 2018


Hi:

Sorry I do not have your address. All you need to do is get a string
interred, loop through the string one character at a time and convert it to
the case you want, add the converted character to a new string. Once you
reach the end of the initial string, you should have the converted string in
the additional variable created to store the converted string. I can help if
you want.

-----Original Message-----
From: nfbcs <nfbcs-bounces at nfbnet.org> On Behalf Of gwunder--- via nfbcs
Sent: Sunday, November 11, 2018 8:20 PM
To: nfbcs at nfbnet.org
Cc: gwunder at earthlink.net
Subject: [nfbcs] C++ question

My grandson has asked for his grandfather's help, and although I have not
coded in C++, so far I've been able to help. We are stumped by the need to
convert a string to one case. It matters not at all to us if that is upper
or lower case. We need to see if a string read forward or backward is the
same-a palindrome. Though we find a function called toupper, we do not find
the library in which it resides. It appears not to work on more than one
character at a time.

 

So if any of you can write me off list, how do we convert a string to one
case?

 

Thank you.

 

 

_______________________________________________
nfbcs mailing list
nfbcs at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for nfbcs:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/charleseblack%40att.net





More information about the NFBCS mailing list