In my header file I have:

#include <iostream>
#include <string>
using namespace std;

class Customer
{
public: 

	//Output
	void displayLabel(ostream &out);

And in my main:

#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include "Customer.h"

using namespace std;

Customer cust;
string blank = " ";
string line;
int start, end, count;
string titl, firstNam, middleNam, lastNam, add, cit, stat, zip, phone;

int main()
{
	cust.displayLabel();

NOTE: I took out a lot of unnecessary code to get straight to the point.

I know that my parameters do not match up, but that's my question: what do I send to the function parameter wise for ostream &out? I'm kind of lost in this part...

Thanks!

Comments
++rep for taking out unnecessary code.

If you want the data displayed on the console sceen then pass cout like this: cust.displayLabel(cout);

I get an error when I put cout as a parameter.
Something like this:

1>CustomerClient.obj : error LNK2019: unresolved external symbol "public: __thiscall Customer::Customer(void)" (??0Customer@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'cust''(void)" (??__Ecust@@YAXXZ)
1>C:\Users\Joseph\Documents\Visual Studio 2008\Projects\Homework 7\Debug\Homework 7.exe : fatal error LNK1120: 1 unresolved externals

I get an error when I put cout as a parameter.

Using cout as a parameter is OK - that's not the error.

Looking at the error message, it seems that you don't have written code for default constructor of class Customer .

Edited 6 Years Ago by mitrmkar: n/a

This article has been dead for over six months. Start a new discussion instead.