How to convert the content of buffer into lower case character.
Answers were Sorted based on User's Feedback
Answer / krishna bs
If you wnat to write your own logic to convert then...
ascii value for Upparcase letter starts from 65 (A) to 90(Z)
ascii value for Lowercase leter starts from 97 (a) to 122(z)
difference is 32, i.e, 97-65 = 32
the same difference carries for all the characters.
Ex: for character 'C'
99 - 67 = 32
You can add 32 to the ascii value for upparcase letter to
convert lowercase (you have to put condition to check the
uppar case letter).
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rainz
std::tolower () shall work ,while iterating through the buffer text(character by character).
| Is This Answer Correct ? | 0 Yes | 0 No |
1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions
how do u identify RTTI in vc++
Given two processes, how can they share memory?
1)How to change the size of a button at run time ?
What is the difference between OnInitialUpdate and OnUpdate?
Tell me the different controls in MFC ?
What is the difference between the ASSERT and VERIFY macros?
1)why we cant create more than one instance of the class Derived from CWinApp
What is the use of OninitDialog ?
How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it
What is the difference between Extension DLL and Regular DLL?
What is the base class for MFC Framework ?