Search:

Type: Posts; User: fsx

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. converting Niklaus Wirth's examples from pascal to C

    Hello,

    I know almost nothing about pascal, but I found some reference online.
    How difficult is it to convert "Algorithms + Data structures = Programs
    by N. Wirth"'s examples to C?
    Do you...
  2. Replies
    7
    Views
    1,991

    Thank you very much, I will use that solution as...

    Thank you very much, I will use that solution as soon as I will understand what it does, because still I didn't get in pointers... I would like to be sure on steady terrain before adventuring myself,...
  3. Replies
    7
    Views
    1,991

    The compiler (VC++ express) tells me this...

    The compiler (VC++ express) tells me this message:

    \visual studio 2008\projects\guessgame\guessgame.c(15) : warning C4244: 'function' : conversion from 'time_t' to 'unsigned int', possible loss of...
  4. Replies
    7
    Views
    1,991

    another little program: is this correct?

    Hello,
    I am experimenting with random numbers and guessing games, this is my attempt.
    It works for me, can someone give some better solution to the program?

    Thanks in advance.

    FSX
  5. Replies
    16
    Views
    2,942

    unsigned, perhaps?

    unsigned, perhaps?
  6. Replies
    16
    Views
    2,942

    portable random function: can someone explain it?

    Hello,
    I have been told that this is a portable random function (and it is, it works perfectly!) but I would like to understand its inner mechanisms.
    Since I would like to focus on clean and...
  7. Final run: #include #include...

    Final run:



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main(void)
    {
  8. I have added if(score1 >= 50 || score2...

    I have added



    if(score1 >= 50 || score2 >= 50)
    break;


    after the while, but it stills won't work. Probably I should rework it completely. Is there a way to reuse my code?
  9. so I should use that construct called DO ......

    so I should use that construct called DO ... WHILE which I haven't studied yet! =P
  10. I tried with && and it still continues over the...

    I tried with && and it still continues over the limit. There's something I can't understand. =P
  11. why the score1 and score2 variables exceed the maximum value of 50?

    Hello,

    I have made this little game using the random function.
    But there's a problem because the score1 and score2 exceeds the value of 50 contained in the while cycle.
    I would like to...
  12. Replies
    7
    Views
    2,361

    Well this is great, now it works! =) Thanks so...

    Well this is great, now it works! =) Thanks so much Matsp! =)
  13. Replies
    7
    Views
    2,361

    Using random() it gives error. Using rand() only...

    Using random() it gives error. Using rand() only gives 41. I am eternally confused you're right! This is what I have done later, following a C++ program found on cprogramming:



    #include...
  14. Replies
    7
    Views
    2,361

    I have VC++ and the help only tells about...

    I have VC++ and the help only tells about classes. Otherwise I would have looked on it myself.
  15. Replies
    7
    Views
    2,361

    how do I generate a random number? (easily?)

    hello,

    I would like to generate a random number. I have looked on google but the way I found (using rand and srand from stdlib.h) doesn't works.

    I would like to generate a random number with...
  16. Replies
    4
    Views
    4,495

    Hey great thanks! =) to AA poster too ;)

    Hey great thanks! =) to AA poster too ;)
  17. Replies
    2
    Views
    3,867

    is it possible to convert LISP to C?

    Hello everyone,

    I would like to convert some Common LISP into C language. Is there a
    consolidated way to do that?
    I am not an experienced programmer in both languages, but I know more C
    than...
  18. Replies
    4
    Views
    4,495

    any old ANSI C 3D engine available? (OT?)

    Hello,

    searching in google I found nothing.
    Does someone know where and if it is possible to download the source of a 3D engine written in ANSI C? I don't need raytracing or advanced features,...
  19. Replies
    29
    Views
    50,378

    You just need Visual C++ 2008 Express Visual...

    You just need Visual C++ 2008 Express Visual Studio 2008 Express Editions and when you create new projects, do an EMPTY project from GENERAL projects, then when you add files, right click on SOURCE...
  20. Replies
    1
    Views
    1,576

    question about K&R example listing 1-6 Arrays

    Hello everyone, here's the listing:



    #include <stdio.h>

    /* count digits, white space, others */

    int main(void)
    {
  21. Replies
    14
    Views
    5,022

    Mats got exactly what I was looking for, a simple...

    Mats got exactly what I was looking for, a simple explanation. I'm new to C and all those pointers, includes and so on are totally alien to my current knowledge. But thanks also for the other...
  22. Replies
    14
    Views
    5,022

    Thanks a lot! What I would like to understand is...

    Thanks a lot! What I would like to understand is why if I use the && it doesn't works... shouldn't it be similar to another IF statement?
  23. Replies
    14
    Views
    5,022

    I am still stumbling... #include...

    I am still stumbling...




    #include <stdio.h>

    int main(void)
    {
    int c, pc;
  24. Replies
    17
    Views
    32,939

    Developing good logic skills

    Hello everyone,

    I would like to develop my logic skills because I feel they are quite on the lower average level.
    I believe I need some low-level thinking skill with few instruments to solve the...
  25. Replies
    5
    Views
    1,705

    Hey that's exactly what it happens sometimes......

    Hey that's exactly what it happens sometimes... why does it ignores every other character? Shouldn't it print everything with getchar()? Sorry if the question seems silly but still I don't understand...
Results 1 to 25 of 30
Page 1 of 2 1 2