Search:

Type: Posts; User: hsv

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,607

    Thanks, but the one I did works ok I think. Maybe...

    Thanks, but the one I did works ok I think. Maybe I'll try to improve it later on, though.
  2. Replies
    12
    Views
    1,607

    The check doesn't prevent you from typing the...

    The check doesn't prevent you from typing the same letter more than once, it just won't let you type more than one letter without releasing the key in between. When the key is released, input will be...
  3. Replies
    13
    Views
    2,911

    For this to work you'd still need to pass by ref....

    For this to work you'd still need to pass by ref.

    void func(double &number[])
  4. Replies
    12
    Views
    1,607

    Bubba: Yeah, I've seen examples of this I think....

    Bubba: Yeah, I've seen examples of this I think. Didn't know that was the reason, tho.

    lightatdawn: That's what I did, and also a check to see if the current input is the same as the last (the...
  5. Replies
    12
    Views
    1,607

    The input in question would only handle the user...

    The input in question would only handle the user typing his/her name, so speed isn't really important. I think I got directinput working alright now, tho, so no need for winAPI.
  6. Replies
    12
    Views
    1,607

    I was hoping for some other way of doing it, but...

    I was hoping for some other way of doing it, but I guess I'd have to use a C# form to avoid it.
    Thanks, though!
  7. Replies
    12
    Views
    1,607

    Read string in directdraw

    I need to read a string from the keyboard in my directdraw-game.. For all other input I've used keyboardstate, but how would I do this?
    I use c#, by the way.
  8. Thread: vectors acting up?

    by hsv
    Replies
    1
    Views
    1,043

    oh.. I guess I'm a bit too tired for this right...

    oh.. I guess I'm a bit too tired for this right now. But it actually helped posting the code here, as I could see the error right away. :)

    sorry, I'm going to take a break now.
  9. Thread: vectors acting up?

    by hsv
    Replies
    1
    Views
    1,043

    vectors acting up?

    I can't work this one out.. please help.

    I have a matrix (vector<vector>), and fill it with chars read from file.


    //-- while still stuff to read
    for(int i=0; i<=width && y<=height; i++)
    {...
  10. Replies
    10
    Views
    1,279

    If you want it done faster you could build the...

    If you want it done faster you could build the GUI in Java and use JNI.
    http://www.acm.org/crossroads/xrds4-2/jni.html
    /h
  11. Replies
    5
    Views
    1,403

    Thanks! works perfectly now..

    Thanks! works perfectly now..
  12. Replies
    5
    Views
    1,403

    I couldn't find any observer there, but I changed...

    I couldn't find any observer there, but I changed update() to take an int (id of the subject).

    Anyway.. a new problem!



    void subject::notify()
    {

    for(vector<observer>::iterator p =...
  13. Replies
    5
    Views
    1,403

    Ok, I'll check it out.. thanks!

    Ok, I'll check it out.. thanks!
  14. Replies
    5
    Views
    1,403

    observer & virtual function

    Hi ppl!

    I need to write an observer, and this is what I've got so far:



    #ifndef OB
    #define OB
    #include <iostream>
    using namespace std;
Results 1 to 14 of 14