Monday, 31 December 2012

C++ PROGRamming (A pow of (B))


Use These Given Source Code And You get Your own C++ Programming File That Gives You Ans Oa A Pow Of B
Input A=2;
        b=3;
Ans Is=8;
Copy That Blue colour Source Code=====>




#include<iostream.h>
#include<math.h>
#include<conio.h>

class s
{
int a,b,c;
public:
void get()
{
cout<<"Enter the value of A\n";
cin>>a;
cout<<"Enter the value of B\n";
cin>>b;
}
void put()
{
c=pow(a,b);
cout<<"b power of n result is "<<c;
}
};

void main()
{
clrscr();
s y;
y.get();
y.put();
getch();
}

How To Extand Or Shrink Volume Of Any Drive In Windows

See All The Steps And Read Carefully Before Do That
                                                                        First Click On
Start>>MyComputer(click therd button of mouse)>>Manage






went in to storage And Click On Disk Management






Click Any drive If You Have Not Free Space on Your Hard drive
Now Click On Shrink volume After Shrink Volume You Got A new Diloge Box There You You Slect The Space How You Want In Next Drive








Now You Have Free Space IN Your Hard Disk Click On Any Drive There You want To extand The Volume And You Can Extand The Volume








Now If Want to Change Drive Location Then You can change It
See the steps









 Thanx For More Support You Can Comment Here...................

Sunday, 30 December 2012

How To Make FinalSystm Project In C Programming

Every One Want To Make A Big C Programe
So they Need
Source Code
I Can Help them Here To Provide The Source Code
Here I Will Give Source Code Of Final Systm
Copy These Given Blue Colour Code And Paste In Any Notepad File And Save 
With the Name Finalsys.C
And Now Run With
 1.MsDos (If Windows Xp & Vista)
2. DosBox (If Windows 7 & 8)




#include<stdio.h>
#include<process.h>
#include<ctype.h>
#include<string.h>
#include<dos.h>
#include<conio.h>
#define PAUSE 10000

void addEmp();
void viewEmp();
void addDed();
void viewDed();
void exitSys();
void linefill(int start);

struct employee{
char code[10];
char fname[15];
char lname[15];
char mname[5];
char sex[10];
char status[15];
char ded_name1[15];
char ded_name2[15];
char ded_name3[15];
float grossPay;
float netPay;
float tax;
float ded_n1;
float ded_n2;
float ded_n3;
}empRec[50];

char ch,ID[10];
int x,cntrX,idCheck;

