|
|
Thanks!!
|
|
|
|
|
Hi to all
Please look at the following code:
class base
{
public:
void show_base()
{
cout<<"executing base"<<endl;
}
};
class derived:public base
{
public:
void show_derived()
{
show_base();
cout<<"code is added at derived class":
}
};
void main()
{
derived d;
d.show_derived();
}
=============================
Required output:
executing base
code is added at derived class
=============================
In the above my problem is "I want to access a base class member function.i.e when i called show_derived(), it needs first calls show_base() and then show_derived() remaining code should execute. Is it possible to call like this. Or please show me any other possibilities
Thanks in advance......................To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison
|
|
|
|
|
sampath-padamatinti wrote: cout<<"code is added at derived class":
Excluding a minor syntax error in the above line (colon instead of semicolon at the end of the statement), your code,as it stands, produces exactly the output you require.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello,
The code is giving required output. What is your question? Is that something which you need different an output?
|
|
|
|
|
Thanks for reply,
sorry, I am not check my code properly. It s giving me correct answer.To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison
|
|
|
|
|
Hi
Is there a way to migrate a C++ application to web-based application? All GUI and user interfaces should use web and others use C++ code. Like a web-based vector editor.
Thanks,
|
|
|
|
|
If you mean "with an automatic tool" I'm diffident: A standalone application and a web-based application have a completely different rendering and communication logic.
If you mean "is it possible to make in a browser an applet that renders a remote desktop executing an application", well ... I doubt about performances, and that's not a web app., it's just masked as it!
You can -in some particular cases- for "form based apps" migrate them into "web based" since form-based have a communication mimic that's similar to the web one. But that's a very particular case.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
You might want to have a look at "wt" (pronounced 'witty') http://www.webtoolkit.eu/wt]
You still have to rebuild your UI with the wt classes, but its C++ style.
|
|
|
|
|
Thank you for your reply.
I have a question for you. Does "WT" compile the code into "exe"?
Thanksmodified on Friday, February 12, 2010 6:02 PM
|
|
|
|
|
AFAIK it is possible to build an executable for UNIX or Windows with build-in http server or you can build a mod for apache (uses FastCGI). Please see http://www.webtoolkit.eu/wt#/features[^]
|
|
|
|
|
|
Could you introduce a little of the way?
Thanks
|
|
|
|
|
Wt is a C++ library, so you link it in your executable as a DLL. It consists of a convenient set of building blocks (text, buttons, trees, charts, graphics, ...) that you can combine to create a web UI in an object oriented way. You use the building blocks to build a tree which represents your interface (e.g. a Dialog containing a text and two buttons). It works much like traditional C++ GUI toolkits, such as Qt. But instead of rendering on a desktop screen, Wt uses the browser to render. Event handling is transparent: if a user clicks a button in the browser, a function is automatically invoked at the server. The programmer specifies which functions need to be invoked by means of a signal/slot mechanism. From those functions, you can easily interact with your existing application.
If you run a Wt application, it will behave like a web server and listen on a TCP port. When a user surfs to a Wt application, Wt investigates the browser capabilities and renders your widget tree in the most optimal way to your browser (JavaScript, AJAX, browser-specific dialects, ...).
But why don't you take a look at Wt's hello world example?
http://www.webtoolkit.eu/wt/examples/
Or an interactive demonstration of the available widgets:
http://www.webtoolkit.eu/widgets/basics/wpanel
|
|
|
|
|
the standard process is this:
1. form a committee to investigate the migration: is it possible, is it worth the trouble?
2. assign two developers to come up with a prototype. when they deliver an ugly app that does nothing...
3. hire a consultant to tell you that it will cost $X,000,000 and will take 2 years.
4. fire all your developers.
5. hire an outsourcing company who claims they can do it in six months.
6. pout, when they deliver something ugly and broken.
|
|
|
|
|
|
Is it possible to run a macro as a post build step? I've had a good look round but can't see any way to do it...
|
|
|
|
|
Can you write the macro as a .vbs file? If so you should be able to launch a cmd process to run that. Or are you referring to an IDE macro? Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
|
What is it that the macro is supposed to do or accomplish? Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
I was going to save some project specific data at the end of every successful build but I already figured a different way round it thanks.
|
|
|
|
|
Hi everybody,
I am student of Phd and preparing doctorate thesis.
I have this equation y=x-2.438e-4*sqrt((14.17+3163.8*x^(0.655))*Z). how can I solve this equation for three Z values (for example 0.015, 0.025, 0.035).
Thank you.
|
|
|
|
|
What has it to do with this forum?
BTW, what do you want to solve?
I see just a function, namely y(x) there.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Riiiight. And I suppose basic algebra is a post-doctoral topic.
L u n a t i c F r i n g e
|
|
|
|
|
LunaticFringe wrote: And I suppose basic algebra is a post-doctoral topic.
Doctorate of Basket Weaving. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|