CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: abbassi

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    892

    Can't understand the question

    Hello guys,

    I can't understand what does the question want, to write appropriate code for it. Would you please read it to find out what it exactly wants?

    Modify the Link class from 17.10.1 to...
  2. Replies
    10
    Views
    1,690

    Re: My difficulty in this section

    Thank you all very much. :)
  3. Replies
    10
    Views
    1,690

    Re: My difficulty in this section

    Thank you for your explanations. But I asked about not assigning the returned value of a function.
    For example if we have:

    int f() { return 6; }

    and in main() function we use it:

    int...
  4. Replies
    10
    Views
    1,690

    Re: My difficulty in this section

    Thank you.

    Is it this way just for functions returning a pointer or also for other returning types please?
  5. Replies
    10
    Views
    1,690

    Re: My difficulty in this section

    Would you please have a look again at that book?
    In page 617 he has written this:


    Link * p = find(norse_gods,"Zeus");
    if(p) {
    erase(p);
    insert(greek_gods,p);
    }
  6. Replies
    10
    Views
    1,690

    Re: My difficulty in this section

    You are right.
    At the third read, finally I found it has no mistakes. Thank you very much. :)
    Sorry if I took your time.
  7. Replies
    10
    Views
    1,690

    My difficulty in this section

    Hi,

    I read some part a C++ book explaining lists. But I think the author has mistaken in that. If possible, please read section 17.9.3. An example: Lists, of this link...
  8. Replies
    8
    Views
    2,061

    Re: Unicode characters in VC++

    Yes. What you said were good ideas. If I still insist on putting that square root sign on that button I may be have to use one of those ideas.

    Thank you very much.
  9. Replies
    8
    Views
    2,061

    Re: Unicode characters in VC++

    I tested both of L"√" and L'√'. Both gave me two errors. They are in below.

    Error 8 error C2664: 'Graph_lib::Button::Button(Point,int,int,const std::string &,Graph_lib::Callback)' : cannot...
  10. Replies
    8
    Views
    2,061

    Re: Unicode characters in VC++

    Excuse me, what does that 'L' mean? And for example for using that method should I use L"<√>", which leads to errors?
  11. Replies
    8
    Views
    2,061

    Re: Unicode characters in VC++

    Thanks for the reply. I try to read it well.
  12. Replies
    8
    Views
    2,061

    Unicode characters in VC++

    Hello,

    I'm trying to have a button marked by the sqrt sign, '√'.
    I wrote below code and typed that sign by holding down "alt" and typing 251 using numpad. But result is the question mark instead...
  13. Replies
    4
    Views
    1,222

    Re: Fl::add_idle function

    OK. No problem. Thanks for the reply.
  14. Re: Problem With Sleep() When drawing ananalog clock

    @Arjay:
    > "Getting the system time and pausing (using clock() and sleep() or something else) is the trivial part."
    All I need is that. I complete the rest of the code. Please offer simplest code...
  15. Replies
    4
    Views
    1,222

    Re: Fl::add_idle function

    Could you please give simplest code which uses this Fl::dd_idle?
  16. Re: Problem With Sleep() When drawing ananalog clock

    OK guys. Thank you very much. But I still have one question:
    Is there a possible way just using the materials that are taught in the book (until here, chapter 16) and also using sleep()/Sleep() and...
  17. Re: Problem With Sleep() When drawing ananalog clock

    Thank you very much for your code.
    But it's really beyond the scope the lessons I have been taught!
    Please look, I'm at chapter 16 of that book. The pointers are in next chapter. And those...
  18. Replies
    4
    Views
    1,222

    Fl::add_idle function

    Hello all,

    For some reason I need to use of Fl::add_idle function. This site introduces it but doesn't offer an example of how to use it....
  19. Re: Problem With Sleep() When drawing ananalog clock

    I can't understand that msdn examples :(
  20. Re: Problem With Sleep() When drawing ananalog clock

    I also made a loop into void clock_hands() but same result. Sleep() takes to comma and is not good for my situation.
    I don't know why I can't easily understand the msdn touts but I try to figure out...
  21. Re: Problem With Sleep() When drawing ananalog clock

    The post #11 was for OReubens.

    @GCDEF:
    About the loop you are right. But as I said in my first post of this thread, "It is in its primary stages and has not been completed yet." I would want to...
  22. Re: Problem With Sleep() When drawing ananalog clock

    @OReubens :

    Thank you for your explanations.

    What I got from your reply were:
    1- Solving the exercise by the materials it has said is not possible. And it's the author's mistake that has had...
  23. Re: Problem With Sleep() When drawing ananalog clock

    May you read the exercise once again please? The exercise is of the book Programming Principle and practice using C++, by Stroustrup.
    If you were me, how would you solve the exercise so?
  24. Re: Problem With Sleep() When drawing analog clock

    I don't know what is the case with the link but it works properly for me.
    Anyway, the exercise no.6 says just what I wrote at first post of here: Make an "analog clock" that is, a clock ....
  25. Re: Problem With Sleep() When drawing ananalog clock

    Thanks for the reply.
    What do you mean by main GUI thread please? The main() function?
    The exercise itself recommend to use of clock() and sleep(), but if you know any other good tool please tell...
Results 1 to 25 of 72
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured