GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Jun-2008, 10:25
khushal_kkk's Avatar
khushal_kkk khushal_kkk is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Posts: 50
khushal_kkk is an unknown quantity at this point

conversion...?


how to convert the upper case letter to lower case as if i enter "KHUSHAL"
the output it gives is "khushal" and same as i enter "khushal" it gives "KHUSHAL".please explain it by sending the code but complete code.
  #2  
Old 05-Jun-2008, 10:30
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: conversion...?


See function tolower().
  #3  
Old 05-Jun-2008, 10:55
khushal_kkk's Avatar
khushal_kkk khushal_kkk is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Posts: 50
khushal_kkk is an unknown quantity at this point

Re: conversion...?


sir i need my own code to write about converting the code i dont want to use the already made library functions please help me sir
  #4  
Old 05-Jun-2008, 14:58
ocicat ocicat is offline
Regular Member
 
Join Date: May 2008
Posts: 580
ocicat is a jewel in the roughocicat is a jewel in the rough

Re: conversion...?


Quote:
Originally Posted by khushal_kkk
how to convert the upper case letter to lower case as if i enter "KHUSHAL"
the output it gives is "khushal" and same as i enter "khushal" it gives "KHUSHAL".please explain it by sending the code but complete code.
If your intention is to learn to be a professional programmer, you will need to learn:
  • how to use a search engine to find your own answers.
  • how to look at problems long enough to see & understand the patterns contained.
...but I will give you a hint: look at an ASCII table. See that the sequences A-Z & a-z always increase:
  • 'A' + 1 = 'B'
  • 'B' + 1 = 'C'
  • ...
...& correspondingly,
  • 'a' + 1 = 'b'
  • 'b' + 1 = 'c'
  • ...
Now try to determine whether there is a relationship between 'A' and 'a'. In other words, determine whether there is a constant which can be added to the ASCII code for 'A' which will produce 'a'. See if this same relationship holds for 'B'. etc. Once you see a pattern, figure out whether you can write C++ code which will automate the decisions you just made.

One of the biggest skills used in programming is learning how to look at problems inductively.
Last edited by ocicat : 05-Jun-2008 at 15:42.
  #5  
Old 05-Jun-2008, 15:20
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: conversion...?


Quote:
Originally Posted by ocicat
If your intention is to learn to be a professional programmer, you will need to learn:
You will also need to learn how to try things out on your own without just asking for answers. You'll be amazed at how much you will learn when you attempt to create a program.

If your goal is not to learn how to program then, like I said before, please send $125.00 US. Thanks.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linked Lists advice request promsan C Programming Language 74 23-May-2007 09:29
conversion member function question amad1337 C++ Forum 1 13-Jun-2006 21:21
conversion double to float donaldk C Programming Language 5 13-Feb-2006 00:16
C Currency Conversion program help needed mutt C Programming Language 1 13-Jun-2004 16:14
AVI Conversion i-ron Computer Software Forum - Windows 2 04-May-2004 17:33

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:23.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.