Search:

Type: Posts; User: tenibag

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,169

    With file is everything ok. For me fscanf is...

    With file is everything ok. For me fscanf is curious, i dont get the result it gives.
  2. Replies
    11
    Views
    2,169

    Already done that for fscanf. Result is pretty...

    Already done that for fscanf. Result is pretty interesting. In place of ints from (0,0),(2,0),(3,3),(0,2) I have 12665 in 2nd line is false result from if.

    How to check return value of fopen ?
  3. Replies
    11
    Views
    2,169

    Command system("chcp 1250") is for Polish chars...

    Command system("chcp 1250") is for Polish chars in console. I added it on Windows, but it didnt make any difference.

    Any thoughts what is with this miserable fscanf? ;<
  4. Replies
    11
    Views
    2,169

    There are no errors. I can compile the code but...

    There are no errors. I can compile the code but after this, program simply doesn't work. Function fscanf loads strange values.


    #include <stdio.h>
    #include <math.h>


    //po podaniu...
  5. Replies
    11
    Views
    2,169

    From Linux to Windows - problem

    Hi. I wrote some code like this:


    FILE * plik;


    plik = fopen("plik.in", "r");
    fscanf(plik, "(%d,%d),(%d,%d),(%d,%d),(%d,%d)", &ax,&ay,&bx,&by,&cx,&cy,&dx,&dy);
    fclose(plik);
Results 1 to 5 of 5