Search:

Type: Posts; User: zach

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    73

    The output of a c program on a Windows display is...

    The output of a c program on a Windows display is rectangular in form, and is positioned randomly; I would like to center the output on the display.

    The reference you have given me is very...
  2. Replies
    2
    Views
    73

    Centering onscreen output

    Running under Windows, is there a way to center the output of a c-program on the display, by means of code in the application, like e.g. it can be done, from within a C# application?
  3. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    You have drawn a line under the discussion, for...

    You have drawn a line under the discussion, for which I thank you. I will do the same: I did explicitly describe the nature of the bug to you in very clear terms. Therefore the simplicity of the bug...
  4. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    You simply don't have the wisdom to follow the...

    You simply don't have the wisdom to follow the while wend loop for a few cycles in order to see what the outcome is on the screen. That is, without butchering my code about to support your erroneous...
  5. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    "This demonstrates that indeed the bug has to do...

    "This demonstrates that indeed the bug has to do with the combination of the newline being left in the buffer from fgets, and puts writing its own newline."

    No laserlight quasi new lines are...
  6. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    You seem to be oblivious to the error in the...

    You seem to be oblivious to the error in the algorithm. Did you have a good look at it? You simply have it wrong. And might we please limit the discussion to the issue per se?
  7. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    The core if your response was a supposed hidden...

    The core if your response was a supposed hidden new line. That was clanger. You have it wrong. The cause was the algorithm.
  8. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    Thank you for this, I will have a good look a it....

    Thank you for this, I will have a good look a it. Zach K.
  9. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    Laserlight, Hi, I suggest you take another look...

    Laserlight, Hi, I suggest you take another look at the code. You might see how the line skips came about. Zach K.
  10. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    Laserlight, hi: 1. I am not showing measures...

    Laserlight, hi:

    1. I am not showing measures to get rid of "new lines" because I removed the various shots I took at the problem, in order to show the code that was bugged.
    2. "Lack of...
  11. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    To which book are you referring with "the manual"?

    To which book are you referring with "the manual"?
  12. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    Hi. I did, in fact, check extensively for new...

    Hi. I did, in fact, check extensively for new line characters at the end of the string in question! Now, in retrospect, I tend to think that at the heart of the problem, trailing white spaces were...
  13. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    "Read the Fine Manual and you would learn why it...

    "Read the Fine Manual and you would learn why it did what it did! " What a silly thing to say on a forum, or are you saying you don't know?
  14. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    Thank goodness that in programming there...

    Thank goodness that in programming there generally are more than one way to code something. So I scrapped the function and took a different route. Hence I am retracting my query about the bug I...
  15. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    If that were the case there would be a line...

    If that were the case there would be a line skipped after each intended line, which there isn't. So would you please explain your response to my query?
  16. Thread: File problem

    by zach
    Replies
    26
    Views
    322

    File problem

    FILE *fp;
    char *p;
    char str[35];
    int counter = 0;

    fp = fopen("data5.txt","r");
    if(fp == NULL)
    {
    gotoxy(70,5);
    puts("No data5.txt with codes.");
  17. Replies
    2
    Views
    96

    Yes!! Thank you. Zach K.

    Yes!! Thank you. Zach K.
  18. Replies
    2
    Views
    96

    Reading a text file

    fscanf(fle5,"%[^\n]%*c", dummy);



    This code is supposed to be able to deal with spaces in the text file, which it does, BUT the code causes skipping lines, which is not what I want. (So there...
  19. Thread: Geany IDE

    by zach
    Replies
    4
    Views
    271

    I think (???) the path needs to go to Program...

    I think (???) the path needs to go to Program Files (x86)\MinGW-W64\i686-8.10....etc\mingw32\bin\g++ That might go in the r.h.column of Environment Variables, but what goes in the l.h.column I don't...
  20. Thread: Geany IDE

    by zach
    Replies
    4
    Views
    271

    Thank you for responding. I thought my question...

    Thank you for responding. I thought my question was out of order. However, I am using MinGW64 / Dev-cpp; I think the solution has to do with setting environment variables / solving path issues. I...
  21. Thread: Geany IDE

    by zach
    Replies
    4
    Views
    271

    I am referring to the textboxes under "Working...

    I am referring to the textboxes under "Working Directory". Zach K.
  22. Thread: Geany IDE

    by zach
    Replies
    4
    Views
    271

    Geany IDE

    (Re X86 and W10) Re the configuration of the Geany IDE: could someone please help me setting the "Build Commands"?
  23. Thread: Re gotoxy

    by zach
    Replies
    14
    Views
    351

    Laserlight, I find it difficult to contain myself...

    Laserlight, I find it difficult to contain myself when people are being rude to me. Yet a lot to learn, I fear. The program you helped me with, which I used to learn C, turned out beautifully.
  24. Thread: Re gotoxy

    by zach
    Replies
    14
    Views
    351

    Re laserlight Hi! This is a second post trying to...

    Re laserlight Hi! This is a second post trying to get past so called errors in my submission.

    Yes I was declaring the function and indeed wondered what the best parameters were from the point of...
  25. Thread: Re gotoxy

    by zach
    Replies
    14
    Views
    351

    Then wait with responding to till you have read...

    Then wait with responding to till you have read an introductory book on C and in the mean time, don't trip over your ego.
Results 1 to 25 of 143
Page 1 of 6 1 2 3 4