Search:

Type: Posts; User: ntantar

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,867

    OK - I found a solution to my problem however, I...

    OK - I found a solution to my problem however, I think this is only a band - aid and I still haven't figured out why the program is responding the way it is. For the PrintMenu function, I make the...
  2. Replies
    4
    Views
    1,867

    I also got rid of...

    I also got rid of FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE)); in the PrintMenu() function and changed the while loop to while(true) - it still does not work
  3. Replies
    4
    Views
    1,867

    It actually prints the menu but when I attempt to...

    It actually prints the menu but when I attempt to toggle through the list - the program is already at the end and closes
  4. Replies
    4
    Views
    1,867

    GetAsyncKeyState not working after using cin

    Hi,

    I have a menu option that the user will toggle through after the user enters some information however, when I get to the menu option I think that GetAsyncKeyState(VK_RETURN) is non zero once...
  5. Replies
    5
    Views
    6,688

    Never mind - did not fix the issue :/

    Never mind - did not fix the issue :/
  6. Replies
    5
    Views
    6,688

    Ah! Just caught it! Needed to add another...

    Ah! Just caught it! Needed to add another delamination character at the end of these strings.
    ~Thanks for the help
  7. Replies
    5
    Views
    6,688

    Thanks for the reply. My debugger points to the...

    Thanks for the reply.
    My debugger points to the following line:

    Node->BMR = atof(Container);

    However, the string that was converted from a file - that's being tokenized in the while loop-...
  8. Replies
    5
    Views
    6,688

    Assertion Failure Help

    Hi,

    I'm trying to tokenize a string that has been read from a file but I keep getting an assertion failure :
    Expression: string != nullptr
    For information on how your program can cause an...
  9. Replies
    2
    Views
    9,658

    2d Array of structs(Help)

    Hi. So I'm not sure why my program crashes when I run this code. Any help would be appreciated. Thanks

    Header file:


    typedef struct
    {
    char token;

    }Grid;
  10. Program crashing with %s call from user input

    Hi. So I'm trying to get user input (user's name) and my program keeps crashing. I have a printf() for each user input as a means of testing the code.



    int main(void) {

    int points = 0,...
  11. Replies
    6
    Views
    911

    I was trying to find tan(pi) and it was giving me...

    I was trying to find tan(pi) and it was giving me something like 1788999890.02. It's working now, I think it was the way I organized the #includes
  12. Replies
    6
    Views
    911

    Ok, thanks.I copied and pasted the code from...

    Ok, thanks.I copied and pasted the code from equations.c to equations.h header file and everything worked properly. My professor is requiring us to keep all of the #defines, #includes and function...
  13. Replies
    6
    Views
    911

    I also tried using tan(theta) but got the same...

    I also tried using tan(theta) but got the same results
  14. Replies
    6
    Views
    911

    Trig funtion not giving proper ouput

    ok, so I'm not sure why I keep getting the wrong value returned for tangent. I keep getting a very large number when I use any number, in radians, for theta. I have two c files and a .h library that...
  15. Thanks algorism. I added whitespace to " %c" and...

    Thanks algorism. I added whitespace to " %c" and the program ran perfectly. Thanks for pointing that out; my textbook didn't mention how data types treat whitespaces, at least not yet.

    Thanks...
  16. thanks for taking a look at my code. Appreciate...

    thanks for taking a look at my code. Appreciate it. I changed %f to %c for scanf("%c", &plaintext_character);

    when I did this, the program ignored scanf("%c", &plaintext_character); but every...
  17. I stripped the whitespace from the scanf() format...

    I stripped the whitespace from the scanf() format specifier and the program still skips past them from the gauss lens formula down. I'm a bit confused because the syntax looks exactly the same as the...
  18. Hey Jim, thanks for the response. Yeah, I...

    Hey Jim, thanks for the response. Yeah, I actually went back and added the white space after doing some research and it still skipped over the scanf().
  19. New to C - Would appreciate help fixing this issue

    Hello all and thanks for taking a look at my problem. When I run this code, a few errors happen. Once the program reaches the Gauss Lens formula, it ignores all of the scanf()'s and returns values of...
Results 1 to 19 of 19