Hi,
I am a computer science major student. I have just finished my data structures class but feel I did not learn anything from the book my professor made us use. It was Data Structures and...
Type: Posts; User: YevGenius
Hi,
I am a computer science major student. I have just finished my data structures class but feel I did not learn anything from the book my professor made us use. It was Data Structures and...
Please, somebody help me. I am really desperate here!!
Yev
Hi,
Thank you for your posts. The code "thefroggy" gave by making the unary negation operator as an exception fails to work and still presents the same runtime problem that stack around the variable...
Hi,
The loop breaks when the operator stack is [ or ( . The code to break out is in the while loop.
My question is should I be sending a pointer to the number stack in my negate() function?
...
Hello,
Thank you for opening the post. I am trying to implement a unary negation operator function to use in my program that uses 2 stacks: a number and operator stack. I get a runtime error in...
Hi, I am experiencing a runtime error with a function of my program that tries to output a doubly linked list backwards. I am not sure where the problem originates, but the debug shows a runtime...
Hi,
Thanks a lot for the help. It does work now, but I have a question. The if statement if (n) is what solved it, but I am not sure why this works.
When it fails to find another value in the...
Hi,
I am not an expert on this, but I had a problem with this in the past. I know the main difference between getche() and getchar() is that with getche() you don't need to press Enter after...
Hello,
Thank you for taking the time to read this. I am writing a function that will replace a user-entered value in a list. It will replace every single instance of that value with a new value. My...
Hi again,
To the person that told me to check that I don't get a NULL in a pointer after malloc or realloc, I checked it and it did not give me any problems. So, I am still stuck. I continue...
Hi,
I don't understand. I think I have written everything according to C standards. Is it the cin and couts that make you think this is a C++ program? Can you please tell me why you can't tell if...
Hello,
I am a C newbie working on a program using malloc and realloc functions. The problem is after compiling and running the program, the output of the array is garbage values. I would really...
Hello,
This is original thread starter, Yevmaster, just using my registered name. I've corrected my program without using
compound interest formula you guys have suggested.
I have altered the...
Well, thank you guys for your suggestions. I fixed my problem by getting rid of member function compute_avg(). Instead, I created a get_age() member function. So, I keep a running total of the age in...
Hi,
First of all, thank you for opening this post. This is my first C++ program with classes, and I've ran into some trouble.
I am writing program using a class that stores first name, last...
Hi,
I have tried creating a method to check if a number exists in an array but still I am not getting the proper solutions. If someone could please write me that method, I would really appreciate...
Hello,
I've writing a function to find the three largest integers in a 3rd dimensional array which has #0 to 9 stored exclusively. However, I keep getting the same highest # (usually 9) stored in...