void main()
{
int start=16,end=20;
textattr(9+(1<<4)); clrscr(); cntrX=0;
while(1 == 1)
 {
 window(1,1,80,25);
 linefill(start); textattr(10+(1<<4));
 gotoxy(20,3); cprintf("Ûßßß Ü ÛßßÛ ÜÜÜÜ Û   ");
 gotoxy(20,4); cprintf("ÛÛßß Ü ÛÛ Û ÜÜÜÛ ÛÛ  ");
 gotoxy(20,5); cprintf("ÛÛ   Û ÛÛ Û ÛÜÜÛ ÛÛÜÜ");
 textattr(6+(1<<4));
 gotoxy(42,3); cprintf("Üßßßß Û   Û Üßßßß");
 gotoxy(42,4); cprintf(" ßßßÜ  ßÛß   ßßßÜ");
 gotoxy(42,5); cprintf("ßßßß    ß   ßßßß ");
 textattr(15+(1<<4));
 gotoxy(60,3); cprintf("TM ");
 gotoxy(23,7); cprintf("           Final Project           ");
 gotoxy(23,8); cprintf("         by: Joel Badinas          ");
 gotoxy(23,9); cprintf("           October 2001            ");
 textattr(2+(4<<4));
 gotoxy(29,14); cprintf(" >> M A I N  M E N U << ");
 textattr(2+(1<<4));
 gotoxy(25,15); cprintf("ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ");
 gotoxy(33,16); printf("Add new employee");
 gotoxy(33,17); printf("View employee");
 gotoxy(33,18); printf("Add deduction");
 gotoxy(33,19); printf("View deduction");
 gotoxy(33,20); printf("Quit");
 gotoxy(25,21); cprintf("ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ");
 textattr(14+(1<<4));
 gotoxy(2,25);  cprintf("FiNaLSYS Ver 1.0");
 gotoxy(63,25); cprintf("Copyright(c) 2001");
 ch=getch();
 if(ch==72)
  {
  textbackground(1); textcolor(9);
  gotoxy(31,start); cprintf("                    ");
  start = start -1;
  if(start < 16)
   {
   start = end;
   }
  textbackground(1); textcolor(9);
  gotoxy(31,start+1); cprintf("                    ");
  linefill(start);
  }
 if(ch==80)
  {
  textbackground(1); textcolor(9);
  gotoxy(31,start); cprintf("                    ");
  start = start + 1;
  if(start > 20)
   {
   start = 16;
   }
  textbackground(1); textcolor(9);
  gotoxy(31,start-1); cprintf("                    ");
  linefill(start);
  }
 if(ch == 13)
  {
  if(start == 16)
   {
   addEmp(); textattr(9+(1<<4));
   window(1,1,80,24); clrscr();
   }
  if(start == 17)
   {
   viewEmp(); textattr(9+(1<<4));
   window(1,1,80,24); clrscr();
   }
  if(start == 18)
   {
   addDed(); textattr(9+(1<<4));
   window(1,1,80,24); clrscr();
   }
  if(start == 19)
   {
   viewDed(); textattr(9+(1<<4));
   window(1,1,80,24); clrscr();
   }
  if(start == 20)
   {
   exitSys(); exit(0);
   }}}}
void addEmp()
{
float pay1;
char name1[15],name2[15],name3[5],name4[10],name5[15];
ch=0;
while(ch != 'N')
 {
 window(8,4,72,22);
 textattr(2+(0<<4)); clrscr(); textattr(7+(0<<4));
 while(1 == 1)
  {
  idCheck=0;
  gotoxy(6,3); cprintf("Enter code     : "); scanf("%s",&ID);
  for(x=0;x<cntrX+1;x++)
   {
   if(strcmp(empRec[x].code,ID)==0)
    {
    idCheck=1;
    }
   }
  if(idCheck==1)
   {
   gotoxy(23,3); printf("                          ");
   gotoxy(2,19); cprintf("Code no. already exist!                        ");
   delay(PAUSE);
   gotoxy(2,19); printf("                                               ");
   }
  else
   {
   break;
   }
  }
 gotoxy(6,8);  cprintf("Last Name      : ");
 gotoxy(6,9);  cprintf("First Name     : ");
 gotoxy(6,10); cprintf("Middle Initial : ");
 gotoxy(6,11); cprintf("Sex            : ");
 gotoxy(6,12); cprintf("Status         : ");
 gotoxy(6,13); cprintf("Monthly Pay    : ");

 gotoxy(23,8);  scanf("%s",&name1);
 gotoxy(23,9);  scanf("%s",&name2);
 gotoxy(23,10); scanf("%s",&name3);
 gotoxy(23,11); scanf("%s",&name4);
 gotoxy(23,12); scanf("%s",&name5);
 gotoxy(23,13); scanf("%f",&pay1);
 gotoxy(2,19); cprintf("Save this entry? (Y/N)                           ");
 ch=0;
 while(ch != 'Y'&& ch != 'N')
  {
  ch=toupper(getch());
  }
 if(ch=='Y')
  {
  cntrX++;
  strcpy(empRec[cntrX].code,ID);
  strcpy(empRec[cntrX].fname,name1);
  strcpy(empRec[cntrX].lname,name2);
  strcpy(empRec[cntrX].mname,name3);
  strcpy(empRec[cntrX].sex,name4);
  strcpy(empRec[cntrX].status,name5);
  empRec[cntrX].grossPay = pay1;
  empRec[cntrX].tax = (.12)*pay1;
  empRec[cntrX].netPay = empRec[cntrX].grossPay-empRec[cntrX].tax;
  gotoxy(2,19); cprintf("Saving entry...                                 ");
  delay(PAUSE);
  }
 else
  {
  gotoxy(2,19); cprintf("Saving cancelled...                             ");
  delay(PAUSE);
  }
 gotoxy(2,19); cprintf("Save entry again? (Y/N)                          ");
 ch=0;
 while(ch != 'Y'&& ch != 'N')
  {
  ch=toupper(getch());
  }}}
