Search:

Type: Posts; User: Trey Brumley

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. I think the flaw that caused the problem was in...

    I think the flaw that caused the problem was in my convoluted cipher creator. Deleted all of that and it works fine, storing the array. I've also gone off of your suggestion of a "template array"...
  2. Unfortunately, professor's orders. No functions,...

    Unfortunately, professor's orders. No functions, no classes, etc. Just wants a simple copy'n'paste program to grade. Not exactly the best restriction if you ask me, but I have to deal with it...
  3. Playfair Cipher program - toupper() function causing exceptions

    As the title implies, I'm working on a playfair cipher program.

    At the moment, I'm only trying to create the LxW 2D character array, using capital letters and the 0-9 digits and a user-inputted...
  4. Outfile function not properly calling another one

    Working on a program where the program will read in an adjacency matrix and create a .dot file for GraphViz using that information. All class code is below.

    I am only trying to create three...
  5. Taking data from DataGridView cells to add to a different DataGridView

    Working on a project involving the use of two datagridviews. The idea being that the user will select entries from one, hit a button, and it will add them to another. At the moment, I'm just trying...
  6. Replies
    0
    Views
    17,904

    Drawing in a picture box help

    I'm working on a simple little painter program, designed to look like an example from a text book. The current program has to fulfill three features: 1) it needs color controls (which it has, in...
  7. Replies
    1
    Views
    634

    Stack help

    Posted an issue about this a while back, found some errors and corrected them, still having one major issue though.

    The following program is designed to read in an array of characters in the form...
  8. Replies
    2
    Views
    2,312

    Bump. There has to be something wrong with the...

    Bump. There has to be something wrong with the logic going into the couts in lines 147, 159, and 171, but for the life of me, I can't figure it out.
  9. Replies
    2
    Views
    2,312

    Binary Expression Trees problem

    I'm working on a program to print binary expression trees in a post-fix (A B +) and in-fix (A + B) manner after inputting the data in a pre-fix (+ A B) manner. The code is done and compiles, but I'm...
  10. Replies
    2
    Views
    1,297

    Pass array by reference help

    I need to pass an array of 10 instances of a custom class to a function. The snippets of code are posted below. How would I do this right?

    The prototype:

    int Search(Vertex vertex[], ofstream...
  11. Replies
    7
    Views
    817

    Fixed that problem. Now receiving a different...

    Fixed that problem. Now receiving a different error. "Stack around the variable 'Square' was corrupted."

    EDIT: Never mind, fixed it. Thanks for the help!
  12. Replies
    7
    Views
    817

    Hang on, didn't fix my problem. Still getting...

    Hang on, didn't fix my problem. Still getting the unhandled exception.
  13. Replies
    7
    Views
    817

    Array help

    The following segment of code is turning up an unhandled exception labelled "Access violation." It is designed to use arrays create a 20x20 square for the purpose of charting a magic square. I am...
  14. Replies
    11
    Views
    5,101

    Changing all the s to s hasn't really...

    Changing all the <stack>s to <T>s hasn't really helped much. The declarations of the functions in the .h file with stack& as a parameter are turning up identifier errors. What will I use? stack...
  15. Replies
    11
    Views
    5,101

    The asterisks are meant to indicate where I am...

    The asterisks are meant to indicate where I am able to fill in the blank. They're mostly intentional (there are some that are placed as pointers, but those should be obvious).
  16. Replies
    11
    Views
    5,101

    Implementing stack using class template

    I've already checked the other two; apparently, they are unrelated.

    The following program is designed to demonstrate class templates. The program will evaluate postfix expressions input to the...
  17. Replies
    10
    Views
    820

    I get illegal indirection by putting *c.queen[n],...

    I get illegal indirection by putting *c.queen[n], as well as the same error as before.
  18. Replies
    10
    Views
    820

    How would I do that? EDIT: I mean, where...

    How would I do that?

    EDIT: I mean, where would I put the * in the reference?
  19. Replies
    10
    Views
    820

    The prototype is bool isSafe(chessboard c, Queen...

    The prototype is bool isSafe(chessboard c, Queen q1, int queens)

    The problem turning up is that I'm passing it a "Queen *" instead of a Queen. I can't change the class, so how would I pass it...
  20. Replies
    10
    Views
    820

    How would I pass this reference?

    The excerpt of the program I'm doing is my attempt to pass a boolean function a number of arguments, including a pointer. Problem is, I don't want to pass it the pointer, but the base class it...
  21. Replies
    11
    Views
    785

    Thanks. That got it working. Everything else is...

    Thanks. That got it working. Everything else is just some good old fashioned logic now, since it's all output.
  22. Replies
    11
    Views
    785

    Row::Row(void){ allocateSpaces(11); } ...

    Row::Row(void){
    allocateSpaces(11);
    }


    void Row::allocateSpaces(int num)
    {
    for (int x=0; x<num; x++)
    space[x] = new Space;
  23. Replies
    11
    Views
    785

    After moving allocateTiles() to the Row class and...

    After moving allocateTiles() to the Row class and retooling it a bit, it compiles just fine. I also allocated rows, which automatically allocated spaces, creating an 11x11 board. The idea is to...
  24. Replies
    11
    Views
    785

    The following code is updated from the old code. ...

    The following code is updated from the old code. Column.h and Column.cpp have been removed, replaced by Space.h and Space.cpp. Main.cpp is exactly the same.

    There is another break error in the...
  25. Replies
    11
    Views
    785

    Added allocateTiles() to the constructor for...

    Added allocateTiles() to the constructor for Chessboard. Now getting a different error. Debug assertion error. What would cause that?
Results 1 to 25 of 75
Page 1 of 3 1 2 3