Thanks, but the one I did works ok I think. Maybe I'll try to improve it later on, though.
Type: Posts; User: hsv
Thanks, but the one I did works ok I think. Maybe I'll try to improve it later on, though.
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...
For this to work you'd still need to pass by ref.
void func(double &number[])
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...
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.
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!
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.
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.
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++)
{...
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
Thanks! works perfectly now..
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 =...
Ok, I'll check it out.. thanks!
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;