string class and vc++.wank :)
- From: "John Swan" <j.a.swan@xxxxxxxxxxxx>
- Date: Tue, 06 Dec 2005 16:00:48 GMT
I dont think I have ever been as dissappointed, frustrated or bewildered in
all of my life.
The problem, well take this class definition:
#ifndef __DATA
#define __DATA
#pragma once
#include <iostream>
#include <string>
class Data
{
public:
Data(void);
~Data(void);
private:
int XAxis, YAxis, StartFrom;
};
#endif
This will compile quite happily. However, if I were to add a string called
s1 it wont compile.
#ifndef __DATA
#define __DATA
#pragma once
#include <iostream>
#include <string>
class Data
{
public:
Data(void);
~Data(void);
private:
int XAxis, YAxis, StartFrom;
string s1;
};
#endif
When I try to compile the above code I get: Error C2146, c2501 twice.
Can anyone please tell me what I am doing wrong please?????
I really am glad this is a small project. I am going to develop using QT.
Multi platform and a dream in comparison. Apparently.
Opions please.
Cheers
John
--
www.integrated-dev-sol.co.uk
.
- Follow-Ups:
- Re: string class and vc++.wank :)
- From: David Wilkinson
- Re: string class and vc++.wank :)
- Prev by Date: Re: Including C# file in a VC++.NET project
- Next by Date: Re: string class and vc++.wank :)
- Previous by thread: I think this is a bug...
- Next by thread: Re: string class and vc++.wank :)
- Index(es):
Relevant Pages
|