Change
if (a >= 'a' || a <= 'z')
to
if (a >= 'a' && a <= 'z')
Type: Posts; User: ArseMan
Change
if (a >= 'a' || a <= 'z')
to
if (a >= 'a' && a <= 'z')
Why don't you just use Lcc for your resource editor and an other compiler for c++.
In your grid array:
char grid[3][4];
you are trying to access the elements 3 and 4 but they don't exist because the array starts at [0][0] and ends at [2][3].
Where are you declaring your variables. Because if they' re declared in your class you can't assign them a value right after you declare them, you have to use a function, such as your constructor,...
Well the modulus operator (%) returns the remainder of a divison so 5 % 2 is equal to 1 because 5/2 is equal to 2 remainder 1. When you modulus a number by ten it returns the value of the right-most...
At the top of your code under all your include files put this:
#define CDS_FULLSCREEN 4
this should fix it.
Umm.... why would you use openGL to program for windows its a graphics programming library and has nothing to do with windows.
There actually is a sleep function you just have to include windows.h to use it.
#include <windows.h>
int main()
{
Sleep(1000); // this will make the program pause for 1000 milliseconds...
oops I forgot to sign in that was me who posted that!
Show more of your code because that statement compiles fine for me and im using Dev-c++.
Change:
cout << "Too many... can't be more than ";<<max_r<<" !";
to
cout << "Too many... can't be more than "<<max_r<<" !";
Put this in your code:
case WM_PAINT:
{
// draw bitmap to window
}
break;
the WM_PAINT message is sent to your window every time your window needs repainting.
Well for windows programming tutorials you can go to http://www.winprog.org/ they have some good ones.
Windows.h is basically the header file that contains all of the functions that you need to...
change:
int main()
{
{
int b = 0;//B is the number 0
int z = 25;
int w = 5;
Well I prefer OpenGL, but thats because its the only one that I know.
Change:
lowestSales(salesTotAry[0], salesPer);
to either
lowestSales(&salesTotAry[0], salesPer);
or
Here's some:
www.opengl.org
http://nehe.gamedev.net/
Ok first what are the two errors?
Second, to make a cpp file you can either save it as a *.txt file and rename it to a *.cpp file or when your saving it type in the name plus the extension and put...
Its cd
ex:
cd C:\Borland\Bcc55\bin
To compile go to msdos prompt and make sure that the current directory is in your bcc55\bin folder and type:
bcc32 filename
replace filename with the name of the file that you want to compile...
The bin directory is the folder inside of your borland\bcc55 folder wich contains the compiler and linker. To set it up follow the instrunctions. Just create the .cfg files ( a .cfg file is just a...
To compile something with borland just go to your command prompt and type:
bcc32 filename
and replace filename with the name of the file that you want to compile. Make sure that the file you...
Use the sqrt(); function in math.h this will take a number and return its square root.
#include <math.h>
double root;
root = sqrt(16); // this will give you the square root of 16
You should also change:
else if (strcmp( pNumberStringPtr, "ONE" ) = 0 )
to
else if (strcmp( pNumberStringPtr, "ONE" ) ==0 )
To clear the contents of a char just set all the elements of it to become null-terminating characters ('\0')
for ex:
char cityCode[4];
for (int x = 0; x < 4; x++)
cityCode[x] = '\0'; ...