Search found 1 match

by burgerman
Wed Oct 13, 2004 4:49 pm
Forum: Volume 102 (10200-10299)
Topic: 10252 - Common Permutation
Replies: 150
Views: 73353

I try to use tolower() but it's WA anyway.

Your problem is not upper-case input. The following code should cause a floating point exception should any uppercase letters occur:

[cpp]char c
if (c >= 'A' || c <= 'Z'){
int x = 6 / 0; //will cause fpe should a character from A to Z be encountered ...

Go to advanced search