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>...
Type: Posts; User: andyhunter
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>...
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;)
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...
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.
Sounds like a homework assignment. Well, why don't you show us what you have so far?
Well, what error are you recieving? Or are you just getting a warning about using deprecated headers?
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...
Carrie Fisher and Natalie Portman.
'Nuff said.
Are you doing this using VBA or I guess just straight excel formula logic, huh?
Hmm. I think the jury is still out on that one. ;)
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....
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...
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...
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.
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...
Nice work Bubba, be sure to keep us updated.
Now have you implemented a scripting engine for the actual game?
Are you talking windows or console programming?
Congrats Sean and Thantos. I'm sure you guys are going to be great mods. :)
-Andy
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...
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...
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...
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...
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.
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...
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...