SETHA SITE INFORMATION

  • Increase font size
  • Default font size
  • Decrease font size
C/C++

How to Create Napoléon Fortune Teller in Turbo C++

E-mail Print PDF

This sample code shows you how to:

  • use graphic mode in Turbo C++
  • use mouse pointer in Turbo C++
  • create windows-like interface (button, textbox, form, scroll bar, etc.)
  • generate code for the requested name for fortune teller


  • Download Sample Code
     

    How to Create Calendar and Clock in Turbo C++ Graphic Mode

    E-mail Print PDF

    This is a sample of Turbo C++ programming language show you about:

    • How to use graphic mode in Turbo C++
    • How to create calendar
    • How to create real time clock
    • How to use mouse pointer
    • How to draw windows-like interface in Turbo C++



    Download Source Code
     

    How to Create Dictionary English-English in Turbo C++

    E-mail Print PDF

    This article shows how to create dictionary of English-English-Khmer in Turbo C++ programming language. From this sample, you will see how to:

    • Use graphic mode in Turbo C++
    • Use mouse pointer in Turbo C++
    • Create user interface looks seemly like the GUI (graphic user interface) in windows application too like button style, menu style, scroll bar, etc. which are fully drawn by coding in Turbo C++.
    • Use Object Oriented Programming in Turbo C++



    Sample Code of Class Mouse Pointer

    /* Class of Mouse pointer */
    union REGS inregs,outregs;
    class mouseobj {
    	public:
    	   int  init();
    	   void show( void );
    	   void hide( void );
    	   void horiz_limit( int minx, int maxx );
    	   void vert_limit( int miny, int maxy );
    	   int  press();
    	   int post( int left, int top, int right, int buttom);
    	     };
    int mouseobj::init(){
    	inregs.x.ax = 0;
    	int86(0x33,&inregs,&outregs);
    	return outregs.x.ax;
    		     }
    
    void mouseobj::show(){
    	inregs.x.ax = 1;
    	int86(0x33,&inregs,&outregs);
    		    }
    
    Download Sample Here
     

    Turbo C++ Programming: Create Clock in Turbo C++

    E-mail Print PDF

    This is a sample code of Turbo C++ programming language in graphic mode use to create Clock using Date and Time of computer machine. Relating to this sample, I use some of mathematics theories such as cosine and sine.


    Press <ESC> key to quit the application.
     
    Download Full Source Code
     

    Turbo C++ Programming: Create Calendar in Turbo C++

    E-mail Print PDF

    This sample code is the creation of Calendar which the holiday’s date based on Cambodian holiday.


    Download Full Source Code
     


    Page 4 of 5