Search:

Type: Posts; User: zach

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    Okay, I will give it more tries. Thanks.

    Okay, I will give it more tries. Thanks.
  2. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    I already responded but have another question. In...

    I already responded but have another question. In a number of instances in the program I use a switch statement. In those instances there are no more problems. However one situation remains. There I...
  3. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    [QUOTE=rstanley;1289634]The answer IS dead...

    [QUOTE=rstanley;1289634]The answer IS dead simple, and provided by @laserlight.

    Don't use scanf() or getchar(). Use fgets() to get the whole string in, including the newline, and check the first...
  4. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    The solution turned out to be dead simple: - the...

    The solution turned out to be dead simple: - the problem was in menu() - so: replace "scanf()" by "get char", use "case '1' etc in "switch", and use "menu()" as the default option. Thank you again...
  5. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    The code using the int that is being input is a...

    The code using the int that is being input is a switch statement. I will have to do some trials with your suggestion for which many thanks.
  6. Thread: Scanf

    by zach
    Replies
    11
    Views
    229

    Scanf

    When using scanf, how do you check that only the Enter-key was pressed while an int was expected? This must be a very stupid question; sorry, I couldn't find the answer.
  7. Replies
    5
    Views
    147

    Yes - works fine! Thank you.

    Yes - works fine! Thank you.
  8. Replies
    5
    Views
    147

    _wherex and _wherey are themselves not the...

    _wherex and _wherey are themselves not the problem and are not an essential part of my question. They are non-standard statements, made available by the IDE (Pelles C) and were tested to work okay.
  9. Replies
    5
    Views
    147

    Re where and wherey

    #include<stdio.h>
    #include<string.h>
    #include<conio.h>
    #include<windows.h>
    void locate (int x, int y) ;



    int main(void)
    {
  10. Replies
    25
    Views
    459

    [QUOTE=flp1969;1289434]I have this policy to...

    [QUOTE=flp1969;1289434]I have this policy to never use floating point if I can... Here's why... A simple approach to this "conversion" would be:
    etc.

    As I have responded elsewhere, (given that I...
  11. Replies
    25
    Views
    459

    I decided to stick to integers all the way...

    I decided to stick to integers all the way through, then at the end to convert to string and flipper in a decimal point with a simple routine I wrote. But I will certainly study the reference you...
  12. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    Roemccarr: Hi, thank you for responding. I didn't...

    Roemccarr: Hi, thank you for responding. I didn't want to switch IDEs before finishing my current project. Which I have now done, with the excellent help of you all. I will now try code blocks.
  13. Replies
    7
    Views
    267

    Thank you for responding. With much gratitude for...

    Thank you for responding. With much gratitude for the help I have been getting: the application has been completed and is running fine.
  14. Replies
    7
    Views
    267

    Asymtotic, hi, sorry to have been unclear. The...

    Asymtotic, hi, sorry to have been unclear. The program (financial analysis) has been completed, thanks to you all ! , your patience in particular, and is running a treat.
  15. Replies
    25
    Views
    459

    I found an excellent article on the Net by...

    I found an excellent article on the Net by Professor Don Colton (University of Hawaii) Secrets of "printf". Had no idea there was so much to this statement. I have a nice list now. Thank you for your...
  16. Replies
    25
    Views
    459

    I decided to stick to integers all through and to...

    I decided to stick to integers all through and to convert outputs to strings, then flipper in periods / decimal points. Is there an easy way to right adjust a column in C?
  17. Replies
    25
    Views
    459

    Yes I had considered your option one, but thought...

    Yes I had considered your option one, but thought I should go for a type that has a broader value range. But OK, I will go for integers in the first place. I wouldn't know about a special library....
  18. Replies
    25
    Views
    459

    How to do a particular conversion?

    FILE *C;
    C = fopen("data2","rb");
    ??? result; // initiating
    int cntr = 0;
    for (cntr=1; cntr < last+1;cntr++)
    {
    fseek(C, sizeof(struct A) * (cntr-1), SEEK_SET); //...
  19. Thread: Microsoft display

    by zach
    Replies
    1
    Views
    137

    Microsoft display

    (Working with C and Windows.) Along the top of the working-area / display there is a band, with options to quit, (that lights up red), to decrease and increase the working area. Is there a code to...
  20. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    "You may be able to configure the Pelles C IDE to...

    "You may be able to configure the Pelles C IDE to work with another compiler. If that's not possible, honestly, there are plenty of beautiful IDEs out there." Where the mistake was made / versus...
  21. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    There was NO error message - simply complete fail...

    There was NO error message - simply complete fail of the compilation. There was NO reference to an ERROR LINE, which most often in Pelles there is not. However one is generally even directed to lines...
  22. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    No no no combinations, loops or whatever, I wrote...

    No no no combinations, loops or whatever, I wrote < within >.

    switch (expression)
    {
    case 1: // some code. If in *that* code one initializes a variable, e.g., char banans[no] then you...
  23. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    I didn't know a better expression - you tell me.:)

    I didn't know a better expression - you tell me.:)
  24. Thread: Pelles C

    by zach
    Replies
    11
    Views
    296

    Pelles C

    I found that if you work with Pelles C, and you initialize a variable within a switch statement, Pelles signals an error (and blocks you from further working) and you will not be unable to find out...
  25. Replies
    7
    Views
    267

    Thank you for telling me in this way that there...

    Thank you for telling me in this way that there is a mode that does the job. I will continue enjoying my lacking understanding.
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4