Search:

Type: Posts; User: Stormboy

Search: Search took 0.01 seconds.

  1. Thread: Pythagoras

    by Stormboy
    Replies
    14
    Views
    4,114

    Since you don't know if/else statements clearly...

    Since you don't know if/else statements clearly here is a quick on-the-spot guide/tutorial:
    if and else statements are used when the expected input/output may be different each time and you want...
  2. Replies
    8
    Views
    1,440

    Thanks guys. I think I get pointers now. :D

    Thanks guys. I think I get pointers now. :D
  3. Replies
    7
    Views
    1,329

    %d is a formatter for integer values. When you...

    %d is a formatter for integer values. When you use %d in a printf statement always specify the variable after string quotes followed by a comma with an integer. In your case you are don't doing that....
  4. Replies
    8
    Views
    1,440

    Confusion with pointers

    Hi,
    I am almost going to finish the C Tutorials. But I still am not clear with one thing. That is Pointers. I get what pointers are. But I don't get why, how and when do we use them. I tried reading...
  5. Replies
    19
    Views
    2,782

    Holy cow. Even if its in C, its way shorter than...

    Holy cow. Even if its in C, its way shorter than mine and works correctly. ;O. Nice one man.
  6. Replies
    19
    Views
    2,782

    LOL. My bad.

    LOL. My bad.
  7. Replies
    19
    Views
    2,782

    Aww yeah!! The solution came correct when I...

    Aww yeah!! The solution came correct when I replaced my checkPentagonal() function with yours. :)
    Thanks a bunch dude.

    Output: 1533776805

    The new code:


    #include <iostream>
    #include...
  8. Replies
    19
    Views
    2,782

    My assumption isn't wrong. Lets make a table of...

    My assumption isn't wrong. Lets make a table of odd n, Triangular(n) and Is Hexagonal?

    n (odd) -----Triangular(n)----- Is Hexagonal
    ------------ --------------- ...
  9. Replies
    19
    Views
    2,782

    A problem I can't figure out at all!

    OK, I am actually in a bit of *rage mood* at the moment. So, I'll try to finish the question quick. I am trying to solve Problem 45 of Project Euler.
    It reads:


    So, after researching a bit, I...
  10. Replies
    5
    Views
    1,853

    Thanks for the tips. I'll keep them in mind :).

    Thanks for the tips. I'll keep them in mind :).
  11. Replies
    5
    Views
    1,853

    Thanks for the replies :). I really appreciate...

    Thanks for the replies :). I really appreciate it. I've changed my code a bit according what oogabooga said.
    Here it is:


    #include <stdio.h>
    #define absolute_zero -273
    #define max_lim 50000
    ...
  12. Replies
    5
    Views
    1,853

    Need someone to check my code

    Hi,
    I solved the 1st problem on CProgramming. However, when I checked the solution, it was very much different from my code. When I run my program it gives the expected result all right. So, I need...
Results 1 to 12 of 12