void viewEmp()
{
ch=0;
while(ch != 'N')
 {
 idCheck=0;
 window(8,4,72,22);
 textattr(2+(0<<4)); clrscr(); textattr(7+(0<<4));
 gotoxy(6,3); cprintf("Enter code     : "); scanf("%s",&ID);
 for(x=0;x<cntrX+1;x++)
  {
  if(strcmp(ID,empRec[x].code)==0)
   {
   gotoxy(6,8);  cprintf("Last Name      : ");
   gotoxy(6,9);  cprintf("First Name     : ");
   gotoxy(6,10); cprintf("Middle Initial : ");
   gotoxy(6,11); cprintf("Sex            : ");
   gotoxy(6,12); cprintf("Status         : ");
   gotoxy(6,13); cprintf("Net Pay        : ");

   gotoxy(23,8);  printf("%s",empRec[x].fname);
   gotoxy(23,9);  printf("%s",empRec[x].lname);
   gotoxy(23,10); printf("%s",empRec[x].mname);
   gotoxy(23,11); printf("%s",empRec[x].sex);
   gotoxy(23,12); printf("%s",empRec[x].status);
   gotoxy(23,13); printf("%.2f",empRec[x].netPay);
   idCheck=1; break;
   }}
 if(idCheck==0)
  {
  gotoxy(2,19); cprintf("Employee record not found...                 ");
  delay(PAUSE);
  }
 gotoxy(2,19); cprintf("View employee again? (Y/N)                    ");
 ch=0;
 while(ch != 'Y'&& ch != 'N')
  {
  ch=toupper(getch());
  }}}
void addDed()
{
char nameded1[15],nameded2[15],nameded3[15];
float amount1,amount2,amount3;
ch=0;
while(ch != 'N')
 {
 window(8,4,72,22); idCheck=0;
 textattr(2+(0<<4)); clrscr(); textattr(7+(0<<4));
 gotoxy(3,2); cprintf("Enter code : "); scanf("%s",&ID);
 for(x=0;x<cntrX+1;x++)
  {
  if(strcmp(ID,empRec[x].code)==0)
   {
   idCheck=1;
   gotoxy(3,6);  cprintf("Name        : ");
   gotoxy(3,7);  cprintf("Monthly Pay : ");
   gotoxy(46,6); cprintf("Sex    : ");
   gotoxy(46,7); cprintf("Status : ");

   gotoxy(17,6); printf("%s %s %s",empRec[x].fname,empRec[x].lname,empRec[x].mname);
   gotoxy(17,7); printf("%.2f",empRec[x].grossPay);
   gotoxy(55,6); printf("%s",empRec[x].sex);
   gotoxy(55,7); printf("%s",empRec[x].status);

   gotoxy(16,10); cprintf(" Type of Deduction  ³  Amount");
   gotoxy(16,11); cprintf("ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ");
   gotoxy(17,12); cprintf("1)"); gotoxy(36,12); cprintf("³");
   gotoxy(17,13); cprintf("2)"); gotoxy(36,13); cprintf("³");
   gotoxy(17,14); cprintf("3)"); gotoxy(36,14); cprintf("³");

   gotoxy(20,12); scanf("%s",&nameded1);
   gotoxy(39,12); scanf("%f",&amount1);

   gotoxy(20,13); scanf("%s",&nameded2);
   gotoxy(39,13); scanf("%f",&amount2);

   gotoxy(20,14); scanf("%s",&nameded3);
   gotoxy(39,14); scanf("%f",&amount3);

   gotoxy(2,19); cprintf("Save this entry? (Y/N)                     ");
   ch=0;
   while(ch != 'Y'&& ch != 'N')
    {
    ch=toupper(getch());
    }
   if(ch == 'Y')
    {
    for(x=0;x<cntrX+1;x++)
     {
     strcpy(empRec[x].ded_name1,nameded1);
     strcpy(empRec[x].ded_name2,nameded2);
     strcpy(empRec[x].ded_name3,nameded3);
     empRec[x].ded_n1 = amount1;
     empRec[x].ded_n2 = amount2;
     empRec[x].ded_n3 = amount3;
     empRec[x].netPay = empRec[x].grossPay-empRec[x].tax-amount1-amount2-amount3;
     }
    gotoxy(2,19); cprintf("Saving entry...                             ");
    delay(PAUSE); break;
    }
   else
    {
    gotoxy(2,19); cprintf("Saving cancelled...                         ");
    delay(PAUSE); break;
    }}}
 if(idCheck==0)
  {
  gotoxy(2,19); cprintf("Employee record not found...                  ");
  delay(PAUSE);
  }
 gotoxy(2,19); cprintf("Add deduction again? (Y/N)                    ");
 ch=0;
 while(ch != 'Y'&& ch != 'N')
  {
  ch=toupper(getch());
  }}}
