Search:

Type: Posts; User: anonymoususer

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,183

    Nobody is spoon feeding me. I'm just learning to...

    Nobody is spoon feeding me. I'm just learning to code better. Thats why I asked for constructive criticism. Thanks Doilin



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


    int num1;
    int num2;
  2. Replies
    12
    Views
    1,183

    Help with Basic Calculator Program

    Can I get some constructive criticism on why my program doesnt calculate properly?



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


    int main(){
    int sum;
  3. Replies
    3
    Views
    867

    Okay I see what your trying to say and it makes...

    Okay I see what your trying to say and it makes sense but it doesnt make sense if I wanted to compare a string in the array like scissors to rock.
    I would thought it would be like if...
  4. Replies
    3
    Views
    867

    Help with simple game

    I added a line of code that isnt being executed and I don't know why. Its Rock Paper Scissors. I have it set up so that if both players throw rock then it should say tie game but it won't appear
    its...
  5. Replies
    12
    Views
    7,347

    I do have one other problem. Im trying to put my...

    I do have one other problem. Im trying to put my code in a function but I'm getting errors


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




    char array[3][20] = {"Rock", "Paper", "Scissors"};
  6. Replies
    12
    Views
    7,347

    I got it working thanks!!

    I got it working thanks!!
  7. Replies
    12
    Views
    7,347

    I'm not at my computer at the moment so I can't...

    I'm not at my computer at the moment so I can't test it but are you saying I shouldnt use char for the array? I don't think you can say "string array" what should it be if that's what your referring...
  8. Replies
    12
    Views
    7,347

    You must of read it before I redited post #5...

    You must of read it before I redited post #5 because i'm not assigning it to an array its being assigned to randNum and then Im passing randNum through the array. And the program stops running after...
  9. Replies
    12
    Views
    7,347

    Ok I changed it based on what you said and I...

    Ok
    I changed it based on what you said and I have the following errors


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


    int main(){
    char array [3] = {"Rock", "Paper", "Scissors"};
  10. Replies
    12
    Views
    7,347

    Im thinking of adding more options. Case 1 is...

    Im thinking of adding more options. Case 1 is what I what you to look at.
  11. Replies
    12
    Views
    7,347

    Help With Rock Paper Scissors Game

    I'm trying to create a rock paper scissors game and I having problems having one of the strings of array to appear.
    Any help is appreciated. When you hit option 2 it should atleast printf the word...
  12. Replies
    2
    Views
    976

    Trouble Reading From File

    I'm made a textbased game and I'm having trouble reading from a file.
    the text file reads john so after you enter your name in game it should say welcome john no welcome (your name)
    the function...
  13. Replies
    1
    Views
    1,258

    Help With Random Number Generator

    If I had 6 Words and I want the user to randomly receive one of the 6 words every time they entered 1 how would I write that?
  14. Replies
    3
    Views
    5,529

    I did what you said anduril but the text is not...

    I did what you said anduril but the text is not alligning properly in my case 2 statement.(leaguestandings function)





    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>...
  15. Replies
    3
    Views
    5,529

    Help formatting text in c

    What is a more stable version of \t that will let me indent lines of code without going all over the place. I need everything line up evenly.
  16. Replies
    2
    Views
    702

    Thanks that did it

    Thanks that did it
  17. Replies
    2
    Views
    702

    Help with Structures

    I'm not sure why I'm getting the error storage size of p is not known. Cant i write it like p.homeTeam; like in the code below and have the user enter in the information like a regular variable(int...
  18. Replies
    8
    Views
    79,677

    Thanks alot! that fixed it

    Thanks alot! that fixed it
  19. Replies
    8
    Views
    79,677

    Thanks that was helpful but when I set my code up...

    Thanks that was helpful but when I set my code up like this I get "welcome to my program" and "welcome spencer".
    Its only supposed to say welcome to my program



    int main (){
    char name[30];...
  20. Replies
    8
    Views
    79,677

    I've taken into account what you said and it...

    I've taken into account what you said and it works better now but when I enter spencer it says welcome spencer. (its supposed to say welcome to my program spencer)


    int main (){
    char name[30];...
  21. Replies
    8
    Views
    79,677

    Using Characters in If Else Statement

    How do I do this properly?
    I want it to printf a separte statement if a certain name is entered. (spencer)


    int main (){
    char name[30];
    printf("\nTo get started, Enter your name!\n");
    ...
Results 1 to 21 of 23