|
From: Vivek J. <viv...@ya...> - 2004-09-30 11:41:29
|
This is just a sample code that compiles using the
Microsoft C++ compiler but seems to be giving problems
when compiled in Dev-C++. The problem is that I am
trying to port a library to Dev-C++ but this kind of
functionality has been used in the library and I am
getting all sorts or wierd errors because of this.
What am I missing out?
Regards,
Vivek Jishtu
------------------------------------------------
#include <iostream>
class First{
public:
void SomeWork()
{
std::cout <<"Inside SomeWork";
}
};
class Second
{
public:
void myfun(First &obj)
{
obj.SomeWork();
}
};
int main()
{
Second Obj2;
Obj2.myfun(First());
return 0;
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|