Another problem I'm having is making this a const method.
template <typename T>
Row<T> Array2D<T>::operator [] (const int index)
{
if(index > m_row)
throw Exception("Index exceeds...
Type: Posts; User: Jesse20ghet
Another problem I'm having is making this a const method.
template <typename T>
Row<T> Array2D<T>::operator [] (const int index)
{
if(index > m_row)
throw Exception("Index exceeds...
template <typename T>
class SingleArray
{
public:
SingleArray();
SingleArray(int length, int start_index = 0);
SingleArray(const SingleArray<T> ©);
~SingleArray();
SingleArray<T>&...
New setter
//Sets the length of the array to the passed in parameter
template <typename T>
void SingleArray<T>::setLength( int length )
{
if(length < m_length)
{
T * temp = new T[length];
Well the copy constructor calls the assignment operator so if the assignment opeartor works, then so does the copy constructor but you say the assignment operator doesn't work cuz of m_length? I'm...
This is for school.. but I'm not trying to get you guys to do my homework, I've worked pretty hard on this. This is my sixth term of C++ and I'm having trouble making this 2D array work.
It has a...
My deck has a private member variable with 52 values in it. I have another classes called card that has a rank, for Ace - King, and a suit for C/S/H/D and I'm trying to read this into the array but I...
Error 1 error LNK2019: unresolved external symbol "public: __thiscall Fraction::Fraction(int,int)" (??0Fraction@@QAE@HH@Z) referenced in function "public: class Fraction __thiscall...
When the code runs through the first time, it stores everything good into the first spot of the array but when it runs through the second time to get the input from the second line of the text file,...
I fixed most of what you said but I'm only familiar with myfile.eof so that's why I use it, I can't use strings as this is a school assignment and its driving me crazy. I still get the same error...
My problem is that it runs though strcpy(*Ingrediants, temp) the first time then run times out the second time though.
This code is meant to populate a dynamic array using all the words from a...
Thank you Mike, that sure did fix the problem.
I did, its included in stafx.h.
stdafx.h
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed...
I'm supposed to make a Queue Class to operate like a Queue does with enqueue, dequeue, print, etc. It is supposed to operate using a Doubly Linked List class, by calling on members of that class such...
I hope so. This is very hard for me. Feel like my head is going to explode =). I really do feel a huge sense of accomplishment whenever I successfully program something.
Yeah I've googled it a bunch but it just seems to stress me out when I pay for this college class to learn hwo to code, which I have learned a lot but then on the final he wants us to learn it...
I need to learn how to program a Mergesort and I want to actually LEARN IT, not copy and paste some code from google for an easy A. Does anyone know a good place to get a tutorial on this? The one on...
I redid it with comments to my understanding of what is going on. When I print this, it only prints one node and its always the last node I insert. I did plot it out on paper and it seems to me that...
When this function runs, it overwrites the first node in the list. I can't for the damn of me, figure out. Any help? Please give an explanation too, trying to learn, not turn in homework lol. K...
I removed them and still get the same error :/.
The error is "error C2143: syntax error : missing ';' before 'using'.
File: menu.h
Line: 21
Any help would be WONDERFUL.. I'm stressin.
How do I make the items in the combo box appear in alphabetical order?
I can't figure out how to fix this. I'm trying to move the pointer all the way to the end of the list but it won't even run. It builds fine, no compiler errors, just doesn't run. It freezes...
My program isn't a console though man. Its a form. I think i can use this though =). Thank you :P.
This is how I took care of the crash and burn of my program if they entered a letter where a numeric value would go but I don't know how to set one up for the NameTextBox.
What would the code be...
That was it! Thank you very much! :).