Search:

Type: Posts; User: vincent01910

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    2,896

    Sorry that I sounded like I was blaming sizeof....

    Sorry that I sounded like I was blaming sizeof. But I just meant sizeof may get you if you don't have profound understanding of it. :). I like the idea of passing the argument though.
  2. Replies
    11
    Views
    2,896

    Hey, You have two issues in your code. 1....

    Hey,

    You have two issues in your code.

    1. Getting 10 times bigger numbers: You need to properly end user input with '\0' in getNumber function because atoi will look to it to determine the end...
  3. Replies
    7
    Views
    1,446

    I've been using tcc on Windows xp for small...

    I've been using tcc on Windows xp for small programs and it's working fine in the sine case. And in its doc it claims float is being supported. Not sure about Vista though. Anyways it's not so hard...
  4. Replies
    7
    Views
    1,446

    You sure ur posting the code that prints this? ...

    You sure ur posting the code that prints this?


    printf("y = %f\n" y);

    This line won't even compile.
  5. Replies
    5
    Views
    4,093

    Epy you were right. After I changed that function...

    Epy you were right. After I changed that function declaration to


    unsigned long long f(unsigned long long i)

    It went on without a problem and I got the right answer.

    Thank you guys for...
  6. Replies
    5
    Views
    4,093

    Thanks Epy. These are really good suggestions. I...

    Thanks Epy. These are really good suggestions.
    I updated code according to these.


    #include <stdio.h>

    int f(int i);

    int main()
    {
  7. Replies
    5
    Views
    4,093

    Project Euler Problem 14 Segfault

    Hi,

    I'm trying to solve this problem from Project Euler. Here's the problem.

    The following iterative sequence is defined for the set of positive integers:
    n → n/2 (n is even)
    n → 3n + 1 (n...
  8. Replies
    6
    Views
    1,794

    Thanks laserlight. I get it now.

    Thanks laserlight. I get it now.
  9. Replies
    6
    Views
    1,794

    Thank you guys for reply. Still i have a...

    Thank you guys for reply. Still i have a question.


    So King Mir what do you mean by "It does not include any arguments."?
    In my understanding char *(*func)(char *) is a pointer to function that...
  10. Replies
    6
    Views
    1,794

    Pointer to function problem

    Hi,

    So I have three similar working functions:


    char *ltrim(char *);
    char *rtrim(char *);
    char *trim(char *);
  11. Replies
    11
    Views
    9,172

    Although i don't quite get the picture of the...

    Although i don't quite get the picture of the Boost library you're talking about, but i will give it a try when i’m no longer a newbie...
  12. Replies
    11
    Views
    9,172

    One of those things... Now i totally...

    One of those things...

    Now i totally understand. Thank you indeed for your detailed explanation, Mats, really helpful.
  13. Replies
    11
    Views
    9,172

    Thanks a lot matsp. Your method %I64u produces...

    Thanks a lot matsp.
    Your method %I64u produces correct result. But i just don't get it why %llu doesn't work. I've actually seen this usage somewhere...
  14. Replies
    11
    Views
    9,172

    Thank you grumpy for your reply. I just copied...

    Thank you grumpy for your reply.
    I just copied the code from the editor to the board and added the comments. I think they are the same.
    For the format specifier i used %llu for unsigned long long,...
  15. Replies
    11
    Views
    9,172

    Problem with ULLONG_MAX

    Hello,

    When i was playing with ULLONG_MAX, i wrote following code.


    #include <stdio.h>
    #include <limits.h>

    int main()
    {
Results 1 to 15 of 15