Okay so I think I misinterpreted the issue. It is not that the math isn't right. For some reason it is only generating the lower numbers.
Type: Posts; User: Liangine
Okay so I think I misinterpreted the issue. It is not that the math isn't right. For some reason it is only generating the lower numbers.
I am making a random number generator. I have fixed all issues except for one. I am supposed to ask the user for how many digits the user wants the numbers to have. How many numbers does the user...
wow, its always the little things.
Yes I know I probably should use arrays and I have been practicing with them in other projects. They are still confusing to me when using them for reasons like this. I switched Srand around and it...
My random number generator isn't working properly. It seems to be ignoring my conditions when it compiles and I enter the input.
The program is supposed to accomplish the following.
1. Let the...
Yes, the assignment requires that I use two strings, and three dynamic arrays of integers. I am supposed to prompt the user for a number. then prompt them for a second one. Then I store both of the...
it is for a assignment so I am required to use 3 dynamic arrays. One for the first number, one for the second number then I add them together. Should I just stay away from using the point then?
And the lines that the error occured on are in my class cpp file. Where I try to make the arrays.
Oh sorry, the fix was extremely minor. Everything is the same except for this. I accidentally put parenthesis where they shouldn't be.
LargeIntegers largeInteger;
largeInteger.run();...
I fixed my original problem. But now when I compile it I get these errors. These errors happen on these lines. Error 1(line 35), Error 2(Line 36), Error 3(Line 38), Error 4(Line 38), Error 5(Line...
I am making a program that allows you to add two big numbers that are larger then what int can handle together. I think I have done everything to accomplish this but when I try to instantiate the...
My problem is probably a simple fix but I am having trouble figuring it out. I made a program and when I try to use the main driver to instantiate everything it says invalid storage class for a...
My biggest issue is that I can't get the private member variables from the Sale files to go into the array that are in the cash register files. The errors i was getting was set functions need to...
So I have a project for C++ due tomorrow. I have been struggling with it for awhile because of the way we have to make the program. . Now my issue seems to be putting the data into a array with the...
I fell so dumb right now. The program now works. Thanks for pointing out my stupidity lol its the most simple things that get me.
Oh and also when it executes here is an example of what it does:
Press 0 for circle, press 1 for square: 0
Enter the side length of the square: 5 (notice that even thought i put...
I am trying to use enumeration types in my conditions to make a simple program that calculates area of a square or circle depending on users choice then updates the total area and outputs the total...
am i getting any closer? The program now runs but it dosen't output the menu right still. It just gives me a bunch of random numbers that aren't even in the .txt file.
#include...
I am trying to output the whole menu but now im getting 1 error C2676: binary '[' : 'menuItemType' does not define this operator or a conversion to a type acceptable to the predefined operator
here...
I understand now. I had a variable in my function prototype that i wasn't even using. Okay i got it fixed but now when i run it this happens. My menu is messed up. I tryed to format my menu to pop up...
I am trying to make a automated menu. It shows there are no syntax errors but when compiled it says cannot convert choice from type into to menuItemType. I am not sure what I did wrong. Here is the...
What do you mean by separate and distinct? i fixed the bool to string problem and made the loop.
Here is the code after I made added loops and if statements. I now am passing the users choice to the printcheck function wrong. It says type int is incompatible with my struct menuItemType.
...
Will do. I'll make the if statements then post the new code
i could do this in some if statements but i think there may be a easier way