Search:

Type: Posts; User: psycho88

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,535

    whats wrong with this piece of code?

    hi, really annoying me now, it compiles, runs, and the add or mult work with the response part, but when it says enter the 2 numbers to either add or mult, when i hit enter it does nothing, just goes...
  2. Thread: health...

    by psycho88
    Replies
    6
    Views
    1,747

    what i want is like.. top of the program says...

    what i want is like..

    top of the program says HP or Health = 100...

    whenever i get hit, the health goes down depending on how hard u get hit but i dont wait it to print somewhere else...
    ...
  3. Replies
    13
    Views
    1,618

    one where you enter a name, then last name and...

    one where you enter a name, then last name and then age and it stores it. or you can look some up.

    and even when uve closed it, if u re open the program u can search for what u entered.

    ?
  4. Replies
    13
    Views
    1,618

    ok ill try a database program, any chance youv...

    ok ill try a database program, any chance youv got a small piece of code from one that i can check out? :-D or the tutorials for them?
  5. Thread: health...

    by psycho88
    Replies
    6
    Views
    1,747

    health...

    im trying to make a fighting game where u take in turns to do stuff..

    if i make it...

    int health = 100;
    int ohealth = 100;

    how do i get it to show the health all the way through the fight?...
  6. Thread: is this easy

    by psycho88
    Replies
    1
    Views
    1,069

    is this easy

    hi, im new to programming, just wondering if making a fighting game, in dos mode, where u take in turns to do stuff, like a text game?

    like

    both start with 100% health bar [...
  7. Replies
    13
    Views
    1,618

    bah, fixed it. this works perfect. ...

    bah, fixed it.

    this works perfect.



    #include <stdio.h>
    #include <string.h>

    int main()
  8. Replies
    13
    Views
    1,618

    ok thanks for the tip. yeh i tried putting the...

    ok thanks for the tip. yeh i tried putting the age *= 7 at the top and bottom, middle everything and it wouldnt work for them both lol, didnt think of doing the
    printf( "your "%s" is "%d" is %s"...
  9. Replies
    13
    Views
    1,618

    is this what we should start with?

    I got the idea from a source in the projects part of website so thought id try it on my own.



    #include <stdio.h>
    #include <string.h>

    int main()
    {
    int age;
  10. Thread: lil prob

    by psycho88
    Replies
    7
    Views
    1,460

    geez it still wont work. if i type in the age...

    geez it still wont work. if i type in the age part, 60 it gives

    your age is 2293612

    whats the problem cuz the code looks good to me.. then again im a n00b.
  11. Thread: lil prob

    by psycho88
    Replies
    7
    Views
    1,460

    oh yeh i see sorry. i had the &name but i took it...

    oh yeh i see sorry. i had the &name but i took it out because name didnt use one, didnt know arrays didnt need one. sorry.

    thankyou.
  12. Thread: lil prob

    by psycho88
    Replies
    7
    Views
    1,460

    sorry for posting that many ill cut down heh. ...

    sorry for posting that many ill cut down heh.

    but it is different as it doesnt work... ?


    the scanf( "%d" , age ); is right isnt it?
    if ( age == 17 ) {
    printf ( "im that age too\n" ); }
    ...
  13. Thread: lil prob

    by psycho88
    Replies
    7
    Views
    1,460

    lil prob

    thanks for the help sunny n sly in the last post but salem locked it so i have to make a new one for the other problem... :/

    it works, but how to i get it to tell them what age they r if its not...
  14. Thread: is this right

    by psycho88
    Replies
    5
    Views
    1,134

    thanks it works now. but when i type something...

    thanks it works now.

    but when i type something other than Reece, how do i get it to say, your name is "....." and same with age ?

    + when it says enter your name the thing u type starts right at...
  15. Thread: is this right

    by psycho88
    Replies
    3
    Views
    1,027

    also it says... C:\Documents and...

    also it says...

    C:\Documents and Settings\Reece\My Documents\Untitled1.cpp In function `int main()':

    12 C:\Documents and Settings\Reece\My Documents\Untitled1.cpp `reece' undeclared (first...
  16. Thread: is this right

    by psycho88
    Replies
    3
    Views
    1,027

    is this right

    #include <stdio.h>

    int main()

    {

    int age;
    int name;

    printf( "enter your name" );
  17. Thread: is this right

    by psycho88
    Replies
    5
    Views
    1,134

    is this right

    #include <stdio.h>

    int main()

    {

    int age;
    int name;

    printf( "enter your name" );
  18. Replies
    19
    Views
    2,575

    done it, geez the results a bit... ummm... you...

    done it, geez the results a bit... ummm... you know.

    i thought of adding getchar(); but wasnt sure, also i didnt see you say it lol.

    thanks.

    reece.
  19. Replies
    19
    Views
    2,575

    after 12, it just quits. i thought return...

    after 12, it just quits.

    i thought return keeps it open...
  20. Replies
    19
    Views
    2,575

    it works not, but it dont say table of monthly...

    it works not, but it dont say table of monthly rainfall.

    it says enter this months, then last months... then assume this month is last month.. keeps repeating....
  21. Replies
    19
    Views
    2,575

    yeh, it compiles but no run... even in my...

    yeh, it compiles but no run...

    even in my docs, where i save it, there isnt an ex, its just a source file... how do i run it?

    reece.
  22. Replies
    19
    Views
    2,575

    still nothing. in Dev C++... i click NEW,...

    still nothing.

    in Dev C++... i click NEW, PRJECT.. shall i choose WINDOWS APPLICATION or something else?

    i compile fine, run... nothing happens, even if i click the ex in folder. :(
  23. Replies
    19
    Views
    2,575

    cheers mate, dint make sense at first lol. ...

    cheers mate, dint make sense at first lol.

    btw, how do u get it to run, this code compiles but dont run, nothing will run that i do so i try a code thats been used by ppl n it still dont run.. ne...
  24. Thread: nothing works

    by psycho88
    Replies
    2
    Views
    1,523

    nothing works

    hi, whenever i do a tutorial, or even my tiny lil codes it wont run...

    i even copied a code out of the post about help clean this up, it compiles but dont run.

    annoying me really bad because...
  25. Replies
    19
    Views
    2,575

    sorry if this post is old and dead, but whats %lf...

    sorry if this post is old and dead, but whats %lf mean ? ive had %d and %s but not %lf.

    sorry but it confused me, i understand the rest of the code.
Results 1 to 25 of 34
Page 1 of 2 1 2