CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: EmperorCesar

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    891

    Re: Simple Template Class problems

    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...
  2. Replies
    2
    Views
    891

    Simple Template Class problems

    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...
  3. Replies
    0
    Views
    1,888

    CPU Simulator

    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...
  4. Replies
    24
    Views
    3,259

    Re: Dynamic Arrays (not using New)

    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...
  5. Replies
    24
    Views
    3,259

    Re: Dynamic Arrays (not using New)

    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
    ...
  6. Replies
    24
    Views
    3,259

    Re: Dynamic Arrays (not using New)

    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...
  7. Replies
    24
    Views
    3,259

    Re: Dynamic Arrays (not using New)

    Okay, thanks for the help you guys, I will go back to working on my assignment now.
  8. Replies
    24
    Views
    3,259

    Dynamic Arrays (not using New)

    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?
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured