Transfer how, under what medium? Tell us how you wanna do it, and then we can guide you.
Type: Posts; User: guyonasm
Transfer how, under what medium? Tell us how you wanna do it, and then we can guide you.
Well you could create a struct coord
struct coord
{
int x;
int y;
};
Salem, that is beautiful, because not only is it smaller and simpler, but you don't even modify the array as I do :).
That code looks nice :). I'm assuming you're actually using Java :), but for the sake of this being a C++ forum, I'm going to take what you have, and explain it in terms of C++, as your list.length...
Lets say I want to have an exponential function. Meaning I'll take the first parameter (x) to the second parameter (y) power. Here is what it would look like recursively.
int power(int x, int...
The link dwks has given you is as silver a platter as it can get. I know you want just copy and paste code, but you're not going to learn from that. As things get more advanced, you'll find less and...
While you actually have a project open go to:
Project->Project Options
In that window go to the Compiler Tab and click on "Linker"
In the window next to it make sure "Generate Debugging...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/keybd_event.asp
keybd_event...
Thanks. I've got alot of modifications to make in a few projects of mine. :D
He wants a working Example of CreateProcess, actually being used and creating the process.
Throw this code into WinMain, and test (you'll have to change what I set hotkeyexe to, as im pretty sure...
What do you mean not allowed? It compiles just fine and works as necessary? Can I get a reference to where this is no longer legal.
I've coded a console blackjack game for fun a few months back, you can get the source here:
http://70.86.55.186/~guyonasm/coding/blackjack.tar.gz
Simply use WinRAR to extract it.
As for your...
Not sure of your implementation, but you could try something as such:
vector<int> vec(10);
// do some stuff with it.
int array[vec.size()];
include statements start off with a #. Look at your first line.
You're probably never triggering it. Replace:
while (!transIn.eof())
With
&& = AND
|| = OR
So just simply think, do you want All of them to have to be true? If so you use And (&&).
If you want only 1 of them to have to be true, you use Or (||).
But you apply the charges, and when you get to that conditional point where you check all against less than or equal to 10
number_of_a = 10 * 10 = 100
number_of_b = 5 * 20 = 100
number_of_c = 5...
And, because you do this, the charges you multiply it by pretty much invalidate the conditional statement altogether. 1 violation in b gives you 20, which is double 10. and 1 in c is 30. Keep in mind...
if a OR b OR c is different than if a AND b AND c. So yes you should replace in that respect...
but none of those are ever going to be less than 10, because of the fine charges you put on them...
*EDIT* Darn grumpy beat me by 2 mins, I spent 10 writing the explaination lol *EDIT*
The problem is your conditional statement. It can NEVER get in there, simply because of what you do, lets start...
Put a semicolon after the number_of_a = 11. The way you have it now will cause error, because you only end with ,
The logo at the bottom makes the site look very novice like. Other than that, I enjoy the look/feel you're going for.
I cannot help you with the latter, but as for counting to ten
char *buffer = (char *)malloc(64);
for(int i = 1; i <= 10; i++)
{
sprintf(buffer, "%u", i);
MessageBox(0, buffer, 0,...
Assuming you use windows, you could put
system("pause");
just before the return, but if not, then you could pause it yourself with something as such:
Assuming you know that the size of blah2 is small enough to fit within bla, then you could use the strcat function.
strcat(bla, blah2);