Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: DJ911
  • Order by date
  1. DJ911

    How to make header files in C/C++

    here is a litle example hello.h ---------- #if !defined __HELLO_H #defined __HELLO_H /* define hello.h */ #include <stdio.h> /* for printf() */ void hello(); /* prototype of function */ /* this function exicute u calls hello() in ur .C file */ void hello() { printf(&quot;Here...
  2. DJ911

    Maximum characters in string

    lionehill please check it on older version of Turboc201 see the different of Globla & Local ur self
  3. DJ911

    Writing long doubles to file

    >This is not how you read a value written using fwrite() i listed fread() below >Use if ( fread( &ld, sizeof(ld), 1, fp ) != 1 ) { perror(&quot;read&quot;); } if we know the standard library function wat it is really doing so why don't we use our own methods
  4. DJ911

    Writing long doubles to file

    adds this code from Salems long double ld; FILE *fp; if((fp = fopen(&quot;doubles&quot;, &quot;rb&quot;)) < 0) { printf(&quot;file open error.&quot;); exit(1); } fseek(fp, 0, SEEK_SET); fscanf(fp, &quot;%lf&quot;, &ld); printf(&quot;\nMy long double value : %lf&quot;,ld); fclose(fp)...
  5. DJ911

    Maximum characters in string

    i compiled it in Turbo C & C++ Compilers global is Maximum of char string[65534] local is Maximum of char string[65535] i've no other compilers availble in this net center

Part and Inventory Search

Back
Top