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,...
Type: Posts; User: William Putnam
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,...
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...
That was from oogabooga's earlier suggestions. My first post indicates what I was getting before I started.
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:...
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....
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.)
It wouldn't take the -std argument. "Unrecognized."
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’...
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.
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)...
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...
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...
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...
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...
I've discovered my problem. I needed to define 3 different HDCs and PAINTSTRUCTs.
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...
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!
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...
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...
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...
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...
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:
void game::collect(const char* filename){
int size = 30;
string receive;
datafile.open(filename, ios::in);
if(!datafile)
fatal("Error opening stream!");
...
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...
Mad props upon anduril462 for his help and explanation.