For Minimizing all opened window , i.e, to show desktop
Tutorials | Tips and Trips | Engineering Concepts | Recent Technology | Invention and Innovation | and much more
Sunday, September 2, 2012
Saturday, September 1, 2012
Car Race Game in C++ and C Graphics
Car Race
//*************************************************************************////*************************************************************************//
// -*- "Program For Game of Car Racing." -*- //
//-------------------------------------------------------------------------//
// -*- Language :- C-Graphics & C++. -*- //
//-------------------------------------------------------------------------//
// -*- Compilier :- Turbo C & C++. -*- //
//-------------------------------------------------------------------------//
// -*- By- Vikrantsingh Bisen. -*- //
//*************************************************************************//
//*************************************************************************//
//*************************************************//
// -*- Including Header File -*- //
//*************************************************//
#include <iostream.h>
#include <graphics.h>
#include <process.h>
#include <iomanip.h>
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>
#include <time.h>
#include <dos.h>
//*************************************************//
// -*- Class For Attractive look -*- //
//*************************************************//
Kaun Banega Crorepati Game in C - Graphics and C++
Kaun banega Crorepati
//*************************************************************************////*************************************************************************//
// -*- "Program For Game of K.B.C." -*- //
//-------------------------------------------------------------------------//
// -*- Language :- C-Graphics & C++. -*- //
//-------------------------------------------------------------------------//
// -*- Compilier :- Turbo C & C++. -*- //
//-------------------------------------------------------------------------//
// -*- By- Vikrantsingh Bisen. -*- //
//*************************************************************************//
//*************************************************************************//
//*************************************************//
// -*- Including Header File -*- //
//*************************************************//
#include<iostream.h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<time.h>
#include<dos.h>
Hotel / Lodging Management software / program in C C++ and C Graphics
Lodging Management
//*************************************************************************////-------------------------------------------------------------------------//
// -*- PROGRAM FOR HOTEL (i.e.,Lodging) MANAGEMENT. -*-
//-------------------------------------------------------------------------//
// -*- Language :- C & C++.
//-------------------------------------------------------------------------//
// -*- Compiler :- Turbo C & C++.
//-------------------------------------------------------------------------//
// -*- Designed by :- Vikrantsingh Bisen
//-------------------------------------------------------------------------//
//*************************************************************************//
/*-------------------------- Header Files -------------------------------*/
#include<iostream.h>
#include<fstream.h>
#include<graphics.h>
#include<process.h>
#include<string.h>
#include<stdio.h>
#include<conio.h>
#include<time.h>
#include<dos.h>
void intro (void);
class Admin;
class customer;
class Staff;
class Extra;
class Room;
Medical Shop Automation Software / Program in C C++ and C Graphics with Mouse Programing
Tested with : Windows XP and turbo C Compiler
Medical Shop Automation
//************************************************************************//------------------------------------------------------------------------------------------
//
// -*- VIRTUAL SOFTWARE MACHINE -*-
//
//------------------------------------------------------------------------------------------
// -*- Language.: C & C++. -*- Compiler.: Turbo C & C++. -*-
// -*- Designed by.: Vikrantsingh.M.Bisen [vikrantsingh.it@gmail.com] -*-
//------------------------------------------------------------------------------------------
//************************************************************************
//************************************************************************
// -*- Including Header File -*-
//************************************************************************
#include<iostream.h>
#include<graphics.h>
#include<iomanip.h>
#include<process.h>
#include<fstream.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<time.h>
#include<dos.h>
//************************************************************************//
// -*- CLASSES IN THE PROGRAM -*- //
//************************************************************************//
class Home;
class Display;
class Admin;
class Database;
class Bill;
class CRM;
how to make a bootable perndrive Operating system (OS)
Insert Pen-drive, Open command prompt and type following command one after another.
1. diskpart
1. diskpart
2. list disk
3. select disk X
4. clean
5. create partition primary
6. format fs=fat32 quick
7. active
8. assign
9. exit
Now copy your operating system to pendrive.
(Avoid burning CD/DVD for every os...... use bootable pendrive, Goo Greennn)
How to create Extensible Application in Java
import java.io.* ;
class Store {
int x ;
void write(String data) {
x = 10 ;
}
String read( ) {
x = 10 ;
return "Cannot read." ;
}
}
class FileStore extends Store {
int y ;
void write ( String data ) {
System.out.println ( data + " written to the file" ) ;
}
String read( ) {
return "Hello read from the file" ;
}
}
class DatabaseStore extends Store {
int z ;
void write ( String data ) {
System.out.println ( data + " written to the database" ) ;
}
}
class DynamicArray {
String items[ ] = new String[0] ;
void add ( String item ) {
String temp[] = new String[items.length+1] ;
for ( int i = 0 ; i < items.length ; i++ ) {
temp[i] = items[i] ;
}
items = temp ;
items[items.length-1] = item ;
}
int getCount( ) {
return items.length ;
}
String getItem ( int index ) {
return items[index] ;
}
}
class UserInteraction {
Store takeInput( ) {
DynamicArray names = new DynamicArray( ) ;
try {
File f = new File(".") ; // current directory
String[] files = f.list( ) ; // get all the files
for ( int i = 0 ; i < files.length ; i++ ) {
if ( files[i].contains(".class") ) { // get only .class files
Class c = Class.forName ( files[i].split(".class")[0] ) ;
if ( c.getSuperclass().getName().equals( "Store" ) )
names.add ( files[i].split(".class")[0] ) ;
}
}
// Display the menu....
for ( int i = 0 ; i < names.getCount() ; i++ ) {
System.out.println ( (i+1) + ": " + names.getItem(i) ) ;
}
java.util.Scanner scan = new java.util.Scanner(System.in) ;
int choice = scan.nextInt() ;
Class c = Class.forName ( names.getItem(choice-1)) ;
return (Store) c.newInstance( ) ;
} catch ( Exception ex ) {
System.out.println ( ex ) ;
return null ;
}
}
}
class Program {
public static void main ( String[] args ) {
UserInteraction ui = new UserInteraction( ) ;
Store f = ui.takeInput( ) ;
f.write ( "Hello" ) ;
String item = f.read( ) ;
System.out.println ( item ) ;
}
}
class XMLStore extends Store {
void write ( String data ) {
System.out.println ( data + " written to XML file." ) ;
}
String read( ) {
return "Hello read from the XML file" ;
}
}
class Store {
int x ;
void write(String data) {
x = 10 ;
}
String read( ) {
x = 10 ;
return "Cannot read." ;
}
}
class FileStore extends Store {
int y ;
void write ( String data ) {
System.out.println ( data + " written to the file" ) ;
}
String read( ) {
return "Hello read from the file" ;
}
}
class DatabaseStore extends Store {
int z ;
void write ( String data ) {
System.out.println ( data + " written to the database" ) ;
}
}
class DynamicArray {
String items[ ] = new String[0] ;
void add ( String item ) {
String temp[] = new String[items.length+1] ;
for ( int i = 0 ; i < items.length ; i++ ) {
temp[i] = items[i] ;
}
items = temp ;
items[items.length-1] = item ;
}
int getCount( ) {
return items.length ;
}
String getItem ( int index ) {
return items[index] ;
}
}
class UserInteraction {
Store takeInput( ) {
DynamicArray names = new DynamicArray( ) ;
try {
File f = new File(".") ; // current directory
String[] files = f.list( ) ; // get all the files
for ( int i = 0 ; i < files.length ; i++ ) {
if ( files[i].contains(".class") ) { // get only .class files
Class c = Class.forName ( files[i].split(".class")[0] ) ;
if ( c.getSuperclass().getName().equals( "Store" ) )
names.add ( files[i].split(".class")[0] ) ;
}
}
// Display the menu....
for ( int i = 0 ; i < names.getCount() ; i++ ) {
System.out.println ( (i+1) + ": " + names.getItem(i) ) ;
}
java.util.Scanner scan = new java.util.Scanner(System.in) ;
int choice = scan.nextInt() ;
Class c = Class.forName ( names.getItem(choice-1)) ;
return (Store) c.newInstance( ) ;
} catch ( Exception ex ) {
System.out.println ( ex ) ;
return null ;
}
}
}
class Program {
public static void main ( String[] args ) {
UserInteraction ui = new UserInteraction( ) ;
Store f = ui.takeInput( ) ;
f.write ( "Hello" ) ;
String item = f.read( ) ;
System.out.println ( item ) ;
}
}
class XMLStore extends Store {
void write ( String data ) {
System.out.println ( data + " written to XML file." ) ;
}
String read( ) {
return "Hello read from the XML file" ;
}
}
Subscribe to:
Posts (Atom)