Oh god, I must do this for my MIPS assembly class. We are trying to prove that local variables are actually zero'd out after exiting a function (in C++) and I haven't done any C++ code since last...
Type: Posts; User: Amyaayaa
Oh god, I must do this for my MIPS assembly class. We are trying to prove that local variables are actually zero'd out after exiting a function (in C++) and I haven't done any C++ code since last...
I think you answered my question.
I need to write a program to check if C++ zeroes out the local stack variables after a function. I could do this simply by writing a class function variable 'x' ...
Is there a program to test if your local stack variables are zeroed out after exiting a function? If so, how can I go about doing this?
I don't understand that exactly.
Here is what I have updated and this still is not working... of course.
I am going to do a forum search for merge sort.
We covered it a little in class this last...
Okay thanks! I am not really sure about how to input from two files at once, but I am going to mess around with it for awhile and I'm sure I will figure it out. Thanks for the help!
Can someone help me or give me a hint of how to do this problem?
I am supposed to have two files of sorted numbers, for example:
"Section52.cpp" (name of file)
1
4
6
8
12
15
I am trying to add sound to this program so that for every generation that appears, it will beep. There is a seperate program that has to be opened with this that I have put below as well. Can anyone...
thanks guys!
I am experiencing a runtime error with this program.
The problem is that if I want one of the weights to be .7 and the other to be .3, it will say there is an error. It should only be saying this if...
Thanks guys! That was what I needed!
but I don't understand how to read two different objects from a file...??
I don't understand how I would even read Final 82 ...?
I was wondering if someone could tell me how I could do this:
I had to write this program for an exam last week and I was never clear how to do this, so I know I missed this question but I still...
I am trying to write a program to practice for an upcoming test that is supposed to take in these names and numbers from a file and then take the average of all the numbers of the file. I am not...
I am trying to write a program that needs to use the enter key as a command to go through to the next phase of the program.
My program shows one instance of something on the screen.
When I press...
I just checked it and that worked. Thank god for this forum.
oh HO HO! Thank you!
Well I thought I had this all figured out. Something is wrong with my logic and I can't figure it out. I am supposed to find the median of a group of numbers in a file that I have created...
Oh thank you thank you thank you
what a stupid little mistake that has wasted so much of my time!
You rock!
I have just learned how to use fstream in my programming class and we are supposed to gather the information from a file we have created which I have named Section51.dat
The program is supposed to...
This program runs correct until I get to the last function with the two dot-operators in the main. The program ends without giving me what I am asking for. I want it to return the best student and...
I can't understand why it is not returning the right amount of pennies in this program:
for instance, if I enter item amount is 12.00 and amount tendered is 99.99, it should say number of pennies...
I'm not really sure... Here is what my program looks like so far.
It is supposed to implement a cash register.
The last function (AmountToMakeChangeFor) is supposed to take a parameter...
Hi
I am not really sure how parameter placeholders work and I was wondering if someone could explain it to me. I am dealing with classes and I don't really understand how they work together.
wow one little decimal after all of that.... thank you so much
I am having trouble figuring out how to get this program to work correctly and was wondering if someone could give me a little guidance? I know the problem is in the last function...