Search:

Type: Posts; User: Foffo Spearjig

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,911

    Characters are stored as ints anyway, A = decimal...

    Characters are stored as ints anyway, A = decimal 65, B = dec' 66 etc. You should be able to typecast to ints, find the average, probably typecast the answer to float, then round up or down and cast ...
  2. Replies
    2
    Views
    6,558

    They are identical, but both exist "to preserve...

    They are identical, but both exist "to preserve compatibilitywith older versions of C" according to Herbert Schildts 'C The complete reference'.

    Mind you, this book is widely regarded as being...
  3. Replies
    20
    Views
    3,455

    Re: check for numbers

    Don't know if you can test for eof on stdin, as unless re-directed using freopen(), this is the keyboard stream. No doubt one of the Guru's can put us straight on this.

    Cheers,
    foffo
  4. Replies
    11
    Views
    1,269

    Great! Does anyone know where I can download a...

    Great! Does anyone know where I can download a Utopia84 Compiler from?

    foffo spearjig


    PS For the non-English of you, the above is meant to be gently ironic ( and I don't mean in the Alanis...
  5. Replies
    2
    Views
    1,147

    Computeach-"isam.h" problems

    Hi,

    I'm having trouble with the isam.h header file supplied for the CIL C&G 424 project. Basically it appears not to work! The Part Number is passed to it OK, it appears to access the Index file...
  6. Replies
    21
    Views
    7,270

    All I can say to Quzah and Prelude is thank you...

    All I can say to Quzah and Prelude is thank you both for your help and expertise and does either of you have a match?
    only I'm having a small book-burning session tonight and I don't have any on me....
  7. Replies
    21
    Views
    7,270

    Herbert Schildts "C the Complete Reference" entry...

    Herbert Schildts "C the Complete Reference" entry on fflush( FILE *stream ); Doesn't explicitly warn against using it on input streams.
    Also "All buffers are automatically flushed upon normal...
  8. Replies
    21
    Views
    7,270

    I've been using fflush() on input streams for...

    I've been using fflush() on input streams for over a year now on my Course assignments and have never been marked down or told not to use them! I have also never scored less than 85%.

    For example:...
  9. Replies
    21
    Views
    7,270

    You could try using fflush( stdin ); after the...

    You could try using fflush( stdin ); after the first scanf, as the 2nd scanf might be reading the newline character.
    fflush( stdin ); should clear the keyboard buffer and like vVv says, use fgets()...
  10. Replies
    2
    Views
    1,134

    Hi, I can send you my code for this, if you can...

    Hi, I can send you my code for this, if you can help me with P1 Validate, fellow Computeach student!

    My code works fine except for finding the missing name in the secret td.dat used by Computeach....
  11. I'll show you the answer to this, if you show me...

    I'll show you the answer to this, if you show me how to test for a missing name field in P1, fellow Computeach student!

    I've recently sent off both P1 and P2, I know P2 works from my own test data...
  12. Sorry I should have been more specific. I've...

    Sorry I should have been more specific.

    I've already written a complete, working program that uses tags to determine the record type, that can find check digit errors, wrong tag code, non-digits...
  13. no_one has the right idea, create a new text...

    no_one has the right idea,

    create a new text file and immediately rename it with a .c extension, create a new workspace ( I've only ever used the Simple Console Application setting!) and paste...
  14. Replies
    3
    Views
    1,415

    Very informative but a little too much for this...

    Very informative but a little too much for this relative newbie!

    Having done a little more research myself, I found some code containing the sort of stuff I was after.


    #include "printer.h"
    ...
  15. Replies
    2
    Views
    1,618

    You can't use standard streams as far as I'm...

    You can't use standard streams as far as I'm aware,
    you need to define a FILE pointer with an appropriate name, then open the stream 'manually'.

    Try something like this:


    FILE *prn_fp;

    /*...
  16. Replies
    3
    Views
    1,415

    Newbie Printer Formatting Question

    Hi,

    This is probably a very simple question, but none of my C course notes or reference books cover it. Can you write code to alter the default font, it's size, the page layout etc, from within a...
Results 1 to 16 of 16