Feel free to send me an e-mail. If you do, be sure to include an email so that I can get back to you
Programming News
- Designing a Parallel-to-Serial Port Adapter
- Best of BYTE: Programming Languages 1
- Java and C++ Socket Communication
- Intel, Nokia Team Up on MeeGo
Bug of the Day
1 int count_vowels( char *s )
2 {
3 int sum = 0;
4 for(;;)
5 switch( *s++ )
6 {
7 case 'a':
8 case 'e':
9 case 'i':
10 case 'o':
11 case 'u':
12 sum++; continue;
13 default: continue;
14 case '\0': break;
15 }
16 return sum;
17 }
This function, which is intended to count the vowels in the string provided, is taking a long time to do so. Can you spot the difficulty?
Talks and Presentations
[top]