Create Brick Game in Turbo C++

This article will show you the creation of BRICK GAME in Turbo C++. From this source code you will know how to:

  • Use Graphic Mode in Turbo C++
  • Use Mouse Pointer in Turbo C++
  • Use OOP in Turbo C++
  • Create Brick Game in Turbo C++

Read More…

How to Create Scrolling List in Turbo C++?

This sample show you how to create scrolling list in Turbo C++.
In this sample you will see:

  • Scrolling List (Using Arrow Key)
  • Mathematics Calculation
  • Sample of Tank Game

Read More…

Turbo C++: How to Create Menu like in Turbo C++?

This sample is coded in Turbo C++ programming language guide you to create Menu in Turbo C++ (Turbo C++ menu-like). In this example you know how to:

  • Create Menu in Turbo C++
  • Calculate PPCM of N numbers
  • Use of Graphics mode in Turbo C++
  • Convert Number from Binary to Decimal, Decimal to Binary, and others

Read More…

How to Create English Typing in Turbo C++?

  • Draw keyboard layout in Turbo C++ Programming Language
  • Get key code and match the key in Keyboard Layout
  • Move letter one by one in a whole sentence to be typed
  • Make different type of typing style (3 styles including here)

Read More…

How to Create Firework in Turbo C++?

This sample will show you the uses of graphic mode in Turbo C++ on how to create five animated fireworks (Use putpixelfunction from #include<graphics.h>).

Read More…

Create Napoléon Fortune Teller in Turbo C++

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


Click for more detail


Ref: www.setha.info

Create Calendar and Clock in Turbo C++ Graphic Mode

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++

Click on Image Below to Download Source Code


Ref: www.setha.info

Create Clock in Turbo C++

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.

Click on image below to download full source code:



Ref: www.setha.info

Create Calculator in Turbo C++ with Graphics Mode

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MAX_LONG 2147483647
#define PI 3.1415926536

char buf[80];
void output(char *);
void OUTPUT(long double &);

……………………………………

void main(){

int gdriver = DETECT, gmode, errorcode;
int i ,run1=0, run2=0;
int a,k=0,l,i1=0,i2,k1=0 ,length , result=0,th=0,step;
int d[30] , Back=0 ,index = 0, NamePoint=0,ind=0,mcl=0;
long double p=0, b[2] = {0,0}, t ;
char NumBer[30],*num[30],ch,buf[80];

/* initialize graphics mode */
initgraph(&gdriver, &gmode, “C:\\TC\\BGI”);

/* read result of initialization */
errorcode = graphresult();

if (errorcode != grOk)  /* an error occurred */
{
printf(“Graphics error: %s\n”, grapherrormsg(errorcode));
printf(“Press any key to halt:”);
getch();
exit(1);             /* return with error code */

}

……………………………………

Download Source Code

Draw Cambodian Map in Turbo C++

This map is not a real map, it uses for education only.

#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <string.h>
#include <graphics.h>
#include <stdlib.h>
#include <bios.h>
#include <ctype.h>
#include <dos.h>

union REGS in_regs , out_regs ;

អានលម្អិត សូមចុចភ្ជាប់ខាងក្រោម
http://www.krookroo.com/programming-languages/turbo-ccc/89-it-cpp-03.html

Follow

Get every new post delivered to your Inbox.