Just made me look like a fool. Thanks. Now time to debug. Thanks for the helpful advice everyone. If you dont mind me asking , is there a good debugger for windows. Currently I have to use putty...
Type: Posts; User: gbman88
Just made me look like a fool. Thanks. Now time to debug. Thanks for the helpful advice everyone. If you dont mind me asking , is there a good debugger for windows. Currently I have to use putty...
The infile object is reading in an integer from the specified file and storing it in the integer named numRows. I looked at the c++ api (not sure what to call in c++) and the method .get() said it...
Wow you guys are catching my typos left and right. I have spent too many hours straight on this project! I have one last questions and I will leave you all alone if you have the patience. I have...
It was intended to dereference the value held in that position of the array but I did not realize the formatting I had put it in already does that. The concept of pointers and a double array is...
Ok so template functions must be declared and implemented in the same file. The other error message still persists however regarding primary expression before a ] token. In addition it is saying...
I have a header file so that should not cause the problem. I just did not put the code here
here it is:
#ifndef HW1_H
#define HW1_H
#include <vector>
Hey again! I am getting an error with which I am unfamiliar with. It says
hw1prob1.cpp: In function âint main()â:
hw1prob1.cpp:20: error: expected primary-expression before â]â token...
Thank my for the advice about including <vector> in the header class regarding the method signature. I changed that one simple line and the program compiled perfectly and executed flawlessly. C++...
hw1.h:8: error: variable or field âaddEven2OddLinesâ declared void
hw1.h:8: error: âvectorâ was not declared in this scope
hw1.h:8: error: expected primary-expression before âintâ
hw1.h:8: error:...
I am having a problem passing a vector as a reference parameter and can not figure out why the program is not compiling or working. It is meant to read in text from a file, manipulate the vector...
Wow thanks all! Its been a long day and I seemed to have forgotten I was dealing with a list and not a vector. Thanks for pointing out the obvious mistake.
Hi all I am having some problems with compiling my c++ code. I have had lots of experience in Java but c++ is new.
I am trying to read in a file that contains words, sort them, then print them...