Search:

Type: Posts; User: helloamuro

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    11,919

    Would the line ==0 work though if my program is...

    Would the line ==0 work though if my program is in a loop to be performed three times though? It seems like there could be a change that the first and third rounds of the program could use the same...
  2. Replies
    24
    Views
    11,919

    I currently have this for getting the line...

    I currently have this for getting the line number. What could I add to it to prevent the same one from being used again


    while(fgets(temp,100,phraseFile)!=0){
    ++count;
    }
    ...
  3. Replies
    24
    Views
    11,919

    I don't really want to use a 2d array because I...

    I don't really want to use a 2d array because I have been so often criticized for trying to use them before.
  4. Replies
    24
    Views
    11,919

    Or is there anyway I can just use a flag to tell...

    Or is there anyway I can just use a flag to tell if the line has been used or not?
  5. Replies
    24
    Views
    11,919

    The opening and closing seems to be working, but...

    The opening and closing seems to be working, but could someone guide or give me a suggestions as to how to store which lines have been used? Perhaps if I stored the indexes?
  6. Replies
    24
    Views
    11,919

    I can't use rewind (I'm familiar with it, but it...

    I can't use rewind (I'm familiar with it, but it hasn't been covered in my class) but would just opening and closing the file again be sufficient?
  7. Replies
    24
    Views
    11,919

    I've made your corrections, but there still is a...

    I've made your corrections, but there still is a segmentation fault....
  8. Replies
    24
    Views
    11,919

    Thanks for those warnings. However what I'm...

    Thanks for those warnings. However what I'm really trying to focus on is getting the line. After changing fgets(temp, count, phraseFile) to say while(fgets(temp, 100, phraseFile), what else do I...
  9. Replies
    24
    Views
    11,919

    Could someone please guide me in how to correct...

    Could someone please guide me in how to correct this? Thank you.


    int initialize_array(char phrase[], char puzzle[], char clue[]){
    FILE* phraseFile; /*input file*/
    char temp[100];...
  10. Replies
    20
    Views
    4,906

    Could you perhaps then tell me with my other user...

    Could you perhaps then tell me with my other user interface problems that I described in the beginning?
  11. Replies
    20
    Views
    4,906

    Vart, which method would you recommend?

    Vart,
    which method would you recommend?
  12. Replies
    20
    Views
    4,906

    I should also mention that I would like to know...

    I should also mention that I would like to know how to clear the screen once a player has chosen a letter and that letter is revealed. Thanks
  13. Replies
    20
    Views
    4,906

    Here is a screenshot. Sorry about the eraser,...

    Here is a screenshot. Sorry about the eraser, there was some personal info down there. I need the program to somehow print in the middle of a 40 row by 80 column screen. Any help is appreciated. ...
  14. Replies
    24
    Views
    11,919

    So to modify my code I would need to do...

    So to modify my code I would need to do
    while(fgets(temp,100, phraseFile)....but then I'm lost as to what I should do after that. I would appreciate any guidance. I really want to get this project...
  15. Replies
    24
    Views
    11,919

    Reading random line from a text file

    Hello,
    I really need help with this program. It's a wheel of fortune program. I think I'm really close to finishing it but I really need help adapting it to read a text file of any length and to...
  16. Replies
    20
    Views
    4,906

    Sorry, I should clarify myself more. By...

    Sorry, I should clarify myself more. By interface I meant how the program looks when it runs. Below I have posted two functions (whose meanings are obvious from their titles). I think that to...
  17. Replies
    20
    Views
    4,906

    Would it be okay if I posted the code? Because a...

    Would it be okay if I posted the code? Because a while back I posted a whole code and I kind of got scolded for it....
  18. Replies
    20
    Views
    4,906

    Improving Code Interface

    Hi,
    I was wondering if someone would be willing to help me improve my code's interface its for a wheel of fortune/hangman type game. I won't post the whole code right now, but I just was wondering...
  19. Replies
    6
    Views
    4,062

    Would I then have to somehow break up that array...

    Would I then have to somehow break up that array to find out who was the winner?
  20. Replies
    6
    Views
    4,062

    So would I just need to declare another array...

    So would I just need to declare another array similar to player_turn have it set to 0,0,0 and have player_turn added to it after each round. I really have no clue where to start. Thanks for taking...
  21. Replies
    6
    Views
    4,062

    1d to 2d array

    Hi
    I'm doing a wheel of fortune program in which the player scores are accumulated and tabulated in a 1d array player_turns[]={0,0,0}. The game has three rounds, and I don't know how to print the...
  22. Replies
    2
    Views
    1,458

    String tokens and random lines

    Hi,
    For my program I have a function for a wheel of fortune program that takes a line of input from a text file. However, I need to fix it to choose a random line and to break the line up. Could...
  23. Replies
    9
    Views
    5,507

    Could someone help me with converting the scanf...

    Could someone help me with converting the scanf to sscanf or whatever it needs to be converted to please. Especially in the spin function.
  24. Replies
    9
    Views
    5,507

    I hope this is better. I'm not using the best...

    I hope this is better. I'm not using the best text editor right now...


    #define PHRASE_SIZE 81
    #define NUM_PLAYERS 3
    #define BANKRUPT 0
    #define LOSE_TURN -1
    #define VOWEL_COST 250
    ...
  25. Replies
    9
    Views
    5,507

    Thanks matsp for correcting that. Every little...

    Thanks matsp for correcting that. Every little bit of help is appreciated. I really need help though with the getting the phrase and category randomly part though....Can someone please guide me on...
Results 1 to 25 of 27
Page 1 of 2 1 2