Search:

Type: Posts; User: Shinobi-wan

Search: Search took 0.01 seconds.

  1. Infinite loop in Round Robin process scheduling algorithm

    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...
  2. Replies
    9
    Views
    1,687

    I'm back. Turns out that our insurance is an HMO...

    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...
  3. Replies
    9
    Views
    1,687

    All right. I added in some of the suggested...

    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...
  4. Replies
    9
    Views
    1,687

    Segmentation Fault

    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...
  5. Replies
    5
    Views
    2,159

    My stack class works perfectly on simple...

    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.
  6. Replies
    5
    Views
    2,159

    ... I don't want a direct answer containing...

    ...

    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...
  7. Replies
    5
    Views
    2,159

    Stacks, classes, HTML tags, and parsing.

    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...
  8. Replies
    1
    Views
    1,332

    Help needed on project, (using a class to allocate a 2d matrix)

    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...
  9. Replies
    19
    Views
    1,922

    Well, it isn't technically complete, but I did...

    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...
  10. Replies
    19
    Views
    1,922

    Thank you soooooo much. With that addition of...

    Thank you soooooo much.

    With that addition of a line, my program is complete.

    I added:


    if(i == messagelength)
    break;
  11. Replies
    19
    Views
    1,922

    Ok, I added this: for(int a=0; a

    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.
  12. Replies
    19
    Views
    1,922

    Wow, that worked...well except for one thing: ...

    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...
  13. Replies
    19
    Views
    1,922

    I want to pass the entire 2D array "table" to the...

    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...
  14. Replies
    19
    Views
    1,922

    I apologize for my stupidity, but...wha? My...

    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>
  15. Replies
    19
    Views
    1,922

    All right, I changed my function header to: void...

    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...
  16. Replies
    19
    Views
    1,922

    Need a little help with my project

    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...
Results 1 to 16 of 16