"Rolf Magnus" <> wrote in message news:d4qh0g$i8o$04$...
| ben wrote:
|
| > Hi guyz,
| > Is it possible to create objects of a class whose
| > definition as well as declaration is not available in advance?
|
| No.
[snip]
| > int main()
| > {
| >
| > //some code which will prompt user to enter class defn
| > //the defn. will be copied to abc.cpp
| > //say the user provided some class defn. like class student{ ...};
|
| That sounds to me as if you want to compile a class definition into
| executable code at program runtime. This is not possible with C++. If you
| want to do something like that, you need to use an interpreted language
| like e.g. python.
[snip]
It sounds that way to me too
I would just like to make the OP aware of
a nice interpreter, and not only for C++:
http://www.softintegration.com/
Cheers,
Chris Val