RE: [Dev-C++] compiling project fails
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Mat...@Ve...> - 2005-03-21 14:18:02
|
class CBruchzahlen
{
private:
long lZaehler;
long lNenner;
=20
public:
void sayHello(char * message);
=20
};
Note that there must be a semicolon after the class declaration, just like
for a struct. I inserted it in the right place in the code above. This
stupid idea was eliminated in Java, but sadly still remained in C++.
HTH!
Matt
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Markus
D=FCrauer LM
Sent: Saturday, March 19, 2005 7:49 AM
To: dev...@li...
Subject: [Dev-C++] compiling project fails
Need help!
When compiling the following dev-c++ project I get some errors:
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a;
a =3D cin.get();
}
class CBruchzahlen
{
private:
long lZaehler;
long lNenner;
=20
public:
void sayHello(char * message);
=20
}
void CBruchzahlen::sayHello(char * message)
{
cout << "Test"; =20
}
Errors:
-) new types may not be defined in a return type
-) two or more data types in declaration of `sayHello'
-) prototype for `CBruchzahlen CBruchzahlen::sayHello(char*)' does not match
any in class `CBruchzahlen'
Can anyone help?
Markus
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|