Search:

Type: Posts; User: Rizage

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,449

    It's funny, because when I switch to a small...

    It's funny, because when I switch to a small sized file with less words, it works - the error message doesn't pop up. It happens when I use the bigger file with something on the order of 60000 words...
  2. Replies
    3
    Views
    1,449

    Weird error when running program

    When I goto run the program, a windows error message pops up saying the following:

    The instruction at "0x00404fc9" referenced memory at "0xcccccccccb." The memory could not be "read".

    What...
  3. Reading strings from a file and storing into an array

    As the subject states, I'm trying to read a string of text from file and store it into an array. The text file is structured as follows:

    Albert
    Bobby
    Harry
    Terl
    ...

    I've tried much code,...
  4. Replies
    8
    Views
    3,768

    I don't follow... :(

    I don't follow... :(
  5. Replies
    8
    Views
    3,768

    I modified the code to look like this: ...

    I modified the code to look like this:




    char buf[CAPACITY]; //global array

    void Array :: put()
    {
    Array a;
  6. Replies
    8
    Views
    3,768

    Inserting words into an array

    I am trying to scan a list of words from a file. The list is as follows:

    hello
    this
    is
    a
    list

    Each subsequent word is on a new line. I'm trying to insert each word into an array, however,...
  7. Replies
    8
    Views
    1,485

    Thanks all, I got it working. :)

    Thanks all, I got it working. :)
  8. Replies
    8
    Views
    1,485

    Perhaps I am missing something, but Sleep()...

    Perhaps I am missing something, but Sleep() doesn't work either. Here's what I got, but the compiler still complains.



    bool Id::verify(int, int){

    if(id % 2 == 0 && pin % 2...
  9. Replies
    8
    Views
    1,485

    Still no. I added #include to my program...

    Still no. I added #include<dos.h> to my program and the compiler still didn't like the sleep command.
  10. Replies
    8
    Views
    1,485

    Must be a different command in Microsoft Visual...

    Must be a different command in Microsoft Visual C++. I tried it and the compiler couldn't recognize the sleep command.
  11. Replies
    8
    Views
    1,485

    creating a "information processing" feel

    How can I best explain this... I'm am trying to code a prinout that will display periods "..." in succession in order to create a "information processing" type feel. I tried using the command:...
  12. Replies
    7
    Views
    913

    One more thing... In the class declaration, I...

    One more thing...

    In the class declaration, I am having some trouble setting the information in the array. This works with the compiler, no complaint:

    //Class Declaration
    class TicTacToe { ...
  13. Replies
    7
    Views
    913

    Why do I keep getting this error?

    Alright, still working on my program here. But I keep running into this error that says:

    tictac.obj : error LNK2001: unresolved external symbol "public: __thiscall TicTacToe::TicTacToe(void)"...
  14. Replies
    6
    Views
    1,839

    Oh sorry, I didn't realize I left it out. ...

    Oh sorry, I didn't realize I left it out.

    This is the function that has the problems:

    TicTacToe::Status TicTacToe::gamestatus(void)
    {
    int a, c, r;

    // check for a win on diagonals
    if...
  15. Replies
    6
    Views
    1,839

    Ok, thanks for the confirmation on bool. ...

    Ok, thanks for the confirmation on bool.

    Another thing, I comliled some code that I wrote, and I get an error message saying: "subscript requires array or pointer type."

    What does this mean?
  16. Replies
    6
    Views
    1,839

    Boolean, what does it return?

    I've just started my C++ class and I'm starting my first program: TicTacToe. My professor posted some hint code to help us out, and one thing he used was a function bool validmove(). I'm trying to...
Results 1 to 16 of 16