Hey again.
Well, I got all the kinks out of it from before, but now I'm at a block again. My Round Robin algorithm seems to be stuck in an infinite loop. :(
I can't figure out where it's...
Type: Posts; User: Shinobi-wan
Hey again.
Well, I got all the kinks out of it from before, but now I'm at a block again. My Round Robin algorithm seems to be stuck in an infinite loop. :(
I can't figure out where it's...
I'm back. Turns out that our insurance is an HMO which only covers a doctor who dosen't have hours today. peachy...
So anyway, I looked back and saw my obvious mistake... I had my ptmp going...
All right. I added in some of the suggested things, and I added in an exit condition into rr(). The condition is triggeresd all the time, so I need to figure that out. Any suggestions?
Also, my...
Hey guys. I'm working on making a round robin process scheduling algorithm and I'm working on it bit by bit. However, I seem to have hit a snag. The following code gives me a segmentation fault after...
My stack class works perfectly on simple examples.
I'll take those questions into consideration when I re-write my main.cpp and see what happens.
...
I don't want a direct answer containing code, just conceptual suggestions. Obviously I am missing something, and just need a little push in the right direction.
This place was so helpful...
Well, let me describe the assignment:
You are given a basic HTML file and must create a program that will parse the file and check for:
Tag Validity
Proper tag nesting
A class for the stack...
Well, now I'm on assignment 2 and am once again flustered. This time around, we have to use a class to dynamically allocate a 2D Matrix and later integrate it into the previous assignment (My last...
Well, it isn't technically complete, but I did fulfull the requirements of the project. I do realize that a statement that is more than 5 times the length of the key will cause an overflow. But I am...
Thank you soooooo much.
With that addition of a line, my program is complete.
I added:
if(i == messagelength)
break;
Ok, I added this:
for(int a=0; a<5; a++)
for(int b=0; b<10; b++)
table[a][b] = ' ';
but my output did not change.
Wow, that worked...well except for one thing:
I use the phrase "allyourbasearebelongtous" as my input and "movezig" as my keyword.
The output is:
Please enter your statement,max 50...
I want to pass the entire 2D array "table" to the function.
What the function does is take the message, insert it into the table in row-major order. After this, the message is printed in column...
I apologize for my stupidity, but...wha?
My new semester's resolution is not to take the summer off of using C++.
Anyway, you lost me there.
#include <cstring>
#include <iostream>
All right, I changed my function header to: void encode(char statement[], char keyword[], char table[5][])
and my function call to: encode(statement,keyword,table[5]);
however, this gives me...
First of all, I'd like to introduce myself to the C-Programming.com boards. I'm taking CS in college and not going to class for the summer made me rusty. If anyone can provide me with some insight...