Forum: C++ Aug 6th, 2008 |
| Replies: 3 Views: 801 the article about the .bmp file format was useful enough. Thanks! |
Forum: C++ Aug 6th, 2008 |
| Replies: 18 Views: 1,583 it is some work to write (bool) in front, but al least no errors :) |
Forum: C++ Aug 5th, 2008 |
| Replies: 18 Views: 1,583 i cant type cast with this compiler |
Forum: C++ Aug 5th, 2008 |
| Replies: 3 Views: 801 I start a new thread about this. I need just a piece of code that reads a bmp file. I NEED this. Every program i made used custom graphic files, and a very unpractical graphic editor made by me .... |
Forum: C++ Aug 5th, 2008 |
| Replies: 18 Views: 1,583 i tried just to make my code writing more efficient, i also used dev c++ a lot so i got used with bool
i understand that my compiler returns this:( x || y ) as an int type, so it automatically ... |
Forum: C++ Aug 5th, 2008 |
| Replies: 18 Views: 1,583 you didn't understand, i said that i made my custom bool type |
Forum: C++ Aug 4th, 2008 |
| Replies: 18 Views: 1,583 i use an older compiler, borland c++ 3.1 and it doesn't have the bool variable type so i made my own bool type
enum bool
{
false = 0, true
};
but always when i try to make... |
Forum: C++ Aug 3rd, 2008 |
| Replies: 15 Views: 6,432 here is a function to do this
//limi is the inferior limit of the range
//lims is the superior limit of the range
int random( int limi, int lims )
{
return ( rand() % ( lims - limi ) ) +... |
Forum: C++ Aug 3rd, 2008 |
| Replies: 1 Views: 521 can more variables have the same value in an enum ?
eg.
enum boolean
{
true = 1, false = 0, TRUE = 1, FALSE = 0
}; |
Forum: C++ Jul 29th, 2008 |
| Replies: 8 Views: 754 for each step display each pixel as a a square made out of pixels that grows with each step
let me explain :
R = red
B = blue
Y = yellow
G = green
step 0: |
Forum: Posting Games Jul 29th, 2008 |
| Replies: 164 Views: 16,430 i also know to prove that 1 = 2. it's true |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 1,429 Views: 114,105 Yes
Did you ever punch your PC ? |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 3,185 Views: 251,966 |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 164 Views: 16,430 no
Does 1 + 1 equal 2 ? :D |
Forum: C++ Jul 28th, 2008 |
| Replies: 10 Views: 3,254 is this thread helpful ? http://www.daniweb.com/forums/thread17496.html
i tried this one
all i got were negative values.
could it work ? |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 325 Views: 37,021 |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 301 Views: 35,707 Sony Ericsson
sports car or motorcycle |
Forum: Posting Games Jul 28th, 2008 |
| Replies: 2,038 Views: 145,532 Unhappy beaver's with their offspring stopped spanking New Zealand polices and failed to annex Australia. |
Forum: C++ Jul 28th, 2008 |
| Replies: 10 Views: 3,254 I have to mention that i use Borland 3.1 :D, it's quite old, but i use it very much, it supports pascal-like graphics. I also use Dev C++. I make the game in Borland 3.1. i would like a code for... |
Forum: C++ Jul 28th, 2008 |
| Replies: 7 Views: 823 u should try this:
cin.getline( toolName, 20, '\n' ) |
Forum: C++ Jul 28th, 2008 |
| Replies: 10 Views: 3,254 I kinda want to do it my self , no DirectX. I want some help like a piece of code to explain, something more explicit than the Wikipedia article. |
Forum: C++ Jul 27th, 2008 |
| Replies: 10 Views: 3,254 I 'm making a game in C++ and I need some help, I want to display a bmp image. I want to read a a bmp file and save the color ids in a matrix. Could you please help me. :) |