Search:

Type: Posts; User: SuperNewbie

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    845

    strange problem about delete

    Hi, here is the code:



    #include <iostream.h>
    class A
    {
    private:
    int i;
    public:
  2. Replies
    2
    Views
    855

    problem with deleting pointers??

    Hi

    I just get a simple problem:



    #include <iostream.h>

    void main()
    {
  3. Replies
    14
    Views
    1,294

    I think virtual function can be override no...

    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...
  4. Replies
    14
    Views
    1,294

    Sorry for confusing you guys, but here I make the...

    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 ...
  5. Replies
    14
    Views
    1,294

    If I understand right, this is for common case...

    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?
  6. Replies
    14
    Views
    1,294

    Sorry, seems I didn't make myself clear: for...

    Sorry, seems I didn't make myself clear:

    for example:



    #include <iostream.h>
    class A
    {
    private:
  7. Replies
    14
    Views
    1,294

    another question about virtual functions

    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...
  8. Replies
    2
    Views
    1,881

    Thanks, a lot!!!

    Thanks, a lot!!!
  9. Replies
    2
    Views
    1,881

    simple question

    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...
  10. Replies
    0
    Views
    1,060

    About meta file

    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...
  11. Replies
    1
    Views
    1,097

    prevent sizing the window

    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...
  12. Replies
    4
    Views
    1,280

    Thanks, it seems ok, but I met some problems: ...

    Thanks, it seems ok, but I met some problems:



    case WM_EXITSIZEMOVE:
    showData = TRUE;
    return 0;

    case WM_PAINT:
  13. Replies
    4
    Views
    1,280

    Thanks, but it always sends a message to WM_SIZE...

    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?
  14. Replies
    4
    Views
    1,280

    mouse event when resizing window

    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;
  15. Replies
    3
    Views
    2,603

    Thanks, but the problem is that we never know...

    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.
  16. Replies
    3
    Views
    2,603

    restrict float(double) 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...
  17. Replies
    2
    Views
    925

    thanks, I got it.

    thanks, I got it.
  18. Replies
    2
    Views
    925

    use a variable in format

    Hi

    how can I use a number in a format, such as

    n = 3;
    m = 123;

    and something like printf("%.nf", m);

    ---------
  19. Replies
    9
    Views
    1,226

    read a character from a *.txt

    Hi

    here is my code:



    int main()
    {
    ifstream OpenFile("test.txt", ios::in);
  20. Replies
    2
    Views
    1,224

    Sorry for this post, I found the solution. Thanks...

    Sorry for this post, I found the solution. Thanks anyway
  21. Replies
    2
    Views
    1,224

    set the cursor position problem

    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...
  22. Replies
    1
    Views
    5,932

    prevent char input from int

    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...
  23. Replies
    2
    Views
    1,716

    Thanks, I've read through this article before,...

    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
  24. Replies
    2
    Views
    1,716

    bitmap pixels???????????

    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,...
  25. Replies
    5
    Views
    3,621

    Thanks for your great help :)

    Thanks for your great help :)
Results 1 to 25 of 173
Page 1 of 7 1 2 3 4