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"...
Type: Posts; User: Trey Brumley
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"...
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...
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...
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...
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...
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...
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...
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.
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...
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...
Fixed that problem. Now receiving a different error. "Stack around the variable 'Square' was corrupted."
EDIT: Never mind, fixed it. Thanks for the help!
Hang on, didn't fix my problem. Still getting the unhandled exception.
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...
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...
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).
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...
I get illegal indirection by putting *c.queen[n], as well as the same error as before.
How would I do that?
EDIT: I mean, where would I put the * in the reference?
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...
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...
Thanks. That got it working. Everything else is just some good old fashioned logic now, since it's all output.
Row::Row(void){
allocateSpaces(11);
}
void Row::allocateSpaces(int num)
{
for (int x=0; x<num; x++)
space[x] = new Space;
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...
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...
Added allocateTiles() to the constructor for Chessboard. Now getting a different error. Debug assertion error. What would cause that?