Re: help with switch statements
From: V S Rawat (vsrawat_no_reply__at_hclinfinet.com)
Date: 06/30/04
- Next message: V S Rawat: "Re: Simple Display problem ...."
- Previous message: Roedy Green: "Re: Profiling that takes into account time spent in other processes."
- In reply to: acerpower: "Re: help with switch statements"
- Next in thread: acerpower: "Re: help with switch statements"
- Reply: acerpower: "Re: help with switch statements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 10:37:27 +0530
acerpower wrote:
> Well the Program , I was nearly able to do it , but the
> problem I am having is that Vowel consist of the letters
> a,e,i,o,u , how do I put this in the program,
>
> Char vowel = 'a' + 'e' +'o' .....................; is it
> good?
that will add the ASCII codes of a(97), e(101), o(111), ...
giving a total of 309 and then will assign to "vowel"
variable a character whose code is that 309.
you can't assign more than one character to char type variable.
use String type variable to assign more than one character.
> Because I've tried it but it doesn;t work , How should I
> proceed with this
I am not clear what exactly you want to do.
-rawat
- Next message: V S Rawat: "Re: Simple Display problem ...."
- Previous message: Roedy Green: "Re: Profiling that takes into account time spent in other processes."
- In reply to: acerpower: "Re: help with switch statements"
- Next in thread: acerpower: "Re: help with switch statements"
- Reply: acerpower: "Re: help with switch statements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]