Thanks for the response. If I opted to try and do this with serialization, is there a way to load a multiline ASCII document into an MFC app? Honestly, I've never really used ifstream previously,...
Type: Posts; User: hpy_gilmore8
Thanks for the response. If I opted to try and do this with serialization, is there a way to load a multiline ASCII document into an MFC app? Honestly, I've never really used ifstream previously,...
Hello,
I have a real general question, but can post specific code if it helps illustrate my question. When I create a document/view app with the app wizard in VC++ 6.0, it automatically sets up...
Hello, I should also mention that it looks like I am having the exact same problem as specifiifed in my previous post when I try to use the < and > overloaded comparison operators as well, and not...
Almost there! Got the assignment operator working right now.. for some reason, the == comparison operator (and I would imagine the < and > comparison operators would be the same) are having issues...
"As I see it you have three choices to place "blah" in data. FIrst, you can develop a non-default constructor"
When you say non-default constructor, are you saying the same thing as overloading...
I hate to beat a dead horse on this, but I know I am really close, I just can't quite get it. I've made some modifications to my code (took me about 2 hours to get this far) and I've changed the...
Thanks for the response.. I thought I was capturing all templated types with the following overloaded constructor that is currently in my code:
template <class Type>...
I have part of this figured out I think... I am having issues with instantiating an array of char and then comparing arrays of different sizes... see below:
#include <iostream>
using...
I'm getting closer on this.. I got the subscript operator overloaded, the along with the + and - operators. I also have the assignment operator and the ostream >> overloaded. I just need to...
Hello.. I need a little help getting pointed in the right direction on an exercise that I am working on. I am attempting to create a templated Array class. In the process of this, I need to...
I guess I misworded that... I plan on completing my BS in September regardless of anything else.. I guess when I said "Sitck with the BS" in my first choice, I meant obtain my BS and go no further...
Hey guys,
I am debating on something and wanted to get a non-biased 3rd party's opinion.
Here's the deal.. I am going to school for a BS in Computer Systems - C/C++ Programming Emphasis...
Here's the exact text from the exercise in the book that I am trying to figure out. This should (hopefully) explain better what I am trying to accomplish:
Implement a class genVector that...
"That code simply creates a nameless genvector object (which gets destroyed imeediately after function exit). It will not resize the genvector you intend to."
Would you be willing and/or able to...
"I take issue with your design. Why do you have ranges from an arbitrary negative number to an arbitrary positive number? The convention for arrays and vectors is to number from 0 to n-1.
For what...
Glad this place is back online, I missed it. :) I have a question. I am working on an exercise that requires that I create a genVector class that has a base class of Vector. It works as such, for...
Thank you for that advice, grib.. I eventually had to rename the function to d_copy so that the compiler would quit confusing it with the regular copy function ...
I tested the code from where it...
I am attempting to implement a function that will create a duplicate of a linked list and return a pointer to the list. For this copy function to truly be a copy function, the elements in the new...
I think that will help tremendously.. thanks Jlou! I'll have to look at that in more detail once I get home (I am posting from work right now).. It seemed like an impossible task if the seqSearch...
Thanks for that information... However, the parameters of the problem call for me to use the seqSearch templated function that I included in my original post. I'd like to understand how to do it...
Hello again...
I have a different list issue this time. My program generates 20 random numbers that range from 0 to 4 and outputs them to the screen. It then uses push_back to put each number in...
That's awesome! Thank you very much! I was a lot closer to the solution than I thought I was, so that's encouraging as well... thanks again!
Here's what I am attempting to do.. I attempting to make a function called count that will take in a const <list> and a n item as arguments. The function will scan through the list and count up how...
Awesome! That's exactly what I needed.. thank you very very much!
I have a (hopefully) easy question. Suppose I create a list and I want to be able to have the user enter entries that will be "pushed" into the list until they enter x on a line by itself (or enter...