Hi, here is the code:
#include <iostream.h>
class A
{
private:
int i;
public:
Type: Posts; User: SuperNewbie
Hi, here is the code:
#include <iostream.h>
class A
{
private:
int i;
public:
Hi
I just get a simple problem:
#include <iostream.h>
void main()
{
I think virtual function can be override no matther if it is "private" or not because private means only the other members in the same class can invoke it. so
class B: public A where
virtual void...
Sorry for confusing you guys, but here I make the conclusion according to my point of view:
Right, private and virtual they are totally different and nothing to do each other:
private ...
If I understand right, this is for common case because test2() is pure virtual function and test() is not static. So nothing about "private", right?
Sorry, seems I didn't make myself clear:
for example:
#include <iostream.h>
class A
{
private:
Hi
I found that don't affect the derived class.
if a virtual method is defined with "private" or "procted", the derived class still can implement it, right? So doesn't make it sense to put...
Thanks, a lot!!!
Hi, I have seen some function defintion like this:
virtual int test()const;
virtual int test()const = 0;
virtual int test()=0;
I am wondering what the difference among them and "const" only...
Hi
I don't know much about meta file, but if I want to save a specified window content into memory(not as a file) and paste it on somewhere, let's say Office doc.
Just like in the Office, we...
Hi,
how can I previous user to reize the window, let's say if I want the client window minimum size 100*50, user can't resize less than that?
I tried SetWindowPos(), but couldn't make it, and...
Thanks, it seems ok, but I met some problems:
case WM_EXITSIZEMOVE:
showData = TRUE;
return 0;
case WM_PAINT:
Thanks, but it always sends a message to WM_SIZE even when I am resizing it. :(
All I want is just not updating window until I stop resizing it. any other way else?
Hi
I want a message box pops up after resizing window, but not during resizing it.
I tried with
case WM_LBUTTONDOWN:
message = FALSE;
return 0;
Thanks, but the problem is that we never know what kinds of number user will input, so we can't define "%.2f" before knowing the number.
Hi
when I input a float(double) number with scanf() or predefined like
scanf("%f",&num);//input is 1.12
float num = 1.12;
in fact, num is not 1.12, it is something like...
thanks, I got it.
Hi
how can I use a number in a format, such as
n = 3;
m = 123;
and something like printf("%.nf", m);
---------
Hi
here is my code:
int main()
{
ifstream OpenFile("test.txt", ios::in);
Sorry for this post, I found the solution. Thanks anyway
Hi
Here I don't know if it's name is cursor or not, but I mean the input blinking line that waits for the user input.
My question is: in C and compile the code and the Dos window pops...
Hi
If there is while loop to ask user to input a integer at a time, how to prevent from input by and char or string or any decimal numbers? and how to quit the while loop if user only push the...
Thanks, I've read through this article before, but I don't have any idea about this, can you make any simple example in case of my question? Thanks
Hi
If I know bitmap pixels' value e.g(RGB), how can I attach them with the function CreateBitmap()
HBITMAP CreateBitmap(
int nWidth, // bitmap width, in pixels
int nHeight,...
Thanks for your great help :)