Sunday 19 October 2014

How to Make a Command Prompt Calculator

STEP 1:
 Open notepad by going to Start> All Programs > Accessories> Notepad.

STEP2:
 Copy the following code:

  • @echo off
  •  :start
  • Echo Press 1 for Addition
  • echo Press 2 for Subtraction
  • echo Press 3 for Multiplication
  • echo Press 4 for Division
  • echo Press 5 to Quit
  • set /p type=
  • if %type%==1 goto a
  • if %type%==2 goto b
  • if %type%==3 goto c
  • if %type%==4 goto d
  • if %type%==5 goto e
  •  :a
  • echo Addition
  • echo Please choose the 2 numbers you wish to add
  • set /p num1=
  • set /p num2=
  • echo %num1%+%num2%?
  • pause
  • set /a Answer=%num1%+%num2%
  • echo %Answer%
  • pause
  • goto start
  •  :b
  • echo Subtraction
  • echo Please choose the 2 numbers you wish to subtract
  • set /p num1=
  • set /p num2=
  • echo %num1%-%num2%?
  • pause
  • set /a Answer=%num1%-%num2%
  • echo %Answer%
  • pause
  • goto start
  •  :c
  • echo Multiplication
  • echo Please choose the 2 numbers you wish to multiply
  • set /p num1=
  • set /p num2=
  • echo %num1%*%num2%?
  • pause
  • set /a Answer=%num1%*%num2%
  • echo %Answer%
  • pause
  • goto start
  •  :d
  • echo Division
  • echo Please choose the 2 numbers you wish to divide
  • set /p num1=
  • set /p num2=
  • echo %num1%/%num2%?
  • pause
  • set /a Answer=%num1%/%num2%
  • echo %Answer%
  • pause
  • goto start
  •  :e
  • echo. Done!

STEP 3:

Go to File> Save As
  • Change the "Save as type" box to "All Files"
  • Type "anything.bat" into file name and click "Save"

STEP 4.

Double click on the file and you will get this window:


STEP 5:

Follow the simple instructions and your answer will be displayed






Saturday 11 October 2014

How to create new Partition without Formatting a Hard Disk

How to create new Partition without Formatting a Hard Disk

If your Hard-disk contain 3 partition your PC and you need to create 1 more partition then what will you do? Most of people are doing the following methods to create new partition in Hard-disk.

Format the Hard-disk and create a new partition. Let’s see an easier method to create a new partition without formatting a Hard-disk.

To do this we don’t need any software and also no need to copy the data to separate drives. By doing the following methods we can create a New Partition from System Drive.

Right Click on My Computer

Click Manage

Now “ Computer Management” window will appear.

In that window Click Storage
Then select Disk Management.

In that window Hard-disk and other Storage Media detail will be shown.

Now select a Disk drive to create a New Partition.

Right Click on particular Drive then Click Shrink Volume.

Now windows will show the free space in particular partition.

Type the disk size to create New Partition in Shrink Window.

Now click on “Shrink” , within few seconds a New Disk will be created.

Still Accessible is not done in New Disk.

Now Right Click on Unallocated Drive . Select New Simple Volume.

Click on Next. Now give a size to the New Partition. (you can choice wholesize right now)

Select a Drive letter and Click on Next.

Then select Format Setting ->

File System ->n
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady]
"Installed"=dword:00000001

NTFS. And keep others as default. (if you need you can change this)

Put a tick on “Performances a Quick Format” and Click on Next.

Now the New Partition is created successfully.

Friday 10 October 2014

C Program Header Files.. ..

HAVE A LOOK C PROGRAMMERS !!!! 

1. <stdio.h>: input and output function in program.

2.<conio.h>: to clear screen and pause information function

3. <ctype.h>: function for testing characters

4. <string.h>: function for manipulating string

5.<math.h>: mathematical function

6. <stdlib.h>: utility function for number, conversion, storage allocation

7. <assert.h>: function that can be used to add diagnostics to a program

8. <stdarg.h>: function that can be used to step through a list of function arguments

9. <setjmp.h>: function that can be used to avoid the normal call and return sequence

10. <signal.h>: function for handling exceptional condition that may arise in a program

11. <time.h>: function for manipulating date and time

12. <limits.h>: constant definitions for the size of C data types

13. <float.h>: definitions relating to floating point values.