Search:

Type: Posts; User: Nexus-ZERO

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    11,297

    Oh yeah sorry about that :p void...

    Oh yeah sorry about that :p


    void askUserQuestion( int guessNumber, char* question, int* animalData )
    {

    char buffer[ BUFFER_SIZE ];
    int index;
    int selectionCriteria;
  2. Replies
    24
    Views
    11,297

    Ok i did that but it still gives me the same...

    Ok i did that but it still gives me the same warning msg of a comparison between an pointer and an integer, and wont let me compile.
  3. Replies
    24
    Views
    11,297

    Ok i got some errors, it seems that my if...

    Ok i got some errors, it seems that my if statement is making an comparison between an pointer and an integer.
    Also the 'askUserQuestion()' has to few arguments.


    if ( buffer == 'y' || buffer...
  4. Replies
    24
    Views
    11,297

    Its just a char

    Its just a char
  5. Replies
    24
    Views
    11,297

    Ok this is what ive come with so far, i no its...

    Ok this is what ive come with so far, i no its not complete but tell if im going in the right direction or not


    if ( buffer == 'y' || buffer == 'n' || buffer == 'q' );
    {
    else
    printf...
  6. Replies
    24
    Views
    11,297

    K i understood that, so how would i go about...

    K i understood that, so how would i go about making it so that wat is in is true?
  7. Replies
    24
    Views
    11,297

    Nevermind ive done it now. What i did was make...

    Nevermind ive done it now.

    What i did was make a new function..............


    int quitGame()
    {
    int quit = 0;
    char buffer[ BUFFER_SIZE ];
  8. Replies
    24
    Views
    11,297

    LoL what are you trying to imply :D Listen i...

    LoL what are you trying to imply :D

    Listen i already knew all that, and ive tried to implement it but some reason all i get is errors which is why im here!
  9. Replies
    24
    Views
    11,297

    Yeah i looked at that, but its not what im after....

    Yeah i looked at that, but its not what im after. I just want it so that when i press my exit key (q) the game just shuts down. I know its a loop i need, but i havent been able to make any work.
    ...
  10. Replies
    24
    Views
    11,297

    Im only a beginner so i dont really understand...

    Im only a beginner so i dont really understand most of what you have put there. I only need to know how to put in a quit function that i can activate anytime anywhere in my program.
  11. Replies
    24
    Views
    11,297

    20q game problems

    Hi everyone, ive got a couple of problems with my code. I trying to add functinality to my program but it isnt going well.
    What i want to do is to be able to quit or restart my game at anytime. I...
  12. Replies
    11
    Views
    1,831

    That worked thank you, but it still hasnt solved...

    That worked thank you, but it still hasnt solved my main dilemma. How do get it to only accept user name that i have on my file?
  13. Replies
    11
    Views
    1,831

    Yeah i vaguely remember being there lol

    Yeah i vaguely remember being there lol
  14. Replies
    11
    Views
    1,831

    I changed it but now it just skips throught the...

    I changed it but now it just skips throught the login bit and back to the main menu. Does anyone know how to stop it doing this.


    int Login(int* user)
    {
    char s[80];

    FILE * db;

    db...
  15. Replies
    11
    Views
    1,831

    Ok ive change my based on the suggestions i got....

    Ok ive change my based on the suggestions i got. I just need to know how to set it so that it only accepts the user names in my txt file. (change the indentation once i get it working!)


    int...
  16. Replies
    11
    Views
    1,831

    error checking file

    Right newbie here! Im am tyring to write some code that will read a file i already have and check a login name against what is on file. Then i need it to give an error warning if the name is not...
  17. Replies
    8
    Views
    2,403

    What i want is to be able to jump back to the...

    What i want is to be able to jump back to the main menu in main from the registration function. I thought return would allow me to do it, but i was wrong.

    #include <stdio.h>
    #include <math.h>...
  18. Replies
    8
    Views
    2,403

    Jumping between functions

    Newbie here! I was wondering if it is possible to jump back to a previous function in a program and if it is how would one go about doing it?
  19. Replies
    2
    Views
    940

    Writing to a file

    Hiya everyone, i have a problem ive been trying to write to a file but when i open that file its empty. The programs builds so ive come to the conclusion that im missin something or i have written it...
  20. Replies
    17
    Views
    2,775

    Problem Solved

    OMG! DaveH, Lazerlight your gods among men! Sorry for being annoying and thanks for your help!

    Although saying that, ill be back soon with brand new questions lol.
  21. Replies
    17
    Views
    2,775

    Ok i did that, but it came up with more errors. ...

    Ok i did that, but it came up with more errors.

    On line 6: previous declaration of 'Login'
    On line 22: warning passing arg 1 of 'Login' make interger from a pointer without a cast
    On line 44:...
  22. Replies
    17
    Views
    2,775

    Sorry to keep bothering you guys but i cant get...

    Sorry to keep bothering you guys but i cant get rid of this error. On line 22 i keep getting a parse error before "int", i dont understand what im doing wrong.


    #include <stdio.h>
    #include...
  23. Replies
    17
    Views
    2,775

    Sorry about that! I've just sorted most of the...

    Sorry about that! I've just sorted most of the errors now i only have one. This what i have done so far.
    It seems to be having a problem with my if statement.

    ERRORS
    Line 20: parse error before...
  24. Replies
    17
    Views
    2,775

    Ok done what was said, but it gave me even more...

    Ok done what was said, but it gave me even more problems
  25. Replies
    17
    Views
    2,775

    Sorry mate that hasnt solved it.

    Sorry mate that hasnt solved it.
Results 1 to 25 of 26
Page 1 of 2 1 2