Search:

Type: Posts; User: William Putnam

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    4,110

    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,110

    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,110

    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,110

    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,110

    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,110

    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,110

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

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

    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,110

    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,110

    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,110

    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...
  12. Replies
    2
    Views
    1,330

    Checking bits in a bitwise operation

    I'm working on a homework assignment, and this specific part of it is confusing me:

    Then use masking and shifting operations to decode the number. For each of the four possible...
  13. novacain, would I then declare the button like...

    novacain, would I then declare the button like this:



    HWND btn = CreateWindowExW(NULL,
    L"BUTTON",
    L"SET MANUAL",
    WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON,
    25,//x...
  14. Dynamic button controls [WIN32 API/c++/VS 2010]

    I'm developing an application that finds devices on a network and creates a window in the main window for each device and their processor cores. I want the core buttons to toggle the number of cores...
  15. I've discovered my problem. I needed to define 3...

    I've discovered my problem. I needed to define 3 different HDCs and PAINTSTRUCTs.
  16. Child Window Text/Buttons Missing [WIN32 API/C++/VS 2010]

    I have a parent window and two children windows. I want the child windows to display text, buttons, text fields, and a checkbox. I remembered to specify the WS_EX_CONTROLPARENT argument in the main...
  17. Replies
    2
    Views
    2,584

    thank you for pointing that out. i didn't notice...

    thank you for pointing that out. i didn't notice i defined it as an IDR everywhere but in the .rc file. it works now. thank you!
  18. Replies
    2
    Views
    2,584

    Win32 API Icon Loading Error (VS2010)

    I am trying to load an icon I created for my program. Relevant code is below:



    //resource.h
    #define IDR_MYMENU 103
    #define IDR_MYICON 201
    #define...
  19. In response to your question, my objective is to...

    In response to your question, my objective is to have the user enter a variable name and get a list of syntactical labels with which it's used. For example, doctor can be considered a noun and a...
  20. essentially, i have a trie header file, a 10mb...

    essentially, i have a trie header file, a 10mb text file of compiled words and their syntactic labels (formatted like above), and a mission to make reading in the data, storing it, and getting to it...
  21. Creating a class variable with a string

    Let's say I have defined a class in a header file; just the class, no templates involved. I have a program where I'm reading in data in string format. Each string consists of a word, a delimiter, and...
  22. Replies
    5
    Views
    1,745

    laserlight, i am both amazed at your expertise...

    laserlight, i am both amazed at your expertise and angered at my inability to forget the difference between single quotes and double quotes.
    the problem is fixed now, thank you! :biggrin:
  23. Replies
    5
    Views
    1,745

    void game::collect(const char* filename){ ...

    void game::collect(const char* filename){

    int size = 30;
    string receive;

    datafile.open(filename, ios::in);
    if(!datafile)
    fatal("Error opening stream!");

    ...
  24. Replies
    5
    Views
    1,745

    I just can't get() it.

    I've got an overdue assignment for a data structures class, and I am having the largest problem with reading in data from a text file. The program is essentially recreating Akinator with a binary...
  25. Replies
    3
    Views
    775

    Mad props upon anduril462 for his help and...

    Mad props upon anduril462 for his help and explanation.
Results 1 to 25 of 32
Page 1 of 2 1 2