Search:

Type: Posts; User: plutonas

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,275

    The project says: "You can take for granted that...

    The project says: "You can take for granted that the files are correct, so you don't have to do any error checking". So i think i will not do any. Of course if it was a real-world programm, of course...
  2. Replies
    8
    Views
    1,275

    well the files are supposed to be correct, so no...

    well the files are supposed to be correct, so no error checking is required... :-)
  3. Replies
    8
    Views
    1,275

    I think i got it: pT =...

    I think i got it:



    pT = fopen(filename,"r");
    fgets(str, 32,pT);
    sscanf(str,"%d", &lines);
    for (i=0; i<lines; i++){
    fgets(str,32,pT);
    sscanf(str,"%c %d %d %d %d %d %d", &c,...
  4. Replies
    8
    Views
    1,275

    I can't find any examples in the board, perhaps...

    I can't find any examples in the board, perhaps i'm searching wrong. Could you be so kind to provide me with some links?
  5. Replies
    8
    Views
    1,275

    read-lines in two stages

    hello, i want to read and store data from lines of a file which has the following structure:
    they start with a character which is either c or s, if it is c three integers follow, if it is s two...
  6. Newbie question: Kernighan-Ritchie C book- problem

    Hi this is my first post here...
    I am learning C right now(through the book on the Title), so my knowledge about the language is very small...

    So, in the first chapter of the book there is a...
Results 1 to 6 of 6