Search:

Type: Posts; User: boozy

Search: Search took 0.00 seconds.

  1. Thread: timed queston?

    by boozy
    Replies
    8
    Views
    1,340

    hmm.. thx:P but Im not 100 sure it will work.....

    hmm.. thx:P but Im not 100 sure it will work.. hehe.. if I use a loop I cant make it exit afer 10 sec. but I can make it exit if time has passed 10 sec when the user hits a key, or I can get him to...
  2. Thread: timed queston?

    by boozy
    Replies
    8
    Views
    1,340

    thats true.. never tested that program and just...

    thats true.. never tested that program and just wrote something so ppl could get some understanding af what Im trying to ask. so is not possible in c\c++ programming. was just thinking about...
  3. Thread: timed queston?

    by boozy
    Replies
    8
    Views
    1,340

    timed queston?

    hi :)

    Is it possible to make a question with a seartain time to answer it?
    like:



    char question1[20];
    cout << "What are you?: ";
    cin << question1;
  4. Replies
    5
    Views
    1,807

    try making that boadrs like char[][]={'_',...

    try making that boadrs like


    char[][]={'_', '_', '_', '_', '_', '_', '_',
    '_', '_', '_', '_', '_', '_'}

    and print it out like that on screen.
    and you can make a switch case...
  5. Replies
    1
    Views
    1,283

    sorry about the text, some of it is in norwegian.

    sorry about the text, some of it is in norwegian.
  6. Replies
    1
    Views
    1,283

    some problems with saving to a file.

    I have a problem with my saveing to a file.. I can save it but it gets saved as numbers, and strange signs..
    here is the program, a little long tho.



    #include <conio>
    #include <iostream>...
  7. Thanks.. thats what I needed;) and so much more...

    Thanks.. thats what I needed;) and so much more simple to handle then my program which the compiler dont like.
  8. yeah.. thx for the pointers but what I need is...

    yeah.. thx for the pointers but what I need is not a single word compare that would make it easy. but I need some system so that when you type "get shirt" it checked first word "get" and then what to...
  9. some problems with splitting words and variables.

    I have 2 problems, the code posted here is a commandline to a mud, it works, but not as good as it should. is there any way to make it better? some better way to split up the words into diferent...
  10. Replies
    7
    Views
    1,238

    ok.. I made this work ok.. but now I have the...

    ok.. I made this work ok.. but now I have the problem, I cant enter one word without 2 spaces.. like "exit" or "quit" "stat" etc.. my code is now:




    #include <iostream.h>
    #include <conio.h>...
  11. Replies
    3
    Views
    5,128

    If you go into the folder for boland c++, you can...

    If you go into the folder for boland c++, you can find a graffics demo there.. you can try to study it some and see if you figure it out. they change size, front, colors etc etc. as for the colour...
  12. Replies
    7
    Views
    1,238

    Thank you:P Ill try some of it out:P here is the...

    Thank you:P Ill try some of it out:P here is the mudgame tast Im working on, if you like to take a look. what I was trying to get from this thread was making all the getches into cin`s.
    if you look...
  13. Replies
    7
    Views
    1,238

    You have any example of that? a code or something...

    You have any example of that? a code or something I can look at? or some link to som place where I can more clearly understand what you mean:P thanks
  14. Replies
    7
    Views
    1,238

    2 commands seperated by a freespace?:P

    what I cant make work is having a commandline which can take 2 commands seperated by a space.. like "get potion" or "wear shirt".. its probebly as easy as anything but cant make my code work.. if...
  15. Replies
    4
    Views
    1,344

    Well, if I call randomize outside the loop, you...

    Well, if I call randomize outside the loop, you will dodge, hit or get hit all the time. the fight would have no effect:P if this is what you ment. ok.. what I ment was can I like have a comandline...
  16. Replies
    6
    Views
    1,577

    but if you have 2 functions called the same:P but...

    but if you have 2 functions called the same:P but never mind me
  17. Replies
    4
    Views
    1,344

    commandline on delay or something:P

    do{
    randomize();
    result = rand() % 15;

    sleep(1);

    if (result == 1||result == 6||result == 7)
    {
    sleep(1);
    textattr(4 << 0); cprintf("The enemy strikes you with his pow\r\n\n");
  18. Replies
    6
    Views
    1,577

    I got the same error:P but not with (void). I had...

    I got the same error:P but not with (void). I had (int) and needed (int&).. but since its void.. maby you are using some function 2 times in tha same porgram.. but then again Im still a newbie:P
  19. Replies
    3
    Views
    3,318

    hmm.. why not use a loop? should be easyer and...

    hmm.. why not use a loop? should be easyer and better to use I would think.

    [code]

    #include <iostream.h>
    #include <ctime>
    #include <cstdio>
    using namespace std;

    int main()
  20. Replies
    1
    Views
    1,044

    2 things at the same time?

    can you make 2 things work at he same time? like makeing something like this:



    main()
    {
    int min = 0, sec = 0, houre = 0, day = 0;
    while (1){

    delay(1000);
  21. Replies
    11
    Views
    1,563

    No but its the only way I have gotten the fight,...

    No but its the only way I have gotten the fight, and the rooms to work in the same program unless I had all the code in the same .cpp file.. yes I know I dont need to use that many goto in one file:P...
  22. just place a getch(); or system("pause"); at the...

    just place a getch(); or system("pause"); at the end of your program and it wont close until you hit some bottom, or you can make a loop that restarts your program at the end. include conio.h for...
  23. Replies
    11
    Views
    1,563

    well.. I am a newbie at this:P and my problem...

    well.. I am a newbie at this:P and my problem with the header file is that I use goto in my program. to go to diffrent "rooms" and fierent enemy's. and I cant type goto inside the headerfile to goto...
  24. Replies
    11
    Views
    1,563

    can I return values from some other exe file?

    Im making this bad mudgame, just to learn c++ while doing sometjhing, and I came to a problem. I have made enemies in a nother file. and I tryed using header files, bu that diddnt work like planed so...
  25. Replies
    2
    Views
    755

    need some help with defining keys.

    I have a defining problem if anyone care to help me:P
    Im trying to define diferent keys on the keyboard to do
    things in a program. but I cant make it work.


    #define K 4b
    if (K=='1')
    {i++}
    ...
Results 1 to 25 of 25