Search:

Type: Posts; User: mabuhay

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,280

    Thx for your help. But it just works this way: ...

    Thx for your help. But it just works this way:

    #if (!defined ID_1 || !defined ID_2)

    mfg
  2. Replies
    2
    Views
    1,280

    ORe identifier: #ifndef ID_1 || ID_2 || ....

    Is it possible to ORe some identifiers with #ifdef or #ifndef?
    This does not work:
    #ifndef ID_1 || ID_2 || ....
  3. Replies
    6
    Views
    2,345

    I'm now using a **. It's the easiest way I think....

    I'm now using a **. It's the easiest way I think.

    Thx for your help
  4. Replies
    6
    Views
    2,345

    I'm not programming for a PC, I'm programming...

    I'm not programming for a PC, I'm programming with TIGC-C for my calculator. So there's a way to add a user file extension to the file or to archive the file, and for that I have to close the file...
  5. Replies
    6
    Views
    2,345

    hmmyes, but I have to return error numbers as...

    hmmyes, but I have to return error numbers as int... So the easiest way would be the FILE **f. Or is there another solution?

    thx @swoopy
  6. Replies
    6
    Views
    2,345

    Pointer problem with FILE *f in function

    I declared

    FILE *f = NULL;
    in the main-function. Then I call a function, where I close the file f and open it again. I thought, the function prototype can look like this:

    void my_function(FILE...
  7. Thanks for all your answers. It's running :)

    Thanks for all your answers. It's running :)
  8. Jup, that works. Now I have another problem....

    Jup, that works.

    Now I have another problem. In the function, I have to copy the data from one file to another (for example to add a block of data in the middle of the file). For that, I need a...
  9. It will be a binary file. Thx for your answer, I...

    It will be a binary file. Thx for your answer, I will try it out...

    mfg
  10. How to call a function several times, but with a different structure as argument?

    Hi

    I have written a function where I can save a structure in a file. So the prototype looks like this:

    void SaveStructure(FILE *f, STRUCTURE *structure);

    The structure looks for example like...
  11. Replies
    160
    Views
    275,415

    Sticky: For german users: C von A bis Z...

    For german users:

    C von A bis Z
    All basics you have to know about C programming. With sourcecode-examples and lots of useful graphics.

    also available as Open Book: www.pronix.de

    There's...
  12. Replies
    14
    Views
    1,550

    mkee, now i get it (i should start to work also...

    mkee, now i get it (i should start to work also with an other OS) ;)
    thx
  13. Thread: Hi people.

    by mabuhay
    Replies
    10
    Views
    1,065

    first, learning how to use structures, then a...

    first, learning how to use structures, then a little database, where you can store for example last name, first name and age and where you can save them in a file an load them... :cool:
  14. Replies
    14
    Views
    1,550

    oh, i thought it is, because in the FAQ of...

    oh, i thought it is, because in the FAQ of system("pause") is written "A poor-mans method of using system(), OS specific."
    Or why else should'nt you use system("pause")? I know it's not that good...
  15. Replies
    14
    Views
    1,550

    but system() is OS specific...

    but system() is OS specific...
  16. Thread: beginer help

    by mabuhay
    Replies
    11
    Views
    1,168

    why are you using the red ones? #include...

    why are you using the red ones?


    #include <stdio.h>
    int main()
    {
    {printf("hello");
    getchar();
    }
    }
  17. Replies
    3
    Views
    1,036

    if you want just to show the content of your file...

    if you want just to show the content of your file on the screen, just use one fgets. If the nuber will never be longer than 9 chars, you can still use your check "if(strlen..." on each line you read....
  18. Replies
    31
    Views
    3,576

    what I can see is, you first have to declare all...

    what I can see is, you first have to declare all the variables, and then you can use things like loops and so on.
    In your function password() you first declare some variables and char* name[6],...
  19. Replies
    8
    Views
    1,889

    now I opened a forum, with an english section.->...

    now I opened a forum, with an english section.-> Forum
    Feel free to post all your questions about the homepage there. I will answer as good as i can.
  20. Replies
    41
    Views
    26,973

    OK, now i got it! If ther are too much characters...

    OK, now i got it! If ther are too much characters in the input buffer, the maximal number of characters will be read and the rest will stay in the stdin and if the next scanf() is called, it will...
  21. Replies
    41
    Views
    26,973

    Yes, but if I use fgets() I stored my input in a...

    Yes, but if I use fgets() I stored my input in a variable but something is still in the input. Or why does it jups over if I use fgets() in the same code again?


    I don't want to use scanf(),...
  22. Replies
    41
    Views
    26,973

    I'm just too lazy to write the parameters... ;) ...

    I'm just too lazy to write the parameters... ;)

    but, does someone had ever problems using fflush(stdin)?
    i think it is known, if you use fgets(some_parameters*g*), that you have to empty the...
  23. Replies
    41
    Views
    26,973

    what means "fflush() is illegal"? you shouldn't...

    what means "fflush() is illegal"? you shouldn't use it anymore?
    I normally use fflush(stdin) after fgets()...
  24. Replies
    8
    Views
    1,889

    hmmyes, I still thought about a translaion, but...

    hmmyes, I still thought about a translaion, but it would be to hard to translate everything on my own.

    Today i added some descriptions of the functions. I think, if you know something about...
  25. Replies
    8
    Views
    1,889

    yessssssssss, it works! if someone needs ini...

    yessssssssss, it works!

    if someone needs ini functions to store data in a *.ini-file like settings etc. here you can download my library (C-Funktionen -> ini_* -> my_ini.zip). Also a demo-programm...
Results 1 to 25 of 27
Page 1 of 2 1 2