Achilles
Junior Member
Heh,heh, heh
Posts: 24
|
L4
Nov 6, 2001 11:49:47 GMT -5
Post by Achilles on Nov 6, 2001 11:49:47 GMT -5
Sorry to bug everyone who's finished. I suck at this stuff. Can someone tell me what we use to determine whether a character in a line is a capital letter (some kind of string?) Also, what is the web site for the comsci newsgroup. responses mucho appreciendo.
|
|
|
L4
Nov 6, 2001 15:09:03 GMT -5
Post by bladehunter on Nov 6, 2001 15:09:03 GMT -5
|
|
|
L4
Nov 6, 2001 16:21:36 GMT -5
Post by Majin_Blues on Nov 6, 2001 16:21:36 GMT -5
lol... i did it that way too, but there's also another way, something called IsUpperCase in the character class...
check the ever useful blue-book... the computer science equivalent of a black book...
|
|
|
L4
Nov 6, 2001 18:16:54 GMT -5
Post by bladehunter on Nov 6, 2001 18:16:54 GMT -5
;D
Looks like we're on the same boat, Blue
I'm just worried that they will take off marks for style if I did it that way instead of using the Character class methods.
|
|
|
L4
Nov 6, 2001 20:15:26 GMT -5
Post by Brutal_Chicken on Nov 6, 2001 20:15:26 GMT -5
For some strangeass reason I keep getting told by the compiler that I can't run a method on a character. It's just one of the ways CW brights up my life.
|
|
|
L4
Nov 6, 2001 20:36:40 GMT -5
Post by Yingster on Nov 6, 2001 20:36:40 GMT -5
For some strangeass reason I keep getting told by the compiler that I can't run a method on a character. It's just one of the ways CW brights up my life. I had the same prob, do u have something like Character.somemethod();
|
|
|
L4
Nov 6, 2001 20:46:04 GMT -5
Post by Majin_Blues on Nov 6, 2001 20:46:04 GMT -5
bladehunter: they weren't really specific on what they wanted, so if they complain about style, complain right back at them... - the key word to repeat is VAGUE... ;D For some strangeass reason I keep getting told by the compiler that I can't run a method on a character. It's just one of the ways CW brights up my life. make sure you don't confuse the object Character with the type char... methinks they're not interchangeable... (unsure... but somewhat sure) if that's not the case, then maybe you have to refer to the Character class when running certain (not all) methods...
|
|
Achilles
Junior Member
Heh,heh, heh
Posts: 24
|
L4
Nov 6, 2001 20:58:51 GMT -5
Post by Achilles on Nov 6, 2001 20:58:51 GMT -5
I'm gonna check out that IsUpperCase way of doing the program, but I'm curious what you guys mean by Capital letters being bounded) (I know from A - Z, and that's about it).
|
|
|
L4
Nov 6, 2001 21:08:55 GMT -5
Post by Brutal_Chicken on Nov 6, 2001 21:08:55 GMT -5
Well inside the "if" I converted the original string into a capitalized form then compared an index to what the original string had. Easier to see intuitively than using some method that most of us haven't heard of yet.
|
|
|
L4
Nov 6, 2001 21:39:06 GMT -5
Post by Majin_Blues on Nov 6, 2001 21:39:06 GMT -5
so you're using string?
that might be it... maybe you could be interchanging strings with char somewhere in the middle...
and Achilles: by bounded, well... you know chars have a value right? they can be seen as letters but they are numeric values too...
e.g. char A = 'a' char B = A + 2
it'll end up with B = 'c'... (a isn't just a letter, but it can also be a value as a char)
|
|