Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
<unresolved overloaded function type> April 05, 2009 03:36PM |
Registered: 16 years ago Posts: 267 Rating: 0 |
Language: C++ (QT)#ifndef CONTACTLISTWRITER_H #define CONTACTLISTWRITER_H #include <QString> #include <QFile> #include <QTextStream> #include <QObject> #include "ContactList.h" /** * class ContactListWriter */ class ContactListWriter : public QObject { Q_OBJECT public: friend ContactListWriter& operator<< (ContactListWriter& writer, const ContactList& cl);
Language: C++ (QT)ContactListWriter& operator<< (ContactListWriter& writer, ContactList& cl) { writer.write(cl); return writer; }
Language: C++ (QT)ContactListWriter writer("somefile.txt"); ContactList wcl(); writer << wcl;
Anonymous User
Re: <unresolved overloaded function type> April 05, 2009 04:15PM |
Rating: 0 |
Language: C++ (QT)ContactListWriter& operator<< (ContactListWriter& writer, const ContactList& cl) { writer.write(cl); return writer; }
Re: <unresolved overloaded function type> April 06, 2009 08:25AM |
Registered: 16 years ago Posts: 267 Rating: 0 |
Re: <unresolved overloaded function type> April 06, 2009 10:24PM |
Registered: 18 years ago Posts: 1,424 Rating: 0 |
#ifndef CONTACTLISTWRITER_H #define CONTACTLISTWRITER_H #include <QString> #include <QFile> #include <QTextStream> #include <QObject> #include "ContactList.h" /** * class ContactListWriter */ // overloading prototype declaration ContactListWriter& operator<< (ContactListWriter& writer, const ContactList& cl); // <<<<<<< THIS IS THE DECLARATION class ContactListWriter : public QObject { Q_OBJECT public: friend ContactListWriter& operator<< (ContactListWriter& writer, const ContactList& cl);
Re: <unresolved overloaded function type> April 06, 2009 10:26PM |
Registered: 18 years ago Posts: 1,424 Rating: 0 |
Anonymous User
Re: <unresolved overloaded function type> April 08, 2009 03:13PM |
Rating: 0 |
Re: <unresolved overloaded function type> April 08, 2009 03:54PM |
Registered: 16 years ago Posts: 267 Rating: 0 |
Re: <unresolved overloaded function type> April 09, 2009 02:26PM |
Registered: 17 years ago Posts: 915 Rating: 0 |
Re: <unresolved overloaded function type> April 11, 2009 09:07PM |
Registered: 17 years ago Posts: 915 Rating: 0 |
Re: <unresolved overloaded function type> April 28, 2009 11:06PM |
Registered: 16 years ago Posts: 267 Rating: 0 |
Language: C++ (QT)ContactListWriter& operator<< (ContactListWriter& writer, const ContactList& cl)
Language: C++ (QT)bool ContactListWriter::write (const ContactList& contactList )
Re: <unresolved overloaded function type> May 01, 2009 09:29PM |
Registered: 15 years ago Posts: 63 Rating: 0 |
Re: <unresolved overloaded function type> May 02, 2009 08:30AM |
Registered: 18 years ago Posts: 1,424 Rating: 0 |
Language: C++ (QT)ContactListReader &operator>>(ContactListReader &reader, const ContactList *list);
Re: <unresolved overloaded function type> May 07, 2009 04:27PM |
Registered: 16 years ago Posts: 35 Rating: 0 |
Re: COS311-4 and COS321-6 May 07, 2009 04:29PM |
Registered: 16 years ago Posts: 35 Rating: 0 |
Anonymous User
Re: <unresolved overloaded function type> May 07, 2009 04:34PM |
Rating: 0 |
Re: <unresolved overloaded function type> May 08, 2009 01:05PM |
Registered: 16 years ago Posts: 35 Rating: 0 |
Re: <unresolved overloaded function type> May 08, 2009 01:06PM |
Registered: 16 years ago Posts: 35 Rating: 0 |
Re: <unresolved overloaded function type> May 08, 2009 03:01PM |
Registered: 15 years ago Posts: 63 Rating: 0 |
Re: <unresolved overloaded function type> May 11, 2009 10:00AM |
Registered: 16 years ago Posts: 267 Rating: 0 |
Anonymous User
Re: <unresolved overloaded function type> May 14, 2009 10:37AM |
Rating: 0 |
Anonymous User
Re: <unresolved overloaded function type> May 14, 2009 11:05AM |
Rating: 0 |
Re: <unresolved overloaded function type> May 14, 2009 11:15AM |
Registered: 18 years ago Posts: 1,424 Rating: 0 |
Anonymous User
Re: <unresolved overloaded function type> May 14, 2009 11:47AM |
Rating: 0 |
Re: <unresolved overloaded function type> May 14, 2009 03:57PM |
Registered: 16 years ago Posts: 62 Rating: 0 |
Re: COS311-4 and COS321-6 September 07, 2011 09:27PM |
Registered: 13 years ago Posts: 41 Rating: 0 |