|
From: <par...@ya...> - 2002-11-19 20:55:41
|
Hi again!
Is there an equivalent of clrscr() in Dev-C++?
Also can you give me a solution for the counting characters program?
I tried the following but it seems that the printf statement is not
executed.
Thank you!
Paul
#include <stdlib.h>
#include <stdio.h>
void main(void)
{
double nc;
for(nc=0;getchar()!=EOF;nc++)
;
printf("%.0f\n",nc);
system("PAUSE");
}
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
|