In my header file I have:

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

class Customer

	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()

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...


Votes + Comments
++rep for taking out unnecessary code.
7 Years
Discussion Span
Last Post by mitrmkar

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 by mitrmkar: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.