| delorie.com/archives/browse.cgi | search |
| From: | "Atram Schultz" <aks AT ccnn DOT net> |
| Subject: | problem with islower() in DJGPP |
| Newsgroups: | comp.os.msdos.djgpp |
| Message-ID: | <01bd6a4c$7ceff000$96968ccf@ben> |
| Lines: | 12 |
| Date: | Fri, 17 Apr 1998 21:57:55 GMT |
| NNTP-Posting-Host: | ttyf037.ccnn.net |
| NNTP-Posting-Date: | Fri, 17 Apr 1998 16:57:55 CDT |
| Organization: | Niagara County's Best ISP: http://www.ccnn.net |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi,
I'm a beginner to C++ and I'm testing a very small program with the
islower()
function. For some reason, this function is returning zero whether I input
a capital
or a non-capital. Here's the program:
#include <iostream.h>
#include <ctype.h>
void main()
{
char a;
int x;
cout << "Input a character: ";
cin >> a;
x = islower(a);
cout << endl << x;
}
All help is appreciated.
Thanks,
Atram
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |