Search:

Type: Posts; User: 1rwhites

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    I suppose I am not going to worry about not using...

    I suppose I am not going to worry about not using strings. Here is where I am at right now. When I run my program though, it gets to the part where it asks the user for a letter, but no matter what...
  2. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    hangman help

    Here is what I have so far...



    #include <stdio.h>

    #define SIZE 20
    char word[SIZE];
    char guess[SIZE];
    #define STAR '*'
  3. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    Is there anyways I can do that without using...

    Is there anyways I can do that without using "stdout"?
  4. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    how many letters using an array

    In my program, I want the user to enter a word. After that, I need for my program to tell me how many letters the user entered. I know I need some sort of an array, and I'm not allowed to use...
  5. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    I don't understand how to figure out how many...

    I don't understand how to figure out how many letters are in the word the user enters.
  6. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    Here is a lame attempt so far of what I'm trying...

    Here is a lame attempt so far of what I'm trying to do



    #include <stdio.h>
    #define SIZE 20
    #define GUESS '*'

    int main(void)
    {
  7. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    I forgot to mention, I'm not allowed to use...

    I forgot to mention, I'm not allowed to use strings for the assignment.
  8. Thread: array help

    by 1rwhites
    Replies
    17
    Views
    2,259

    array help

    I am trying to build a HANGMAN program. I want to first ask the user to enter a word, and then I want that word to be the word that you have to guess. My problem is I don't understand how to make an...
  9. Replies
    4
    Views
    1,710

    I'm sorry I'm confused. What am I wrapping in a...

    I'm sorry I'm confused. What am I wrapping in a while statement??
  10. Replies
    4
    Views
    1,710

    ATM trouble???

    OK here is a piece of my program:



    #include<stdio.h>
    #include<math.h>
    #define PIN 2424
    #define TRUE 1

    /* Function Prototypes */
  11. Replies
    3
    Views
    1,160

    Looping problem!!

    OK here is what I have so far.



    #include<stdio.h>
    #include<math.h>
    #define PIN 2424
    #define TRUE 1

    /* Function Prototypes */
  12. Replies
    9
    Views
    2,009

    OK here is my entire program. I still don't have...

    OK here is my entire program. I still don't have this figured out. The first time I input for example 50, it says that the ATM can't make cash out of it. But when it prompts again I put in 50 and it...
  13. Replies
    9
    Views
    2,009

    OK I Have this int get_data(int money) {...

    OK I Have this



    int get_data(int money)
    {


    int count2;
    int new_cash;
  14. Replies
    9
    Views
    2,009

    Part of ATM problem

    Here is what I have so far



    int get_data(int money)
    {
    int count2;
    int new_cash;
    int error;
  15. Replies
    11
    Views
    19,819

    Ok everything is good. thanks everyone for your...

    Ok everything is good. thanks everyone for your help.
  16. Replies
    11
    Views
    19,819

    OK here is my code now. #include ...

    OK here is my code now.



    #include <stdio.h> /* define fopen,fclose,fscanf,fprintf */
    #include <math.h> /* sqrt definition */
    #define TRUE 1
    #define FALSE 0
  17. Replies
    11
    Views
    19,819

    Here is my data now. 50 is not a prime number ...

    Here is my data now.
    50 is not a prime number
    17 is a prime number
    45 is a prime number
    19 is a prime number
    2 is a prime number
    36 is not a prime number
    31 is a prime number
    41 is a...
  18. Replies
    11
    Views
    19,819

    OK here is what I have now #include...

    OK here is what I have now



    #include <stdio.h> /* define fopen,fclose,fscanf,fprintf */
    #include <math.h> /* sqrt definition */
    #define TRUE 1
    #define FALSE 0

    int is_prime(int num);
  19. Replies
    11
    Views
    19,819

    for loop to find prime numbers

    For my program, I need to check whether a number is prime or not. I have to use a for loop. And I only have to check for divisors that are less then or equal to the square root of the number being...
  20. Replies
    1
    Views
    1,306

    Pointer questions

    OK here is my program



    #include<stdio.h> /* fprint, fscanf, fclose, fopen definitions */

    int main(void)

    {
  21. Replies
    10
    Views
    1,837

    OK. it asks for the next room correctly. But the...

    OK. it asks for the next room correctly. But the calculations are messed up. Instead of getting 180, 12 inch tiles like it used to. It gets 1080459264, 0 inch tiles
  22. Replies
    10
    Views
    1,837

    whenever I run your program Enter the size of...

    whenever I run your program

    Enter the size of the tiles in inches > 12
    Enter the room width (feet and inches seperated by a space): 17 4
    Enter the room length (feet and inches separated by a...
  23. Replies
    10
    Views
    1,837

    Looping questions

    OK here is my problem



    int main(void)
    {
    int tiles; /* tile size in inches */


    printf("Enter the size of the tiles in inches > ");
  24. Thread: ceil question

    by 1rwhites
    Replies
    8
    Views
    1,410

    Dear filker0, If you were anywhere near me I...

    Dear filker0,
    If you were anywhere near me I would kiss you!

    Thanks a lot. It works fine.
  25. Thread: ceil question

    by 1rwhites
    Replies
    8
    Views
    1,410

    Whenever I do room_tile =...

    Whenever I do


    room_tile = ceil(width_total / tiles);
    /* ... */
    length_tile = ceil(length_total / tiles);


    I get the following error
Results 1 to 25 of 34
Page 1 of 2 1 2