Search:

Type: Posts; User: guyonasm

Search: Search took 0.01 seconds.

  1. Thread: File Transfer

    by guyonasm
    Replies
    6
    Views
    1,341

    Transfer how, under what medium? Tell us how you...

    Transfer how, under what medium? Tell us how you wanna do it, and then we can guide you.
  2. Replies
    3
    Views
    966

    Well you could create a struct coord ...

    Well you could create a struct coord



    struct coord
    {
    int x;
    int y;
    };
  3. Replies
    6
    Views
    1,328

    Salem, that is beautiful, because not only is it...

    Salem, that is beautiful, because not only is it smaller and simpler, but you don't even modify the array as I do :).
  4. Replies
    6
    Views
    1,328

    That code looks nice :). I'm assuming you're...

    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...
  5. Replies
    6
    Views
    1,328

    Lets say I want to have an exponential function....

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

    The link dwks has given you is as silver a...

    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...
  7. Thread: DevC++ EXE's

    by guyonasm
    Replies
    4
    Views
    1,862

    While you actually have a project open go to: ...

    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...
  8. Replies
    5
    Views
    2,650

    http://msdn.microsoft.com/library/default.asp?url=...

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/keybd_event.asp

    keybd_event...
  9. Replies
    6
    Views
    13,468

    Thanks. I've got alot of modifications to make in...

    Thanks. I've got alot of modifications to make in a few projects of mine. :D
  10. He wants a working Example of CreateProcess,...

    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...
  11. Replies
    6
    Views
    13,468

    What do you mean not allowed? It compiles just...

    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.
  12. I've coded a console blackjack game for fun a few...

    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...
  13. Replies
    6
    Views
    13,468

    Not sure of your implementation, but you could...

    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()];
  14. Replies
    15
    Views
    2,147

    include statements start off with a #. Look at...

    include statements start off with a #. Look at your first line.
  15. Replies
    2
    Views
    1,504

    You're probably never triggering it. Replace: ...

    You're probably never triggering it. Replace:



    while (!transIn.eof())


    With
  16. Replies
    22
    Views
    4,046

    && = AND || = OR So just simply think, do you...

    && = 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 (||).
  17. Replies
    22
    Views
    4,046

    But you apply the charges, and when you get to...

    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...
  18. Replies
    22
    Views
    4,046

    And, because you do this, the charges you...

    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...
  19. Replies
    22
    Views
    4,046

    if a OR b OR c is different than if a AND b AND...

    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...
  20. Replies
    22
    Views
    4,046

    *EDIT* Darn grumpy beat me by 2 mins, I spent 10...

    *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...
  21. Replies
    22
    Views
    4,046

    Put a semicolon after the number_of_a = 11. The...

    Put a semicolon after the number_of_a = 11. The way you have it now will cause error, because you only end with ,
  22. Replies
    10
    Views
    2,721

    The logo at the bottom makes the site look very...

    The logo at the bottom makes the site look very novice like. Other than that, I enjoy the look/feel you're going for.
  23. Replies
    8
    Views
    6,136

    I cannot help you with the latter, but as 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,...
  24. Assuming you use windows, you could put ...

    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:
  25. Replies
    4
    Views
    1,016

    Assuming you know that the size of blah2 is small...

    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);
Results 1 to 25 of 25