Search:

Type: Posts; User: William Putnam

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    4,116

    I've narrowed down my issues to a manageable...

    I've narrowed down my issues to a manageable point now. I've learned a huge lesson from all of this: always check your copypastas between files. Thanks to everyone who helped out.

    P.S. laserlight,...
  2. Replies
    27
    Views
    4,116

    Thanks, Jim, for pointing that out. I've fixed...

    Thanks, Jim, for pointing that out. I've fixed the code as per your suggestions, and added inodeNum to fileData (forgot to do this earlier). I am now down to one error:


    Williams-iMac:wputn1_P3...
  3. Replies
    27
    Views
    4,116

    That was from oogabooga's earlier suggestions. My...

    That was from oogabooga's earlier suggestions. My first post indicates what I was getting before I started.
  4. Replies
    27
    Views
    4,116

    Williams-iMac:wputn1_P3 Desktop$ c++ -o trippy...

    Williams-iMac:wputn1_P3 Desktop$ c++ -o trippy -Wall -std=c++11 *.cpp
    dirData.cpp:9:13: error: expected unqualified-id
    fileData.statNode = s.getInode();
    ^
    dirData.cpp:10:13:...
  5. Replies
    27
    Views
    4,116

    I'm usually not too cool with posting my code...

    I'm usually not too cool with posting my code online because I fear that someone could take the whole thing and try to pass it as their own. But at this point, I'm going to have to take a risk on it....
  6. Replies
    27
    Views
    4,116

    Nope. Not working. (At this point I should...

    Nope. Not working.

    (At this point I should mention I'm running OSX ML 10.8.5 and Xcode v.5.0 with command line tools extension.)
  7. Replies
    27
    Views
    4,116

    It wouldn't take the -std argument....

    It wouldn't take the -std argument. "Unrecognized."
  8. Replies
    27
    Views
    4,116

    oogabooga, your code did not compile on my...

    oogabooga, your code did not compile on my computer, either for c++ or g++. g++ gave me these errors in the terminal:


    d.cpp: In function ‘int main()’:
    d.cpp:25: error: scalar object ‘v’...
  9. Replies
    27
    Views
    4,116

    No, I'm defining this as an inline in the header....

    No, I'm defining this as an inline in the header.

    I tried adjusting it again, and as I feared, I started getting unrelated error messages from the constructor.
  10. Replies
    27
    Views
    4,116

    I gave it a shot, but it still gives one error,...

    I gave it a shot, but it still gives one error, although shorter:


    ./fileData.hpp:20:27: error: extra qualification on member 'operator<'
    bool inline fileData::operator<(const fileData& f)...
  11. Replies
    27
    Views
    4,116

    bool operator< issues

    I'm currently working on a homework assignment where I have a vector of custom class objects. I want to sort these vector entries in alphabetical order. I've tried using my instructor's method of...
Results 1 to 11 of 11