Search:

Type: Posts; User: AntP

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    4,836

    A million digits!?

    A million digits!?
  2. Replies
    2
    Views
    2,627

    Command line arguments are passed in when you run...

    Command line arguments are passed in when you run your program, not prompted for at runtime:


    C:\My Projects\My Project> myprogram arg1 arg2 arg3
  3. Replies
    13
    Views
    1,830

    '\0' is known as the null character and is used...

    '\0' is known as the null character and is used by many string functions to denote the end of the string.
  4. Replies
    4
    Views
    5,456

    How exactly do you want it formatted? Just a hex...

    How exactly do you want it formatted? Just a hex value with a negative sign?


    printf("%8.8X %s%6.6X%2.2X\n", printout, (operand < 0) ? "-" : "", abs(operand), opcode);
  5. Replies
    16
    Views
    3,685

    Firstly, if you're getting errors, you should...

    Firstly, if you're getting errors, you should post the console output detailing them.

    I see a few problems with your code:

    - You don't want to include 'char*' in your function call. Just the...
  6. Replies
    16
    Views
    3,685

    Okay, so strtok takes two arguments. The first is...

    Okay, so strtok takes two arguments. The first is either a string - in which case it starts its "scanning" at the start of the specified string - or a null pointer, in which case it starts its...
  7. I'm no expert, but since nobody else has replied,...

    I'm no expert, but since nobody else has replied, I'll see if I can provide some useful info.

    1. Yes, you can. Typically (but not always), your hidden layer function outputs will be binary as this...
  8. Replies
    21
    Views
    3,304

    Thanks for summarising. It was, indeed, my...

    Thanks for summarising. It was, indeed, my original intention merely to note, for the sake of the OP, that it is not simply the programming language that determines efficiency - but also the manner...
  9. Replies
    21
    Views
    3,304

    Again, you have completely sidestepped my point....

    Again, you have completely sidestepped my point. I am not mixing anything up. You are either confused or you are intentionally using strawman arguments.

    You are arguing with points I never made....
  10. Replies
    21
    Views
    3,304

    Again, this isn't what I'm saying at all. At...

    Again, this isn't what I'm saying at all. At least, it wasn't, before people blew my point way out of proportion and twisted what I was trying to say into "C iz slow ruby is bettar lolll."

    My...
  11. Replies
    21
    Views
    3,304

    I'm sorry, but "the library for C and especially...

    I'm sorry, but "the library for C and especially C++ is extremely complex, more so than that of most interpreted languages" quite clearly demonstrates that you have still completely failed to...
  12. Replies
    5
    Views
    1,231

    Since you haven't actually said what the problem...

    Since you haven't actually said what the problem is, nor what you're trying to do, I can only guess that you're wondering why your printf statement is printing "10" and not "11".

    You aren't...
  13. Replies
    21
    Views
    3,304

    Strawman argument. Of course,...

    Strawman argument. Of course, computation-by-computation, compiled languages are always going to be faster. That's a given. In practical terms, however, unless you are willing to put in a lot of time...
  14. Replies
    21
    Views
    3,304

    Uhh, no! Read my post again until you understand...

    Uhh, no! Read my post again until you understand it. Standard libraries in higher level languages will implement extremely efficient algorithms - much better than the ones you can come up with...
  15. Replies
    21
    Views
    3,304

    Depends. In the majority of problems (this one...

    Depends. In the majority of problems (this one included), computational complexity will have a much greater effect on running time than things like caching and other such compiler optimizations....
  16. Replies
    21
    Views
    3,304

    That is very slow. For example, using the...

    That is very slow. For example, using the following simple algorithm (pseudocode):


    for i from 2 to sqrt(x):
    if (x % i == 0):
    return False
    return True

    Python interpreter reports...
  17. Replies
    2
    Views
    1,924

    There is your problem. You're not actually...

    There is your problem. You're not actually calling these functions here.



    boardCreate();
    board();
    short rdy;
    do
    {
    //This part is under construction...
  18. Replies
    2
    Views
    2,233

    Are you having trouble with something in...

    Are you having trouble with something in particular, or is your question "Will someone do my homework please?"
  19. Replies
    5
    Views
    4,594

    Why? void swap(int *a, int *b) { *b +=...

    Why?


    void swap(int *a, int *b) {
    *b += *a;
    *a = *b-*a;
    *b -= *a;
    }

    Pointless, but it works.
  20. Replies
    5
    Views
    17,430

    Put a return 0 at the end too.

    Put a return 0 at the end too.
  21. Replies
    5
    Views
    17,430

    No main procedure? #include int...

    No main procedure?


    #include <stdio.h>

    int main (void) {
    int ruu = 10000;
    int var = 0;
    while (var <= ruu)
    {
  22. Replies
    2
    Views
    1,372

    You can't assign to an array like that, except...

    You can't assign to an array like that, except during initialization.
  23. Replies
    11
    Views
    1,780

    The obvious issue I see with this is that, if a...

    The obvious issue I see with this is that, if a client drops an update, it will completely lose any sense of what's going on in the game until something else happens, whereas with regular updates you...
  24. Replies
    2
    Views
    1,450

    Instead of: while( h->num != 0 ) Go with:...

    Instead of:


    while( h->num != 0 )

    Go with:


    while(h)
  25. Replies
    8
    Views
    3,552

    Post your code?

    Post your code?
Results 1 to 25 of 35
Page 1 of 2 1 2