Search:

Type: Posts; User: robinnbastar

Search: Search took 0.00 seconds.

  1. Thanks a lot. you're a big help :)

    Thanks a lot. you're a big help
    :)
  2. oh wow it worked! Thanks a lot. but one more...

    oh wow it worked!
    Thanks a lot.
    but one more question if you can answer.
    My professor put those parentheses to initialize the value (he said it was the same as int unit = 0), but why doesnt it...
  3. ambiguous overload for 'operator>>' in 'inData >> unit'

    I try to read from a file but it keep giving me this error and i dont know what the error mean. I try and google it but didnt see any solution.

    #include<iostream>#include<iomanip>...
  4. Replies
    28
    Views
    3,987

    Wow. a lot of respond. I don't understand all of...

    Wow. a lot of respond.
    I don't understand all of your respond, but it was an interesting read.
    I took your advices and start from the max instead and decremented it by 2.
    Here the new code:
    ...
  5. Replies
    28
    Views
    3,987

    I just start programming so i'm not sure what a...

    I just start programming so i'm not sure what a binary tree is. I'll look into it, maybe i can understand it. thanks :)

    To Matticus and Stahta01: I'll try and leave the terminal work longer and...
  6. Replies
    28
    Views
    3,987

    biggest prime factor

    This is my second post. Hi everyone.
    ok so i started doing problem number 3 on project euler and meet another obstacle.
    Here the problem:

    Here my code:

    #include<stdio.h>
    int main()
    {
    ...
  7. Replies
    8
    Views
    1,902

    I got it!!!!! Woooohooooo they want the sum of...

    I got it!!!!! Woooohooooo
    they want the sum of even number, not odd number. so i change "c%2==1" to "c%2==0".
    and it works. Off to problem number 3.
    thanks everyone for replying.
  8. Replies
    8
    Views
    1,902

    okay so here the new code i got: #include...

    okay so here the new code i got:

    #include <stdio.h>
    int main()
    {
    int sum = 0, a = 0, b = 1, c = 0;
    while(b<=4000000)
    {
    c=a+b;
    if ( (c%2==1) && (c<=4000000) )
  9. Replies
    8
    Views
    1,902

    Fibonacci sequence wont run.

    This is the second problem from Project Euler. here the detail:


    and here is my code in C:

    #include <stdio.h>
    int main()
    {
    int sum = 0, a = 1, b = 2, c=0;
    while(b<4000000)
Results 1 to 9 of 9