468,167 Members | 1,949 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

wap using a class with the following specifications

write a program using a class with the following specifications
class name :caseconvert
data members : string str
members functions -
void getstr() : to accept a string
May 5 '20 #1
2 3074
dev7060
413 Expert 256MB
What have you done so far regarding this?
May 5 '20 #2
Ishan Shah
47 32bit
Without getting the code of what you have done, we can't get the solution for you.

But as you mentioned the class name caseconvert, I thought you want to convert a string into lower or upper case.
If you want the same, you should follow the following code to case convert of string :

str.toUpperCase()
str.toLowerCase()
Jan 21 '21 #3

Post your reply

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

Similar topics

7 posts views Thread by Allan Bruce | last post: by
reply views Thread by menkaur | last post: by
1 post views Thread by James | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.