Only if there is a specific reason to do so. One use case is that there are a lot of friends of the main class but I want tighter control over users of the embedded class.
Hear hear Richard :thumbsup:
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
Greetings Keng Regards May I suggest Harbison & Steele as an addition to the preferred C tomes. It is unfortunate they did not write a C++ reference. Best Wishes
I'd think that maybe three or four models should be enough for Europe. (Also, 640 K should be enough for everyone.)
Religious freedom is the freedom to say that two plus two make five.
It's a question of taste: put the underscore at the other end (ostream_), or come up with a different name (ostrm). As in any question of taste, there isn't any right answer; my personal preference goes for trailing underscore. The rule about leading underscore is not my invention. See C++ Language standard section 17.6.4.3.2 - Global names (page 429).
Mircea
Sorry , I got sidetracked fixing the issue. I have been told , not just advised, NOT to post Qt questions. Since I am not welcomed to do so I , on my own, do not want to discuss Qt here. I think that is fair. Cheers
Amrit Agr wrote:
Please help me with the solution.
Exactly what help are you asking for? If you are expecting someone else to write the code for you, I am afraid you have come to the wrong place. And if you have no expertise in this area, why are you being interviewed for such a role? Incidentally, your question has nothing to do with C++/CLI, it is should have gone to C / C++ / MFC Discussion Boards[^].
Look at the error message (again):
mainwindow.cpp:(.text+0x270): undefined reference to `ORIGINAL_TERMINAL_MainWindow::ORIGINAL_TERMINAL_MainWindow(QWidget*)
In your mainwindow.cpp source you are calling the constructor of the ORIGINAL_TERMINAL_MainWindow class. But the linker did not find a definition of that constructor anywhere in the modules and libraries that are being used to build your application. So you need to find out exactly where it is defined and why the linker cannot find it.
Nelek wrote:
C'mon... do not ruin the tease... ;-P
That is the problem, I can never tell from text if one is teasing or not. The :-D smiley should have been enough of a clue but sometimes I can be pretty dense.:~
Within you lies the power for good - Use it!
I couldn't wait for the day a staple feature of any C/C++ compiler became something new and shiny. (I did find some optimization related issues inspecting compiler's output on a couple of embedded platforms).
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X The shortest horror story: On Error Resume Next
Maybe its a contest. Guess the point and win the prize. I do note that there are two possible inputs. So if '1' was put in for the first one, then I expect it works. If put in for the second then I suspect '2', ..., '9' would also fail.
It's like that was ripped directly from my mind
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Kent Sharkey wrote:
Is faster better?I guess for management it is
I thought for management was cheaper better
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.