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
    3
    Views
    81

    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.
  2. Thread: Scanf

    by zach
    Replies
    3
    Views
    81

    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.
  3. Replies
    5
    Views
    100

    Yes - works fine! Thank you.

    Yes - works fine! Thank you.
  4. Replies
    5
    Views
    100

    _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.
  5. Replies
    5
    Views
    100

    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)
    {
  6. Replies
    25
    Views
    339

    [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...
  7. Replies
    25
    Views
    339

    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...
  8. Thread: Pelles C

    by zach
    Replies
    11
    Views
    251

    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.
  9. Replies
    7
    Views
    228

    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.
  10. Replies
    7
    Views
    228

    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.
  11. Replies
    25
    Views
    339

    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...
  12. Replies
    25
    Views
    339

    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?
  13. Replies
    25
    Views
    339

    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....
  14. Replies
    25
    Views
    339

    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); //...
  15. 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...
  16. Thread: Pelles C

    by zach
    Replies
    11
    Views
    251

    "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...
  17. Thread: Pelles C

    by zach
    Replies
    11
    Views
    251

    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...
  18. Thread: Pelles C

    by zach
    Replies
    11
    Views
    251

    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...
  19. Thread: Pelles C

    by zach
    Replies
    11
    Views
    251

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

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

    by zach
    Replies
    11
    Views
    251

    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...
  21. Replies
    7
    Views
    228

    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.
  22. Replies
    7
    Views
    228

    updating binary file

    When I change a record in a binary file, I damage other records in the file. Does one need to copy records to an other file, add the modified record, and continue the copy? Then rename the file (if...
  23. Re Laserlight. As a student progresses in time...

    Re Laserlight. As a student progresses in time his domain of knowledge grows, but that domain in the beginning isn't large enough to solve the problems he encounters. Also when he searches for...
  24. Thank you Laserlight. Well I obviously don't have...

    Thank you Laserlight. Well I obviously don't have the top down C knowledge that enables me to solve the problem I am facing. As far as I understand it, I am leaving stuff dangling that is causing...
  25. Thread: help is needen

    by zach
    Replies
    14
    Views
    402

    I would have thought that my English was quite...

    I would have thought that my English was quite clear. This is not the right thing to do. Not right from the point of view of the student, not right from the point of view of his professor, not right...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4