Search:

Type: Posts; User: Rob4226

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,423

    Change char array in struct

    Hi, how can I make this work? Thanks



    struct record {
    int empID;
    char first[15];
    char last[12];
    };
  2. Replies
    0
    Views
    1,264

    Unbounded deciphering delay

    Hi,

    I constructed a Sardinas-Paterson graph for the code set {1, 00, 01, 010, 110, 0010}. I need to demonstrate that the set has a unbounded deciphering delay using a cycle from the graph. Can...
  3. Replies
    3
    Views
    1,581

    ahh, thank you. It was throwing me off that the...

    ahh, thank you. It was throwing me off that the first time the board printed fully but not after the first turn. Thanks again.
  4. Replies
    3
    Views
    1,581

    Printing 2d array problem

    Hi, This an odd problem, I am making a connect 5 game with a 15x15 array but after a player enters a row and column the board doesn't print [13][14] or [14][0-6] for some reason. Run this code and...
  5. Replies
    3
    Views
    3,739

    Convert a.out back to C code??

    Hi,

    I just finished an assignment and after a week and countless hours
    of working on it I had it working perfectly and commented perfectly. Before
    I was just about to submit it I wanted to ftp...
  6. Replies
    2
    Views
    1,236

    I want to quit the inner loop so it goes back to...

    I want to quit the inner loop so it goes back to the outer loop to decrease the row #. It does the same exact thing without the break statement, I thought it would fix it but I apparently it didn't.
  7. Replies
    2
    Views
    1,236

    Checking connect 5 diagonally help

    Hi,
    I am making a connect 5 program with a 15x15 array. I have have the check vertical and horizontal parts working but the diagonally is giving me a problem. Here is half the method, is suppose to...
  8. Replies
    3
    Views
    4,364

    Connect 5 Algorithm in C

    Hi,

    I'm making a connect 5 kind of game with a two-dimensional array. I have the board all set up but I'm trying to figure out the best way to check if there is 5 in a row up,down or diagonal. ...
  9. Replies
    16
    Views
    2,759

    The error seems to have gone a away but i need...

    The error seems to have gone a away but i need some help finding a way to print out the filenames in order from highest relavance to least relevant. I was using a map but I doesnt work because...
  10. Replies
    16
    Views
    2,759

    I don't understand what you guys mean...^^^

    I don't understand what you guys mean...^^^
  11. Replies
    16
    Views
    2,759

    Never mind I just deleted the line and it works...

    Never mind I just deleted the line and it works now but there is something odd that happens. When I put an even amount of text files in the program it produces a segmentation fault but when I put an...
  12. Replies
    16
    Views
    2,759

    This is what I have using i-1 but I still get...

    This is what I have using i-1 but I still get this error:
    expected primary-expression before ";" token line 18


    #include <fstream>
    #include <iostream>
    #include <string>
    #include <map>
    ...
  13. Replies
    16
    Views
    2,759

    isnt argc a constant?

    isnt argc a constant?
  14. Replies
    16
    Views
    2,759

    It was a segmenation fault so I tried putting the...

    It was a segmenation fault so I tried putting the code in red in but now I get error: expected primary-expression before ";" token line 18
  15. Replies
    16
    Views
    2,759

    even when I put i-1 there I get an error:...

    even when I put i-1 there I get an error: expected primary-expression before ";" token line 18
  16. Replies
    16
    Views
    2,759

    Simple search engine using maps

    Hi, for my last assignment I must make a program that takes in up to six files through the command line then print out the files in order of highest relavance depending on how many times the 2...
  17. Replies
    8
    Views
    1,678

    Got it. Thanks for your help

    Got it. Thanks for your help
  18. Replies
    8
    Views
    1,678

    Right now I have vector words;...

    Right now I have vector<vector<string> > words; but how do I define it with the first dimesion using argc-1 and not define the second dimesion so I can use .push_back() Thanks for your help.
  19. Replies
    8
    Views
    1,678

    the error i get is: segmentation fault (core...

    the error i get is: segmentation fault (core dumped)
  20. Replies
    8
    Views
    1,678

    I'm doing over a server but I checked and the...

    I'm doing over a server but I checked and the text file is in the same directory as the program. I saved the file as test.txt and to run it I do ./execProg test
  21. Replies
    8
    Views
    1,678

    Using fstream help.

    I need to read in up to six text files from command line agruments. This is the code I have but it exits at the if(!fin) exit(1); line and I don't know why.



    #include <fstream>
    #include...
  22. Replies
    15
    Views
    3,491

    Ok, I am getting very close. I get this...

    Ok, I am getting very close. I get this input/output I get but its not exactly right I can't see where the error is.

    input: 5 3 2 4 1 9 7 11 200
    output: 1 2 5 4 7 9 11 3 200



    #include...
  23. Replies
    15
    Views
    3,491

    Ok that makes sense. How do I update that...

    Ok that makes sense. How do I update that variable? Thanks
  24. Replies
    15
    Views
    3,491

    Alright I got an extension of time from my...

    Alright I got an extension of time from my professor and I think the problem is somewhere in the removeHeapRoot method. Anon what exactly do you mean the the loop guard update isnt doing what the...
  25. Replies
    15
    Views
    3,491

    Thanks for everyones help but I doubt I will ever...

    Thanks for everyones help but I doubt I will ever get this program to work right its already 2 days late and I can't waste any more time on it because im falling behind in my other classes. My...
Results 1 to 25 of 43
Page 1 of 2 1 2