Search:

Type: Posts; User: andyhunter

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: macros

    by andyhunter
    Replies
    23
    Views
    2,319

    I believe you can only create generic types like...

    I believe you can only create generic types like that in C++ using templates. For you problem I would just have the programmer pass the macro three variables like so:


    #include <stdio.h>...
  2. Thread: macros

    by andyhunter
    Replies
    23
    Views
    2,319

    yep, just what exactly are you hoping to use,...

    yep, just what exactly are you hoping to use, either t or temp. It has to be one or the other. According to you macro declaration it should be t so:


    #define swap(t, a, b) (t =a; a=b; b=t;)
  3. Thread: macros

    by andyhunter
    Replies
    23
    Views
    2,319

    Well, a swap function typically involves 3...

    Well, a swap function typically involves 3 variables; the two you are swapping and one used as a temp store. To perform a swap in code you would(assuming you had three variables named x, y, z and you...
  4. Thread: macros

    by andyhunter
    Replies
    23
    Views
    2,319

    Well, what do you have? Do you know how to make a...

    Well, what do you have? Do you know how to make a macro? If so try something and post and I am sure more people will help you from there.
  5. Thread: macros

    by andyhunter
    Replies
    23
    Views
    2,319

    Sounds like a homework assignment. Well, why...

    Sounds like a homework assignment. Well, why don't you show us what you have so far?
  6. Replies
    9
    Views
    1,219

    Well, what error are you recieving? Or are you...

    Well, what error are you recieving? Or are you just getting a warning about using deprecated headers?
  7. Replies
    5
    Views
    1,478

    I am not trying to discourage you, it just...

    I am not trying to discourage you, it just appears that you have not really gotten into the windows api since the the problem in question is pretty mundane. However since C++ programmers generally...
  8. Replies
    28
    Views
    2,642

    Carrie Fisher and Natalie Portman. 'Nuff said.

    Carrie Fisher and Natalie Portman.

    'Nuff said.
  9. Replies
    3
    Views
    2,047

    Are you doing this using VBA or I guess just...

    Are you doing this using VBA or I guess just straight excel formula logic, huh?
  10. Thread: Reputation

    by andyhunter
    Replies
    25
    Views
    2,359

    Hmm. I think the jury is still out on that one. ...

    Hmm. I think the jury is still out on that one. ;)
  11. Replies
    5
    Views
    1,478

    Sounds like your a starting to get in a little...

    Sounds like your a starting to get in a little over your head. I am not trying to blow you off but you really need to get into windows programming from the ground up to have a good grasp of the API....
  12. Well, being a teacher you undoubtedly appreciate...

    Well, being a teacher you undoubtedly appreciate the importance of learning a concept for yourself vice just being presented with a solution. Why don't we begin by posting some specific source code...
  13. Thread: Reputation

    by andyhunter
    Replies
    25
    Views
    2,359

    Hmmm.... Some things change and others remain...

    Hmmm....

    Some things change and others remain the same. I've been gone for a couple of months and reputation is gone; yet at the same time I noticed some script kiddie was asking for a key logging...
  14. Replies
    7
    Views
    9,799

    This is a classic recursion problem. Just do a...

    This is a classic recursion problem. Just do a search for recursion and factorials.

    The key to this is that you have a predefined endpoint, aka 0! = 1.
  15. Replies
    7
    Views
    1,850

    Chances are the database is trying to communicate...

    Chances are the database is trying to communicate with a COM object not installed on your friends machine. I have experienced this before when transferring an access DB from one network over to...
  16. Replies
    24
    Views
    2,128

    Nice work Bubba, be sure to keep us updated. ...

    Nice work Bubba, be sure to keep us updated.

    Now have you implemented a scripting engine for the actual game?
  17. Replies
    9
    Views
    858

    Are you talking windows or console programming?

    Are you talking windows or console programming?
  18. Replies
    81
    Views
    8,146

    Poll: Congrats Sean and Thantos. I'm sure you guys are...

    Congrats Sean and Thantos. I'm sure you guys are going to be great mods. :)

    -Andy
  19. Thread: Assembly

    by andyhunter
    Replies
    4
    Views
    1,194

    I would have to agree with sean with this one. It...

    I would have to agree with sean with this one. It is not always good to try to learn one language from the perspective from another. Take it from the guy who went from quickbasic to assembly to C to...
  20. Replies
    1
    Views
    1,831

    You need to have your main switch be checking...

    You need to have your main switch be checking "message". Your inverter button doesn't work when you do this probably because you are confused into how to process button messages. Look at this thread...
  21. Thread: Centering

    by andyhunter
    Replies
    4
    Views
    881

    Well the resource editor should have a grid view...

    Well the resource editor should have a grid view that should make everything pretty easy to center, it is WYSISWG editing after all.

    If that doesn't suit your needs you could always iterate...
  22. Thread: Centering

    by andyhunter
    Replies
    4
    Views
    881

    Are you creating the dialogue box with a resource...

    Are you creating the dialogue box with a resource editor or are you doing it during run time by creating the controls yourself?

    edit - Do the larger boxes that the controls sit in represent child...
  23. Replies
    9
    Views
    942

    Yes it is possible to nest a switch inside a for...

    Yes it is possible to nest a switch inside a for loop as you detailed above.

    And you are correct, doing:


    switch(str)


    would not meet your purposes.
  24. Replies
    9
    Views
    1,295

    Adding nodes to Linked Lists in Order

    Ok then, well lets take a look at the logic behind adding a node to a linked list in a certain order. The first thing we need to have is our function header, so letís start with one:


    void...
  25. Replies
    5
    Views
    1,319

    The full quote would be: What I mean is that...

    The full quote would be:


    What I mean is that the PocketPC Office doesn't retain all the functionality for development.

    I have used PocketC before, pretty cool. I know MS has a plugin for VC...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4