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...
Type: Posts; User: ntantar
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...
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
It actually prints the menu but when I attempt to toggle through the list - the program is already at the end and closes
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...
Never mind - did not fix the issue :/
Ah! Just caught it! Needed to add another delamination character at the end of these strings.
~Thanks for the help
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-...
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...
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;
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,...
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
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...
I also tried using tan(theta) but got the same results
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...
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...
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...
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...
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().
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...