Search:

Type: Posts; User: lancehumiston

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    6,448

    #include main() { int x; int r;...

    #include<stdio.h>

    main()
    {
    int x;
    int r;
    char response;
    srand( time(NULL) );
    do{
    printf("I have a number between 1 and 10.\n");
  2. Replies
    8
    Views
    6,448

    yeah i am unsure how to recieve their response,...

    yeah i am unsure how to recieve their response, is it possible with a scanf? if so, how do i store their response? scanf("%d?

    thank you i was getting an undefined symbol message but i put the...
  3. Replies
    8
    Views
    6,448

    how should i define NULL in srand( time(NULL) );?...

    how should i define NULL in srand( time(NULL) );? i thought unsigned was the correct way?

    Also i just went through the tutorial on loops and it didn't tell me anything about changing a user's...
  4. Replies
    8
    Views
    6,448

    i know where the loop needs to be my question was...

    i know where the loop needs to be my question was more along the lines of how do i create the loop while (?) and how do i use the user's respons (y or n) to return a true or false for the loop?
  5. Replies
    8
    Views
    6,448

    how do i make this loop???

    main()
    {
    int x;
    int r;
    unsigned NULL;
    printf("I have a number between 1 and 10.\n");
    printf("Can you guess my number?\n");
    printf("Please type your first guess.\n");
    scanf("%d", &x);
    srand(...
Results 1 to 5 of 5