|
From: Per W. <pw...@ia...> - 2002-11-20 00:45:27
|
Are you expecting partial characters, since you are counting with a
floating point variable :-)
/Per W
On Tue, 19 Nov 2002, Paul Ardeleanu wrote:
> 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
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|