Article View: nl.comp.programmeren
Article #513problemen in Visual C++
From: Jo Vermeulen
Date: Mon, 19 May 2003 13:56
Date: Mon, 19 May 2003 13:56
64 lines
2527 bytes
2527 bytes
Hoi,
Ben een abstracte klasse aan het compileren met Visual C++ maar krijg een
heel rare error. De fout zit in de constructor volgens VC++.
Dit is de error:
interface.h(26) : error C2234: '<Unknown>' : arrays of references are
illegal
Onder g++ compileert het wel.
Iemand een idee wat ik fout doe?
*** Interface.h ***
#ifndef INTERFACE_H
#define INTERFACE_H
#include <string>
#include "Dna.h"
using namespace std;
class Interface
{
// Attributes
protected:
Dna *m_pDna;
string m_cFile;
string m_jFile;
string m_vFile;
Dictionary *m_pC;
Dictionary *m_pJ;
Dictionary *m_pV;
bool m_stdin;
string m_inputFile;
string m_input;
// Operations
public:
// constructor
Interface( string cFile, string jFile, string vFile,
bool stdin, string inputFile ) : m_cFile( cFile ),
m_jFile( jFile ), m_vFile( vFile ), m_stdin( stdin ),
m_inputFile( inputFile ) {}
// reads the input
virtual void GetInput() = 0;
// initializes the attributes
void Initialize();
// prints the input string
virtual void PrintInput() = 0;
// prints the three frames, and marks the one we selected
virtual void PrintFrames() = 0;
// marks the C, J and V part
virtual void Mark() = 0;
// prints the summary
virtual void PrintSummary() = 0;
};
#endif
******
Mvg,
Jo Vermeulen
Technical Details
Message-ID:
<baanpv$2hff$1@nl-news.euro.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!news2.euro.net!nl-news.euro.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107324,56acb9c9578c3917,start X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,56acb9c9578c3917,start X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-05-19 06:56:16 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!news2.euro.net!nl-news.euro.net!not-for-mail From: "Jo Vermeulen" <jo.vermeulen@student.luc.ac.be> Newsgroups: nl.comp.programmeren,be.comp.programming Subject: problemen in Visual C++ Date: Mon, 19 May 2003 15:56:23 +0200 Organization: EuroNet Internet Lines: 66 Message-ID: <baanpv$2hff$1@nl-news.euro.net> NNTP-Posting-Host: 0118646.dhcp.luc.ac.be X-Trace: nl-news.euro.net 1053352575 83439 193.190.14.110 (19 May 2003 13:56:15 GMT) X-Complaints-To: usenet@nl-news.euro.net NNTP-Posting-Date: Mon, 19 May 2003 13:56:15 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165