April 7th, 2010, 06:34 PM
XD wow, I'm an idiot. It works just fine now. Thanks!
EDIT: also, this is what I ended up with.
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace...
April 7th, 2010, 04:02 PM
Below is a very simple Template class. I tested it without the use of templates, and it works fine. I am trying to convert it to a template class.
#include <iostream>
#include <vector>
#include...
December 11th, 2009, 11:10 PM
In the following program, I need to add a carry flag (C), a negative flag (N), and an overflow flag (V). The following CPU simulator already has a Zero flag in it. I understand theoretically what...
December 3rd, 2009, 06:04 PM
It is not a C++ question specifically, I have a lab assignment that gives you the option of using Java, Ada, C++ etc..., I could make this program easily in Ada as seen above, but I want to master...
December 2nd, 2009, 06:38 PM
This is a code example of what I am looking for, but done in Ada:
declare
a:vector(1..i); -- dynamically allocate storage in stack
begin
for k in a'range loop
...
November 21st, 2009, 06:27 PM
Oh wow, I'm really sorry for not checking this thread sooner, it seems that several people are trying to help me. Okay, for everybody that is asking for the specific wording of the assignment, it...
November 18th, 2009, 08:55 PM
Okay, thanks for the help you guys, I will go back to working on my assignment now.
November 18th, 2009, 08:19 PM
I need to Dynamically declare an array at run time for an assignment, but I am not allowed to use "new" (heap memory). Does anybody know of any other way to Dynamically declare an array at run time?