Search:

Type: Posts; User: Gardul

Search: Search took 0.01 seconds.

  1. Thread: qustion game

    by Gardul
    Replies
    11
    Views
    1,909

    hmm qustion.. {"frist" } what do i put in the "...

    hmm qustion.. {"frist" } what do i put in the " "? would the qustion actually go in there? or just a number or something to link the qustion later?
  2. Thread: qustion game

    by Gardul
    Replies
    11
    Views
    1,909

    I just read about that actually... I will have to...

    I just read about that actually... I will have to give that a try. and yes I do use C++ Dev.. i was thinking maybe how boreland is soon.
  3. Thread: qustion game

    by Gardul
    Replies
    11
    Views
    1,909

    i really dont know much about 2d arrays. but im...

    i really dont know much about 2d arrays. but im sure inm y text book they mention it.. any more ideas or hints.
  4. Thread: qustion game

    by Gardul
    Replies
    11
    Views
    1,909

    qustion game

    im making something like jeopardy where you have qustions and such. But what i was wondering how can i do random qustions. and how should I go about making the qustions so they can be read. Dont do...
  5. Thread: time

    by Gardul
    Replies
    4
    Views
    1,086

    haha.. i got it.. thanks..

    haha.. i got it.. thanks..
  6. Thread: time

    by Gardul
    Replies
    4
    Views
    1,086

    sz[strlen(sz) - 1] = 0 what does this do? I tried...

    sz[strlen(sz) - 1] = 0 what does this do? I tried it and it says i need to declare it. and without me really knowing what it does or is, its not gonna help me learn ..chow.
  7. Thread: time

    by Gardul
    Replies
    4
    Views
    1,086

    time

    this prints the time



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

    int main(void)
    {
  8. Thread: brain fart

    by Gardul
    Replies
    6
    Views
    1,650

    I did a loop like this int grade = 1; ...

    I did a loop like this



    int grade = 1;

    int main(int argc, char *argv[])
    {

    while ( grade != 10 ){
  9. Thread: brain fart

    by Gardul
    Replies
    6
    Views
    1,650

    brain fart

    here is something simple, and im having a brain fart this after noon, I need to have text lets say cout << " hello world"; repeated 5 or more times with out me typing it a bumch of times.. I know.....
  10. Thread: itoa on Dev??

    by Gardul
    Replies
    15
    Views
    8,220

    it works for me. and i use the same DEV.

    it works for me. and i use the same DEV.
  11. Replies
    5
    Views
    1,000

    thanks sly once again :) *edit* and crazy...

    thanks sly once again :)

    *edit* and crazy norman, i did fix that before i saw your post. but thank you any way.
  12. Replies
    5
    Views
    1,000

    if ( gameStatus == WON ){ w = x * 2; ...

    if ( gameStatus == WON ){
    w = x * 2;
    cout << "You have won: " << w << endl;
    newtotal = w + total;
    cout << "You now have " << newtotal << " dollars. ";
    newtotal...
  13. Replies
    5
    Views
    1,000

    new total and carrying it over.

    what I'm looking for is this:
    to have the new total of a persons money carried over into the new game. here is some code i did with out the carrying over.



    if ( gameStatus == WON ){
    w...
  14. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    as will I :)

    as will I :)
  15. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    OMG... i cant belive i didnt figure that.. Thank...

    OMG... i cant belive i didnt figure that.. Thank you very much.. you have helped me understand this just a bit more. :) i hope you all have a good day for helping me:)
  16. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    I think when I started DEV it was on there. since...

    I think when I started DEV it was on there. since i dont remember typing it.
  17. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    what should i do? I'm semi new and dont have much...

    what should i do? I'm semi new and dont have much experence with loops. any ideas or examples would help. thanks.
  18. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    hmm i didnt even see that.. thanks for pointing...

    hmm i didnt even see that.. thanks for pointing that out...
    okay, i just took out the return 0; but, the thing is. It is still doing it. I'm now a bit lost..
  19. Thread: ending problem

    by Gardul
    Replies
    12
    Views
    1,270

    ending problem

    okay here is the problem. You see I am writing a dice rolling game. Kinda like craps. I got the dice rolling part all worked out. But the problem is, When the player wins or loses, it closes. Soa ny...
  20. Thread: undefined error

    by Gardul
    Replies
    4
    Views
    1,270

    no that isnt all my code. I didnt seem the need...

    no that isnt all my code. I didnt seem the need to post the hole thing thats all.
  21. Thread: undefined error

    by Gardul
    Replies
    4
    Views
    1,270

    undefined error

    i get keeping this error, undefined reference to Attack,Run and Defend. here is my code.


    string battleSelect;
    void Battle(); {
    cout << "You Have engaged into battle!! What will...
  22. Thread: Base Numbers

    by Gardul
    Replies
    1
    Views
    1,070

    Base Numbers

    Okay frist things frist. I am making a Text based game and need some answers. I have created a formula for hit points for races. here is the code,


    player.BaseHitPoints = (50 * 3) / 2;

    this...
  23. Thread: Qustion problem

    by Gardul
    Replies
    9
    Views
    1,718

    Thanks for the info. some one let me borrow How...

    Thanks for the info. some one let me borrow How to Program C++ by Deitel & Deitel second Edition. so far its a decent book. any reviews you all might have on this book?
  24. Thread: Qustion problem

    by Gardul
    Replies
    9
    Views
    1,718

    Thanks. by any chance u know how much the book...

    Thanks. by any chance u know how much the book costs?
  25. Thread: Qustion problem

    by Gardul
    Replies
    9
    Views
    1,718

    Qustion problem

    hello all im new here, as you all might notice. I 'm a was a Basic programmer for awile ( mostly used liberty basic) and now im moving on to C++. but I have a slight problem. Frist im using Dev c++...
Results 1 to 25 of 25