|
cin |
Neil Black
Member #7,867
October 2006
|
using allegro keyboard functions kills cin. It is possible, though time-consuming and slightly complicated (especially for noobs like me) to make a routine to recieve input, but why should we have to? Why does allegro not include a replacement function for cin? It supplies, like, a dozen for cout, so why not cin? It's just confusing.
|
CGamesPlay
Member #2,559
July 2002
|
1.) This is not a comment about Allegro.cc -- Ryan Patterson - <http://cgamesplay.com/> |
GullRaDriel
Member #3,861
September 2003
|
Huh dude. "Code is like shit - it only smells if it is not yours" |
Neil Black
Member #7,867
October 2006
|
Okay, I'll shut up... right after I do this ISN'T IT REALLY ANNOYING WHEN PEOPLE TYPE IN ALL CAPS?!?!?!?! oh, um, edit:
|
CGamesPlay
Member #2,559
July 2002
|
Just to make sure you understand the basic principle: You create a dialog with a textbox in it and once the dialog is dismissed read the value of the textbox. -- Ryan Patterson - <http://cgamesplay.com/> |
Matthew Leverton
Supreme Loser
January 1999
|
See gstream if you are looking for a C++ way to handle input and output with Allegro. In short, it looks like this:
I've never used it and do not know how flexible it is. Note that you'll need to build the library yourself. (Or if you are using Dev-C++, install the DevPak.) |
CGamesPlay
Member #2,559
July 2002
|
I've looked into it but if I remember correctly I found it too much overhead for too simple a task. -- Ryan Patterson - <http://cgamesplay.com/> |
Neil Black
Member #7,867
October 2006
|
Yay, I am using Dev-C++! Dev-packs really simplify things.
|
LennyLen
Member #5,313
December 2004
|
Quote: Yay, I am using Dev-C++! Dev-packs really simplify things. You can also use the Dev-paks with Code::blocks, which means you get the simplicity as well as a decent IDE.
|
Samuel Henderson
Member #3,757
August 2003
|
I tried using codeblocks back in it's RC1 stage and wasn't too impressed. That was a long time ago (seems that way at least LennyLen, has it improved much? ================================================= |
LennyLen
Member #5,313
December 2004
|
Quote: LennyLen, has it improved much? Greatly. I only just started using it recently because I also wasn't impressed when I first looked at it years ago. Now I'm glad I gave it another shot. Visual Studio is the only IDE I've ever used that is better.
|
julian_boolean
Member #8,201
January 2007
|
It's too bad gstream's input doesn't work well when your using other graphics along with it. |
|