void viewDed()
{
ch=0;
while(ch != 'N')
 {
 window(8,4,72,22); idCheck=0;
 textattr(2+(0<<4)); clrscr(); textattr(7+(0<<4));
 gotoxy(3,2); cprintf("Enter code : "); scanf("%s",&ID);
 for(x=0;x<cntrX+1;x++)
  {
  if(strcmp(ID,empRec[x].code)==0)
   {
   idCheck=1;
   gotoxy(3,5);  cprintf("Name        : ");
   gotoxy(3,6);  cprintf("Monthly Pay : ");
   gotoxy(46,5); cprintf("Sex    : ");
   gotoxy(46,6); cprintf("Status : ");

   gotoxy(17,5); printf("%s %s %s",empRec[x].fname,empRec[x].lname,empRec[x].mname);
   gotoxy(17,6); printf("%.2f",empRec[x].grossPay);
   gotoxy(55,5); printf("%s",empRec[x].sex);
   gotoxy(55,6); printf("%s",empRec[x].status);

   gotoxy(16,9);  cprintf(" Type of Deduction  ³  Amount");
   gotoxy(16,10);  cprintf("ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ");
   gotoxy(17,11);  cprintf("1)");
   gotoxy(17,12);  cprintf("2)");
   gotoxy(17,13);  cprintf("3)");
   gotoxy(17,14);  cprintf("4)");
   gotoxy(36,11);  cprintf("³");
   gotoxy(36,12);  cprintf("³");
   gotoxy(36,13);  cprintf("³");
   gotoxy(36,14);  cprintf("³");
   gotoxy(36,16);  cprintf("³");
   gotoxy(16,15);  cprintf("ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ");

   gotoxy(20,11); printf("Salary Tax");
   gotoxy(20,12); printf("%s",empRec[x].ded_name1);
   gotoxy(20,13); printf("%s",empRec[x].ded_name2);
   gotoxy(20,14); printf("%s",empRec[x].ded_name3);
   gotoxy(20,16); printf("Net Pay");

   gotoxy(39,11); printf("%.2f",empRec[x].tax );
   gotoxy(39,12); printf("%.2f",empRec[x].ded_n1 );
   gotoxy(39,13); printf("%.2f",empRec[x].ded_n2 );
   gotoxy(39,14); printf("%.2f",empRec[x].ded_n3 );
   gotoxy(39,16); printf("%.2f",empRec[x].netPay);
   }}
 if(idCheck==0)
  {
  gotoxy(2,19); cprintf("Employee record not found...                ");
  delay(PAUSE);
  }
 gotoxy(2,19); cprintf("View deduction again? (Y/N)                   ");
 ch=0;
 while(ch != 'Y'&& ch != 'N')
  {
  ch=toupper(getch());
  }}}
