Search:

Type: Posts; User: KAUFMANN

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,184

    " int i; int ary[50]; for(i=0; i

    " int i;
    int ary[50];
    for(i=0; i<50; i++);
    printf("%d", ary[i]);"

    The set of instructions won't be able to identify the iterations since there's no identifier in that set.
  2. Replies
    2
    Views
    1,167

    Oh there's a Manual alright. Thank you very much....

    Oh there's a Manual alright. Thank you very much. That shall suffice.
  3. Replies
    2
    Views
    1,167

    GMP Library: simple question

    Hi.

    I've written a small program to compute very large numbers using the Collatz Conjecture. I have been told I should use the GMP library, so I downloaded the file, and there's a bunch of .c and...
  4. Replies
    15
    Views
    7,750

    Yes I know. I was changing the range around and...

    Yes I know. I was changing the range around and didn't see that when I copied the code onto here. But it's irrelevant to the actual issue at hand.
  5. Replies
    15
    Views
    7,750

    Damn! I was afraid you were going to say that......

    Damn! I was afraid you were going to say that... I'll read it then. Thanks anyway.
  6. Replies
    15
    Views
    7,750

    Hello, I downloaded the gmp-5.0.2.tar.bz2 file...

    Hello, I downloaded the gmp-5.0.2.tar.bz2 file from the GMP page but I can't make anything with what I found inside.
    How can I use this math library to work with extremely large numbers in my...
  7. Replies
    15
    Views
    7,750

    If I want to use the unsigned long long, do I...

    If I want to use the unsigned long long, do I just write 'unsigned long long int var1,var2...'? Or do I need to change the %d as well? And do I need to #include something?
  8. Replies
    15
    Views
    7,750

    So if I want to use this long int, can I simply...

    So if I want to use this long int, can I simply put 'long' before int followed by the variables or do I need to change anything else? Like the %d
  9. Replies
    15
    Views
    7,750

    Collatz's Conjecture

    *Hi there,

    So there is this math conjecture which essentially says you can pick any positive integer, aply two rules and it shall always come to 1. The rules are, if the integer is even, divide it...
  10. Silly me... Thank you indeed!

    Silly me...

    Thank you indeed!
  11. Simple error around which I can't wrap my head.

    I installed Ubuntu in my PC a while ago and only now have I started programming in C.


    So, I did as instructed:

    use gedit to write the code, save it in .c format, open the terminal, write
    $cc...
  12. Replies
    3
    Views
    810

    OMG You're a freakin' genius! It totally worked...

    OMG You're a freakin' genius! It totally worked :D Thank you so much. And to think that it was only a matter of puttin' there [i]+2 instead of [i+2]
    I didn't know it made that much of a difference!...
  13. Replies
    3
    Views
    810

    Decrypted Message, but not really.

    Well, I have this message to decrypte the following way: each letter should be moved two rows ahead, so if we have ABC, the output should be CDE.

    I've made the code, seems fine to me but doesn't...
  14. Replies
    5
    Views
    913

    Long double does not make sense.

    Hello Community,

    I wrote a small piece of code to print a fairly large number. Something along the lines of 30!++.
    The problem is that what I get instead is a group of random numbers with no...
  15. Replies
    5
    Views
    1,354

    The error message reads: syntax error before...

    The error message reads: syntax error before "system".



    Oh boy. That's got to be it. I forgot to write the while statement after the last do.

    Thanks, I don't know how I missed that one.
    ...
  16. Replies
    261
    Views
    38,130

    Any number multiplied by its inverse is 1 since...

    Any number multiplied by its inverse is 1 since N*(1/N)=1 because the N's cancel on each other. Now, since 0 is the inverse of infinity, is it safe so assume that 0*infinity=1? Methinks so.
  17. Replies
    13
    Views
    1,984

    Android definitely. More free apps, open source,...

    Android definitely. More free apps, open source, endless personalization, nicer desktops, full of widgets, unlike iPhone and so on.
  18. Replies
    5
    Views
    1,354

    BLACKJACK - final

    Hello there. So I've completed the code to my little blackjack code and it seems correctly written, however, I haven't been able to run the code to see how it works because of an syntax error which I...
  19. Replies
    3
    Views
    2,748

    Thanks! That helped a lot. I thought I just...

    Thanks! That helped a lot. I thought I just needed to plug in the rand() function and the whole thing would just work. Thanks for addressing me to the FAQ.



    Thanks. That works indeed.
  20. Replies
    3
    Views
    2,748

    Blackjack code.

    Hello. So I set to write a simple Blackjack program, and what I have done so far (not the whole code) works fine except that the rand() function keeps giving out the same values over and over. So...
  21. Replies
    3
    Views
    733

    Oh I feel silly now. Thank you for your help,...

    Oh I feel silly now. Thank you for your help, fella :)

    Now, IS it possible to use the rand function within a range, say 0 and 100?
  22. Replies
    3
    Views
    733

    Reversed String don't like spaces

    IS it possible to use the rand function within a range, say 0 and 100?
  23. Replies
    7
    Views
    955

    I see. It's not necessary since that restriction...

    I see. It's not necessary since that restriction is already defined within the 'for' loop. I've removed it now, and it still doesn't output what it should. Maybe there's some screw up in the manner...
  24. Replies
    7
    Views
    955

    Very well. I read what you suggested and I agree....

    Very well. I read what you suggested and I agree. However, with the code now corrected in that way, the very same error pops up: Max:1 Pos:4
    There's something more to it :|


    #include <stdio.h>...
  25. Replies
    7
    Views
    955

    Failure to determine array's maximum

    #include <stdio.h>
    #define N 6
    int main(void){
    int i,k,v[N];
    printf("Input the vector:\n");
    for(i=0;i<N;i++){
    printf("Element %d:",i+1);
    ...
Results 1 to 25 of 31
Page 1 of 2 1 2