![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
throw bone |
a b
Member #8,092
December 2006
|
Jonatan Hedborg
Member #4,886
July 2004
![]() |
I think this is a good place for a "RTFM". I suggest looking under "text output".
|
a b
Member #8,092
December 2006
|
text output<<eye it doesn't run |
TotalControl
Member #8,078
December 2006
|
You could use something like: |
Archon
Member #4,195
January 2004
![]() |
Don't use iostream anyway ( << and >> and cout and cin), instead, use stdio (printf("hello"); ) But in Allegro, use textprintf_ex |
a b
Member #8,092
December 2006
|
OH noooo !!! this is similar to language c but this is not similar to language c ++ - why ? |
Jonatan Hedborg
Member #4,886
July 2004
![]() |
What does that even mean? Allegro is a C library.
|
Archon
Member #4,195
January 2004
![]() |
Quote: this is similar to language c but this is not similar to language c ++ - why ? Because iostream style stinks, and I use C++. |
a b
Member #8,092
December 2006
|
So I have to use language C and I can not use c ++ ? |
Archon
Member #4,195
January 2004
![]() |
C++ is backwards compatible with C. |
GullRaDriel
Member #3,861
September 2003
![]() |
a b, you really need to go watch what is C and what is C++, after what go back to allegro library. Tons of people here use allegro with C++ or C. You can use all C functions in a C++ program. What ? hahem ! Weird... "Code is like shit - it only smells if it is not yours" |
a b
Member #8,092
December 2006
|
I know c++ very well but library allegro is strange |
Jonatan Hedborg
Member #4,886
July 2004
![]() |
Has the definition of "very well" changed since i last checked?
|
a b
Member #8,092
December 2006
|
Why can't I use cin and cout with using library allegro - it is strange ? |
Archon
Member #4,195
January 2004
![]() |
Quote: Why can't I use cin and cout with using library allegro - it is strange ? Those are for the CONSOLE and not for the Allegro window. |
Fladimir da Gorf
Member #1,565
October 2001
![]() |
You can, but they output to the console, not to the main window. OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
a b
Member #8,092
December 2006
|
thanks you |
GullRaDriel
Member #3,861
September 2003
![]() |
a b-corrected- said: I know how to ask very well but my knowledge about programming is strange
Do not take it hard, I am just joking "Code is like shit - it only smells if it is not yours" |
a b
Member #8,092
December 2006
|
My english isn't so good. Could you say me what is wrong : I have got table of size= 11. I am on field number 6, automically throw bone for example 4 and press l (left) so I am on field number 2, automically throw bone for example 3 and press l (left) so I am on field number 10, automically throw bone for example 4 and press r (right) so I am on field number 3 - my code in c++ is good but programm print very unattractively text - so what is vrong ??:
|
m c
Member #5,337
December 2004
![]() |
maybe this is (just a little bit) better?
It is still quite ugly. what i think that you were forgetting is that you were NOT clearing the screen before you wrote to it again. So every time through that while loop, you were printing on top of the text that was still on there from last time. (\ /) |
a b
Member #8,092
December 2006
|
thanks, but can't I clearing screen easier ? |
m c
Member #5,337
December 2004
![]() |
yes, you could just (\ /) |
Archon
Member #4,195
January 2004
![]() |
Quote: thanks, but can't I clearing screen easier ? You don't clear the 'screen', you should clear the 'backbuffer' which should be as big as the screen. |
BAF
Member #2,981
December 2002
![]() |
Why are you clearing the backbuffer to white? Usually you just clear_bitmap and put it to black. And, as Archon said, you don't need to clear the screen. |
X-G
Member #856
December 2000
![]() |
Guys, this is a lost cause. Just... do something better. -- |
|
1
2
|