void linefill(int start)
{
textattr(0+(7<<4));
gotoxy(31,start); cprintf("                    ");
}

void exitSys()
{
window(8,4,72,22);
textattr(7+(0<<4)); clrscr();
gotoxy(16,10); printf("Please wait while system exits... ");
delay(PAUSE);
}

HOW TO CHANGE COLOR OF C AND C++ PROGRAM


Here I told You How You Can Change The Color And Background color of a .CPP Program And .C Program
Here I Telling You...........

Copy This Blue Color Source Code And Pate It In Your Program And Save With Name
Back.C or Back.CPP start now===>

#include<stdio.h>
#include<iostream.h>
#include<conio.h>
void main()
{
int i;
for(i=1;i<=10;i++)
{
textcolor(i);
cprintf("hello ");
}
getch();
}

Hope you enjoy this....................

Saturday, 29 December 2012

How To Make A Bootable Pendrive for windows

So let us start with the procedure now:
1) Run command prompt (cmd). This can be done by clicking start and typing typing cmd in Windows 7. In Windows Xp, click on start and then click on run. Type cmd and run. This will open the command prompt which will look like this:


2) Then run diskpart utility from command prompt, by typing ‘diskpart’ on command prompt and pressing enter. This will run the diskpart utility in a separate windows, which is shown in 2nd picture below:




3) Now put in your pendrive in a USB port. Your pen drive must be atleast 4 GB, 8 GB pendrive is best for this purpose. Now go back to the diskpart console and type ‘listdisk’ and press enter. This will list the various storage devices available. You can see the size column of the disk and here we can see that ‘disk 2′ is our pen drive. Warning: In your computer it may be some other number. In our case it is ‘disk 2′.



4) Then you have to type ‘select disk 2′ and press enter. Note: in our case it is disk 2, in your case it may be disk 3, or disk 1 or any other number. You can enter ‘detail disk’ to see the details of the disk after selecting it to verify that you have selected the correct disk. You can see these steps in the image below:





5) Then you have to run a series of commands. The commands to be run in the order are:- clean
- create partition primary
- select partition 1
- active
- format fs=fat32
These steps are shown in the image below:





Please help us in paying our Server maintenance cost by clicking on the ad below.


6) The format step will take some time. You can have a tea or coffee in the meantime and come back. After the format is complete you have to run ‘assign’ command. And after this you can exit diskpart utility by entering the ‘exit’ command. The steps are shown below:

- assign
- exit




MACK YOUR OWN CLOCK




Copy This Given Blue Colour SourCe Code And Paste in A new Notpade or A new Notpade++ File
And Save As The File Name Sk.html
 and now you run this file in your browser
you stil rocking..................................     

<table border="20" width="1350" cellspacing="0" cellpadding="20" bgcolor=green>
<form name="where">
  <tr>
    <td width="100%">
<select name="city" size="1" onchange="updateclock(this);">
<option value="" selected>Local time</option>
<option value="0">London GMT</option>
<option value="1">Rome</option>
<option value="7">Bangkok</option>
<option value="8">Hong Kong</option>
<option value="9">Tokyo</option>
<option value="10">Sydney</option>
<option value="12">Fiji</option>
<option value="-10">Hawaii</option>
<option value="-8">San Francisco</option>
<option value="-5">New York</option>
<option value="-3">Buenos Aires</option>
</select>
</td>
  </tr>
  <tr>
    <td width="100%">
<script language="JavaScript">
if (document.all||document.getElementById)
document.write('<span id="worldclock" style="font:bold 210px arial;"></span><br>')
zone=0;
isitlocal=true;
ampm='';
function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}
function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toUpperCase();
hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2
var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}
setTimeout('WorldClock()',1000);
}
window.onload=WorldClock
//-->
</script>
<!--Place holder for NS4 only-->
<ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>
</td>
</form>
  </tr>
</table>