Search:

Type: Posts; User: Mecnels

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    132
    Views
    365,016

    Sticky: Comments are welcome

    OS - WindowsXX

    This is my very first game _ very similar to the well known game 'Stratego':

    http://www.geocities.com/c_pruell/MecnelsTactics.zip

    I added a short description of the game to...
  2. Replies
    4
    Views
    947

    Pointer to a class as parameters

    class A{}

    class B{
    A obj1; // class B contains an object of the class A
    public:
    void GetAddressForA (A*&xxx); // ('a reference on a pointer to
    // objects of the class A' - Is a parameter...
  3. Replies
    4
    Views
    1,377

    ooops

    ooops forgot to mention you need to press 'E' at any time to immediately stop it. sorry.

    Thx to you all, I've found a good resource due to your help.
    :cool:
  4. Replies
    4
    Views
    1,377

    Collect Coins & Score System

    This is my prog's code:
    http://www.geocities.com/c_pruell/twoyearsago.txt
    And this is the program, to some extent I'm satisfied with this simple 'game':...
  5. Thread: goto again...

    by Mecnels
    Replies
    4
    Views
    2,604

    do while

    the part after

    int result;

    could be written like this:

    do{
    cin >> number;
    result=search(id_nums,18,number);
    if(result==-1)
  6. Replies
    2
    Views
    1,456

    Don't believe them!

    Some here will tell you using graphics and sound is sooo difficult, and they will tell you to learn the basics of C++ before even thinking of graphics. Don't believe them! It is not sooo difficult....
  7. Thread: Fractions

    by Mecnels
    Replies
    8
    Views
    2,080

    Inside your fraction-class

    You must declare friends inside the fraction class, think you are the compiler and get to this line

    friend fraction operator+(fraction first,fraction second);

    The compiler can't decide who's...
  8. Replies
    4
    Views
    1,529

    Thanks.

  9. Replies
    15
    Views
    10,080

    Re: Re: vfp

    Please excuse me if I offended you. I didn't want this.
    But separating abstract classes and virtual functions is though impossible.
  10. Replies
    4
    Views
    1,529

    Re: Programming Sport?

    Oh. I was interested in how long (hours) would it take you to do this:

    // A Fullscreen DirectDraw Surface, black (maybe 800x600)
    // At the center of the screen stationary: The Sun (make a...
  11. Replies
    15
    Views
    10,080

    vfp

    to you: hundreds of virtual declarations cause hundreds of 4-byte-of-memory-consuming Virtual Function Pointers, if you have heard of them. (Don't do this, especially if the virtual functions in the...
  12. Replies
    4
    Views
    1,529

    Programming Sport?

    Hi.
    As I am an amateur programmer, my attitude to programming is 'sportsmanlike', as other people like the challenge of a tennis match or beating the world record in non-stop singing. Do you know of...
  13. Replies
    7
    Views
    1,262

    Try to realize a complex game!

    If you have been programming in C++ for a while and know the basics (What is a pointer? What is a function? What does the operator 'new' do? What is a class?) it is a good idea to start windows...
  14. Replies
    15
    Views
    10,080

    To vasanth

    // don't write hundreds of virtual function declarations into your
    // abstract base class, try this:

    template <typename T> StandardReturnValue Fn ( T ){
    }

    // this is usually my first thought...
  15. Replies
    3
    Views
    9,901

    thx adrianx(?)

    This really helped me out of my misery.
  16. Replies
    15
    Views
    10,080

    Abstract classes support ,human way of thinking';...

    Abstract classes support ,human way of thinking'; example: say your sister is in the kitchen, and you are somewhere else in the house (maybe programming an abstract class). If your sister tells you...
  17. Thread: Fractions

    by Mecnels
    Replies
    8
    Views
    2,080

    Operators like + or / should be friends of your...

    Operators like + or / should be friends of your fraction class.
    The easiest example where + as a member function fails is an expression like 7+somefraction. "7" can't be treated as a fraction...
  18. Replies
    3
    Views
    9,901

    WM_SETFONT, Static Control

    As I learned at the ,MSDN library' one can send a WM_SETFONT message to a Static control. My problem: There are dozens of pages dealing with fonts there, and I don't intend to create a font. I would...
  19. Replies
    2
    Views
    2,431

    Dialog Box Resources

    So I used a dialog box resource editor to create a template resource for my win32 application. I wrote this code:


    #include<windows.h>
    #include "resource.h" // defines DD_FORMVIEW


    LRESULT...
  20. Replies
    1
    Views
    1,761

    VC++ 6 Menu resource question

    When clicking the Menuitem "New" on my IDE, I can choose to create a new Resource File or a new Resource Script.
    I have heard one can create Menu Resources this way, and the name of the resource can...
  21. Replies
    4
    Views
    1,105

    Videomemory question

    How many bytes of Videomemory does a 800x600x16bit surface need ?
  22. Thread: VBA or VC++ ?

    by Mecnels
    Replies
    1
    Views
    933

    VBA or VC++ ?

    Imagine you have to write a program which fulfills this task:
    Example for input:
    (1,3,5) + s x (1,-1,-4) + t x (4, 3, 7) (A plain given in this form)
    The result presented by the program should be...
  23. Replies
    1
    Views
    1,886

    Apache Web Server

    So I got an Apache Web Server, installed it on my PC, and, though I've got a dynamically changing IP-address, my folder htdocs is accessible from the internet (what I see is an index.html page). I...
  24. Replies
    1
    Views
    1,084

    Question Frames

    How to calculate the amount of videomemory a 800x600 16-bit surface uses?
    Also, if a game runs with 50 frames (screen updates) per second: Would you say this is fast or slow? How many different...
  25. Replies
    3
    Views
    1,149

    What is name*=""?

    I've heard of char and LPSTR. What is name*=""? Besides, default-parametres must be assigned from right to left, I think.
Results 1 to 25 of 60
Page 1 of 3 1 2 3