I figured it out. I was forgetting to use include <fstream>. Thanks for all of the help and I really appreciate the help.
Type: Posts; User: olgirl4life
I figured it out. I was forgetting to use include <fstream>. Thanks for all of the help and I really appreciate the help.
Last question, I am currently outputting the list to the screen but I need it to print to a file called 'contact.dat'. How can I go about that in the Hybrid class print function?
Thanks
It works vart. Thank you.
I made the changes and some errors occured so I changed the things in bold. It executes without errors but my output is still displaying only the first element as before with blank lines for the...
So I should pass contact to the insert function because contact is an object of the me struct. So item would then be an object of me.
Another problem but it's in the Print function of the Hybrid class. I don't get any errors but the output is not what I expected. I need all of the elements of the struct to display as output but the...
That solved that problem. Thanks
I used typedef string as ComponentType for an easier string variable pass to the Hybrid class.
typedef me* mePtr;
struct me
{
ComponentType lName;
ComponentType fName;
ComponentType mName;
ComponentType title;
ComponentType companyName;
ComponentType streetAddress;...
ComponentType is a string. This is how I declared it:
// This is the file that declares the itemType data type
#ifndef COMPONENTTYPE_H
#define COMPONENTTYPE_H
#include <iostream>
These are the errors:
1. Hybrid List Assignment\HybridList.cpp(130): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'ComponentType' (or there is no...
I am in desperate need to figuring out why my program has 11 errors on line 191 and 1 error on line 130. If someone could please assist me, I would greatly appreciate your help.
...
I tried the while statements as
while (index < length && item != data[index])
neither statements works.
Could someone please assist me with my program errors.
I am writing a program using the List class that implements a To-Do list.
The items in the list are strings.
The user should be prompted...
//******************************************************************
// Activity program
// This program outputs the phone number for a given name,
//if the name is found in a file...
Here's the SortedList.cpp file (Implementation File)
//******************************************************************
// IMPLEMENTATION FILE (SortedList.cpp)
// This file implements the...
Here's the SortedList.h file
//******************************************************************
// SPECIFICATION FILE (SortedList.h)
// This file gives the specification of a SortedList...
#include <iostream>
#include <string>
#include <fstream>
#include "SortedList.h"
using namespace std;
const MAX_LENGTH = 100;
struct me
Project instructions:
You’re working for a company that wants to take client contact information as it is entered by a salesperson from a stack of business cards that he or she has collected, and...
Okay. I clicked search but did not find the post. So I am pasting my code and the errors for beginners.
I am trying to find previous post concerning the same problem.
You’re working for a company that wants to take client contact information as it is entered by a salesperson from a stack of business cards that he or she has collected, and output the information to...