Search:

Type: Posts; User: ArseMan

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,624

    Change if (a >= 'a' || a

    Change

    if (a >= 'a' || a <= 'z')

    to

    if (a >= 'a' && a <= 'z')
  2. Replies
    4
    Views
    1,142

    Why don't you just use Lcc for your resource...

    Why don't you just use Lcc for your resource editor and an other compiler for c++.
  3. Thread: tictactoe

    by ArseMan
    Replies
    4
    Views
    1,105

    In your grid array: char grid[3][4]; you...

    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].
  4. Replies
    6
    Views
    1,808

    Where are you declaring your variables. Because...

    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,...
  5. Well the modulus operator (%) returns the...

    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...
  6. Replies
    2
    Views
    2,358

    At the top of your code under all your include...

    At the top of your code under all your include files put this:

    #define CDS_FULLSCREEN 4

    this should fix it.
  7. Replies
    3
    Views
    1,236

    Umm.... why would you use openGL to program for...

    Umm.... why would you use openGL to program for windows its a graphics programming library and has nothing to do with windows.
  8. Replies
    3
    Views
    33,362

    There actually is a sleep function you just have...

    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...
  9. oops!

    oops I forgot to sign in that was me who posted that!
  10. Show more of your code because that statement...

    Show more of your code because that statement compiles fine for me and im using Dev-c++.
  11. Change: cout

    Change:

    cout << "Too many... can't be more than ";<<max_r<<" !";

    to

    cout << "Too many... can't be more than "<<max_r<<" !";
  12. Replies
    13
    Views
    1,653

    Put this in your code: case WM_PAINT: { ...

    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.
  13. Thread: <windows.h>?

    by ArseMan
    Replies
    6
    Views
    1,241

    Well for windows programming tutorials you can go...

    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...
  14. Replies
    10
    Views
    1,790

    change: int main() { { ...

    change:



    int main()
    {
    {
    int b = 0;//B is the number 0
    int z = 25;
    int w = 5;
  15. Poll: Well I prefer OpenGL, but thats because its the...

    Well I prefer OpenGL, but thats because its the only one that I know.
  16. Change: lowestSales(salesTotAry[0], salesPer);...

    Change:

    lowestSales(salesTotAry[0], salesPer);

    to either

    lowestSales(&salesTotAry[0], salesPer);

    or
  17. Thread: OpenGL

    by ArseMan
    Replies
    1
    Views
    1,448

    Here's some: www.opengl.org...

    Here's some:

    www.opengl.org
    http://nehe.gamedev.net/
  18. Ok first what are the two errors? Second, to...

    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...
  19. Its cd ex: cd C:\Borland\Bcc55\bin

    Its cd
    ex:

    cd C:\Borland\Bcc55\bin
  20. To compile go to msdos prompt and make sure that...

    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...
  21. The bin directory is the folder inside of your...

    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...
  22. Replies
    13
    Views
    3,966

    To compile something with borland just go to your...

    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...
  23. Thread: Square Roots

    by ArseMan
    Replies
    2
    Views
    923

    Use the sqrt(); function in math.h this will take...

    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
  24. Replies
    5
    Views
    1,611

    You should also change: else if (strcmp(...

    You should also change:

    else if (strcmp( pNumberStringPtr, "ONE" ) = 0 )

    to

    else if (strcmp( pNumberStringPtr, "ONE" ) ==0 )
  25. Thread: Basic C++ q's

    by ArseMan
    Replies
    5
    Views
    1,408

    To clear the contents of a char just set all the...

    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'; ...
Results 1 to 25 of 61
Page 1 of 3 1 2 3