Tuesday, July 22, 2014

Change Your Facebook Page Name Officially After Limit

we have a new trick for our visitors through that you can change your Facebook fan page name after 200+ likes. As you know that Facebook is No1 popular social networking site. Many business or brands have also there fan page on it for marketing. After reaching like's limits we can't change our name again.


As many guys and companies have changed there name so as being the top social network, everyone have a account of Facebook and have there official page. Now when it comes tochange there Facebook official fan page name, they can't do it because they have 200+. So after searching on the Google, there are many unofficial way to ch
ange the page name after 200+ likes but due to a name in there business, they don't want to do it.
They want an official way to change there Facebook page name as they change there business name. So there are many article on it too but they are just half and benefitless for business man outside from US because they shared the only official Facebook way tochange the Facebook page name form link that is only accessible from US. So now its time for outside US, What to do?

Here we didn't do any unofficial way, we just used a VPN that will change our IP to a 'US' IP and after that Facebook system will show a form to us through that we will provide our all real details and reason why to change the name and after that they will do it officially.

So without any more preface, here we go straight to the tutoriastep by step with full HDimages of all steps attached below. For this tutorial we need Chrome only so open chrome if you are not on chrome. Now close all other tabs from your browsers and do as we said below.

Full Tutorial Step By Step:

1.) First Open Your Facebook Page That's Name You Want To Change.
2.) Now Go To Setting Page And Open "Page Info" Tab.
3.) Here Click "Edit" In Front Of "Name".
4.) Now Here You Will See No Option To "Request Change". :-( But Don't Worry. Move Ahead. :-)

5.) Now Logout Your Facebook Account.
6.) Now Open "ZenMate For Google Chrome" Extension On Chrome Extension Store.


7.) Now Click On "+ Free" Blue Button To Install It.
8.) After This, Click On "Add" While It Want Confirmation Before Installing.


9.) Now Wait For Few Sec Then It Will Automatically Open A New Tab From Official Site.
10.) Here Add Your EMail Address And Click "Get Secured Now".


11.) After Waiting Some Sec, There Will Be A New Page Where They Will Automatically Generated A Random Password For You. You Can Also Change It Now Or Later.
12.) Now There Will Be A POPUP Of Confirmation. Click On "Got it!" Now This Page Will Be Closed Automatically.


13.) Here You Will Be Back To Chrome Extension Page.
14.) Now Click On The Green Color ZenMate Icon In Browser Extension Tab.


15.) Here You Will See That You Are Protected But With Different Country.
16.) Click On The Middle Country And There Will Be A List Of More Different Country.


17.) Now Choose "New York, United State" And Then You Will Be Back On Previous Tab.


18.) Restart Your Chrome Browser.
19.) Now Again Open Your Facebook Account.
Note: This Time, You Have To Check That Your "ZenMate For Google Chrome" Extension Must Be Active And Showing Green Icon In The Place Of Extension In Front Of Address Bar.
20.) Go To Your Facebook Page That's Name You Want To Change.
21.) Now Go To Setting Page And Open "Page Info" Tab.
22.) Here Click "Edit" In Front Of "Name".
23.) Now Here You Will See The Option To "Request Change". :-)

24.) Click On The Option To "Request Change" And You Will Be Redirected To A New Page.
25.) Now This Page Will Be Facebook Contact Form.

26.) Here Fill Your Data And Describe Why You Have To Change Your Page Name.
27.) Give Solid Reason With Some Original Proof.
28.) Now After Filling And Submitting The Form, Logout From Facebook And Close The Browser.
29.) Restart Your Browser And Remove The Extension From Browser Extension Tab.(If You Don't Want It)
30.) Now Wait For Few Days And Then You Will Receive The Confirmation Email From Facebook.

Then Enjoy. :*

Friday, July 18, 2014

How to send text massage even some one blocked you

How to send message while any 1 blocked you on Facebook
Hey some 1 blocked u on fb hmmmm don't ‘worry u can send him MSG while u r blocked
TO MESSAGE SOMEONE WHO HAS BLOCKED YOU ON FACEBOOK○○
If your Facebook id has been blocked by a friend, you can still send him/her messages by following these simple
steps :-1. Login to your e-mail account ( example -gmail.com / yahoo.com).
2. Go to compose mail.
3. Enter the username of your friend as username@ Facebook.(ex: example@ Facebook)
4. Type-in the message(whatever you want to write) and then send it. Your message will be in the inbox of the friend who has blocked you on Facebook.
In this way you can regain the contact with your friends on Facebook and can resolve every issue.

ATM MACHINE PROJECT in C++

#include<fstream.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<iostream.h>
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
      void punit (void);
      void deposit(void);
      void addrecord();
      void delrecord();
      void modrecord();
      void disprecord();
      void dispall();
      void withdraw();
   float w,z;
                 class account
  {
                  int accountno,cls;
                  char name[30],type;
                  float deposit,withdraw;
  public:
                  account()
 {
                deposit=withdraw=0;
    }
                    int giveaccountno()
 {
                      return accountno;
    }
                void getdata(int mrno)
 {
                    accountno=mrno+1;
                      cout<<"ACCOUNT NUMBER        ::  ";
                      cout<<accountno<<"
";
                      cout<<"ENTER YOUR NAME       ::  ";
                gets(name);
                      cout<<"
";
                    cout<<"ENTER TYPE OF ACCOUNT SAVING(s)/CURRENT(c)  ::  ";
                cin>>type;
                   cout<<"
";
                   cout<<"ENTER INITIAL AMOUNT  ::Rs  ";cin>>deposit;
                   cout<<"
";
  }
                void withdrawal(int m)
   {
                   cout<<"AMOUNT BEFORE WITHDRAWING::Rs  "<<deposit<<"
";
      deposit=deposit-m;
                   cout<<"AMOUNT AFTER WITHDRAWING::Rs  "<<deposit;
    }
                void deposital(int m)
 {
                   cout<<"AMOUNT BEFORE DEPOSIT::Rs  "<<deposit<<"
";
    deposit=deposit+m;
                   cout<<"AMOUNT AFTER DEPOSIT ::Rs  "<<deposit;
  }
                void dispdata()
   {
                                 int scrnt=0;
                     if(scrnt==1)
    {
      clrscr();
                   cout<<"DISPLAY ALL MENU
 ";
    scrnt=0;
  }
                    cout<<"

ACCOUNT NUMBER              ::";
                    cout<<accountno;
                    cout<<"

NAME OF DEPOSITER             ::";
                    cout<<name;
                    cout<<"

TYPE OF ACCOUNT SAVING(s)/CURRENT(c)  ::  ";
                    cout<<type;
                    cout<<"

BALANCE  ::Rs  ";
                    cout<<deposit;
    scrnt++;
     }
  };


                void main()
    {
                                 int menuch;
                                       punit();
                 do
    {
                    clrscr();
                    textcolor(14);
                    textbackground(1);
                   cout<<"


MAIN MENU
";
                   cout<<"
1.NEW ACCOUNT     ";
                   cout<<"
2.CLOSE AN ACCOUNT ";
                   cout<<"
3.MODIFY AN ACCOUNT  ";
                   cout<<"
4.DISPLAY AN ACCOUNT ";
                   cout<<"
5.DISPLAY ALL RECORDS ";
                   cout<<"
6.WITHDRAW AMOUNT";
                   cout<<"
7.DEPOSIT AMOUNT";
                   cout<<"
8.EXIT     ";
                   cout<<"
ENTER YOUR CHOICE  ";
      cin>>menuch;

                                 switch(menuch)
    {

                   case 1:addrecord();break;
                   case 2:delrecord();break;
                   case 3:modrecord();break;
                   case 4:disprecord();break;
                   case 5:dispall();break;
                   case 6:withdraw();break;
                   case 7:deposit();break;
     }
  }
                 while(menuch!=8);
     }
                  void addrecord()
  {
                                     account obj_1,obj_2;
                                  fstream fout;
                   fout.open("banking.txt",ios::in|ios::binary);
     if(!fout)
  {
                   cout<<"FILE OPEN ERROR  ";getch();return;}
                int recsize=sizeof(account);
                    fout.seekg(0,ios::end);
                  fout.seekg(-1*recsize,ios::cur);
                 fout.read((char*)&obj_1,recsize);
    int mrno=obj_1.giveaccountno();
                fout.close();
    clrscr();
                   cout<<"ADD MENU

";
     obj_2.getdata(mrno);
                  fout.open("banking.txt",ios::app|ios::binary);
     if(!fout)
   {
                    cout<<"FILE OPEN ERROR  ";getch();return;}
      fout.write((char*)&obj_2,recsize);
                    cout<<"

RECORD ADDED TO DATABASE"<<"
 Press any key to
continue... ";
      getch();
                 fout.close();
   }
                void dispall()
  {
                                  account obj_3;
                    fstream fout;
                  int recsize=sizeof(account);
                   int countrec=0;
                clrscr();
                    cout<<"
DISPLAY ALL MENU
 ";
    fout.open("banking.txt",ios::in);
                if(!fout)
  {
                    cout<<"FILE OPEN ERROR  ";getch();return;}
                while(fout.read((char*)&obj_3,recsize))
  {
                   obj_3.dispdata();
     countrec++;
                    cout<<"
 PRESS ANY KEY FOR NEXT....";
     getch();
  }
                  clrscr();
                   cout<<"

END OF FILE.TOTALNUMBER OF RECORDS..."<<countrec;
                   cout<<"

Press any key......";
    getch();
      fout.close();}
                void disprecord()
 {
                                   account obj_4;
                   fstream fout;
                     int mrno,flag=0;
                    int recsize=sizeof(account);
    clrscr();
                   cout<<"
 DISPLAY A RECORD MENU
";
    fout.open("banking.txt",ios::in);
                    if(!fout)
   {
                   cout<<"FILE OPEN ERROR  ";getch();return;}
                   cout<<"

 ENTER  THE ACCOUNT NUMBER  ";cin>>mrno;
     while(fout.read((char*)&obj_4,recsize))
 {
     if (obj_4.giveaccountno()==mrno)
{
                   obj_4.dispdata();
                    cout<<"

Press any key.....";
     flag=1;break;
  }
 }
     if(flag==0)
  {
                   cout<<"

NO SUCH ACCOUNT EXIST  ";
     cout<<"

Press any key......";
  }
                getch();
    fout.close();
 }
                void delrecord()
  {
                                    account obj_5;
                                 fstream fout,temp;
                  int mrno,flag;
                   int recsize=sizeof(account);
     clrscr();
                   cout<<"

         CLOSE ACCOUNT MENU
 ";
     fout.open("banking.txt",ios::in);
                 if(!fout)
 {
                   cout<<"FILE OPEN ERROR  ";
                    getch();
                   return;
    }
      temp.open("temp.txt",ios::app|ios::binary);
    if(!temp)
 {
                    cout<<"FILE OPEN ERROR  ";
                getch();
     return;
  }
                    cout<<"

 ENTER THE ACCOUNT NUMBER ";
                cin>>mrno;
                  while(fout.read((char*)&obj_5,recsize))
   {
                 if(obj_5.giveaccountno()==mrno)
 {
                   obj_5.dispdata();
                char confirm;
                    cout<<"

ARE YOU SURE TO DELETE IT(Y/N)..";cin>>confirm;
      if(confirm=='Y'||confirm=='y')
 {
                   fout.read((char*)&obj_5,recsize);
                  cout<<"

RECORD DELETED FORM DATABASE
";
                  cout<<"press any key....";
                      flag=1;
                                 if(!fout)
                 break;
      }
                    flag=1;
     }
   temp.write((char*)&obj_5,recsize);}
                 fout.close();
    temp.close();
                    remove("banking.txt");
                  rename("temp.txt","banking.txt");
                    if(flag==0)
 {
                   cout<<"

NO SUCH ACCOUNT EXIST";
                   cout<<"Press any key.....";
  }
     getch();
 }
                 void modrecord()
  {
    account obj_6;
                fstream fout;
                  int mrno,flag=0;
                  int recsize=sizeof(account);
    clrscr();
                    cout<<"
MODIFY RECORD MENU
 ";
    fout.open("banking.txt",ios::in|ios::out|ios::binary);
     if(!fout)
 {
                   cout<<"FILE OPEN ERROR  ";
                   getch();
                    return;
                   }
     fout.seekg(ios::beg);
                   cout<<"
ENTER RECORD NUMBER  ";
                    cin>>mrno;
      while(fout.read((char*)&obj_6,recsize))
  {
                  if(obj_6.giveaccountno()==mrno)
  {
                clrscr();
                  cout<<"

MODIFY MENU

";
                      obj_6.dispdata();
      int tmprno=obj_6.giveaccountno()-1;
                      account obj_7;
                   cout<<"

 ENTER NEW DATA
";
                     obj_7.getdata(tmprno);
                  char confirm;
      cout<<"

 ARE YOU SURE(Y/N)
";
                cin>>confirm;
     if(confirm=='Y'||confirm=='y')
 {
                                  fout.seekg(-1*recsize,ios::cur);
                       fout.write((char*)&obj_7,recsize);
                   cout<<"

 RECORD MODIFIED
  ";
                  cout<<"Press any key.....";
                                    flag=1;
  }
     }
                  if(flag==0)
 {
                                 cout<<"NO SUCH RECORD EXIST
";
                       cout<<"Press any key.....";
   }
      }
                                 fout.close();
                    getch();
    }
                 void withdraw()
    {
                     account obj_9;
                fstream fout;
    int mrno=0;
  int recsize=sizeof(account);
                   clrscr();
                       cout<<"

WITHDRAWAL MENU
";
                  fout.open("banking.txt",ios::in|ios::out|ios::binary);
                                  if(!fout)
     {
                   cout<<"FILE OPEN ERROR  ";getch();return;}
                       fout.seekg(ios::beg);
                   cout<<"
ENTER ACCOUNT NUMBER  ";
      cin>>mrno;
                      while(fout.read((char*)&obj_9,recsize))
 {
                    if(obj_9.giveaccountno()==mrno)
      {
                 clrscr();
                 cout<<"

ENTER THE AMOUNT TO BE WITHDRAWED::Rs ";
    cin>>w;
                    obj_9.withdrawal(w);
                                  fout.seekg(-1*recsize,ios::cur);
                   fout.write((char*)&obj_9,recsize);
  }
    }
                  fout.close();
                      getch();
  }
                void punit(void)
  {

    int gd=5, gm, errorcode;
    int col,i=0,j;
                initgraph(&gd, &gm, "c:\tc\bgi");
      while(5*i<=700)
  {
                 setbkcolor(1);
                 setcolor(3);
                 rectangle(0+5*i,0+5*i,getmaxx()-5*i,getmaxy()-5*i);
                 i++;
  }
    i=0;
     setcolor(4);
   settextstyle(1,0,6);

     sleep(5);
      cleardevice();
                  while(5*i<=700)
   {
                 setbkcolor(1);
     setcolor(3);
                 circle(getmaxx()/2,getmaxy()/2,i*5);
   i++;
     }
                   setcolor(4);
                 settextstyle(0,0,6);
     outtextxy(190 ,getmaxy()/2-85,"PROJECT");
                outtextxy(300,getmaxy()/2-25,"ON");

     outtextxy(190,getmaxy()/2+25,"BANKING");
                sleep(3);
     i=0;
                while(i<=130)
  {
                     setbkcolor(1);
                                  setcolor(3);
                 line(i*3,0,i*3,getmaxy());
                   line(getmaxx()-i*3,0,getmaxx()-i*3,getmaxy());
                  i++;
  }
                 sleep(1);
      i=getmaxy();
                  while(i>0)
   {
                line(getmaxx()/2,getmaxy(),getmaxx(),i-=10);
     delay(10);
   }
      i=getmaxx();
                  while(i>0)
   {
     line(getmaxx()/2,getmaxy(),i-=10,0);
      delay(10);
  }
      i=0;
     while(i<getmaxy())
 {
     line(getmaxx()/2,getmaxy(),0,i+=10);
    delay(10);
     }

                 closegraph();
     flushall();
 }

                    void deposit(void)
  {
                  account obj_10;
      fstream fout;
                 int mrno=0;
      int recsize=sizeof(account);
     clrscr();
                    cout<<"

DEPOSITAL MENU
";
                fout.open("banking.txt",ios::in|ios::out|ios::binary);
   if(!fout)
 {
                  cout<<"FILE OPEN ERROR  ";getch();return;}
     fout.seekg(ios::beg);
                  cout<<"
ENTER ACCOUNT NUMBER  ";
                cin>>mrno;
                  while(fout.read((char*)&obj_10,recsize))
  {
      if(obj_10.giveaccountno()==mrno)
  {
    clrscr();
     cout<<"

ENTER THE AMOUNT TO BE DEPOSITED ::Rs ";
   cin>>w;
      obj_10.deposital(w);
  fout.seekg(-1*recsize,ios::cur);
      fout.write((char*)&obj_10,recsize);
   }
     }
  fout.close();
     getch();
   }

Tuesday, July 15, 2014

How to hack frinds facebook ID by Phishing

How to create a Facebook fake login page with fake facebook login script,For that not much Technical Knowledge required,By using 1 html page and 1 php script,You can easily create a Facebook fake page.
Iam providing you both tool html page and php script,Just download both from download link below Before starting the tutorial.
Note: This Tutorial Is For Educational Purposes Only. I Will Not Be Held Responsibility For, If Any Person Use This For Any Wrong Reason .Use At Your Own Risk. I Do Not Recommend Hacking.
How To Create A Facebook Fake Login Page-Fake Login Script
1.After download save both file in a folder.This folder must contain two files(index1.html,write.php) Your don’t need to change anything in those file,Both files are preconfigured.
2.Register a free Web hosting account on Website like :-
http://www.110mb.com
http://www.000webhost.com or any other host.There many free hosting service providers available on web,you just need to find one.
3.Open your ftp host account and upload both file in root directory.
4.If you have done every thing right now access index1.html by using your hosting account url,like http://yoursite.com/index1.html. Its shows you a fake login page just like the image below
5.Now what happens,if a user enter his login id and password in this fake login page it’s automatically redirect user to original Facebook login page,And php file which you have uploaded with html file automatically create a txt file with the name of passes.txt which contain user name and password of victim.
6. You can test Script yourself by entering some fake login- id password.
See how easy it is to create a fake facebook fake login page.


Create Invisible Name on Facebook / Blank Empty Nickname

Did you ever see a Facebook user that didn't have any nickname or name in their account? Are you wondering why you can’t see their nickname and how is it possible? If you never encounter those kind of fb name just take a look at the picture above. That’s how the look like of invisible name on Facebook. The nickname is being emptied or got blank. It just that they only used “space bar” character on their Facebook name.

Here what we got and how to do that:


First you had to prepare on getting the “invisible character”. If you using Windows 7 here what you can do. Go to Start Menu > Accessories > System Tools > Character Maps. See the image above.


After the Character Map appears, point cursor to “Go to Unicode” and type “200D” (without quote). Then select the first character on the top left side which it named as “U+200D: Zero Width Joiner”.


Now the main and the last steps .



Login to your Facebook with your username and password, then Go to “Account Settings” > Name > Edit > Paste the copied “invisible character” to First and Last Name 4 times or more (to get the empty status a “space” line”) > click Save Changes > Done . Remember that you must also add an ALIAS name aka Alternate name on your Facebook Account.


  • If there is some problem trying this or you are unable to do this then simply copy the character given below without brackets and paste the copied character to First and Last Name 4 times or more (to get the empty status a “space” line”) > click Save Changes > Done . Remember that you must also add an ALIAS name aka Alternate name on your Facebook Account.

                                                      (     ï±žï±ž ﱞﱞ      ) 

Friday, July 11, 2014

ROAD OF THE DEAD in C++



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                 copyright @ programming seekers
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include<iostream.h>
#include<conio.h>
#include<time.h>
#include<graphics.h>
#include<stdlib.h>
#include<string.h>
#include<dos.h>
#include<stdio.h>

main()
{ restart: clrscr(); textbackground(15);textcolor(4);
  cout<<"\n\t\t\t\tROAD OF THE DEAD\nCreated by usman siddique\n\n\n"
      <<" #-YOUR CAR\n\n *-HURDLES\n\n"
      <<" COMMANDS:\n 1.j- move left\n\n 2.l- move right\n\n"
      <<" DIFFICULTY\n A.LEARNER\n B.EXPERT\n\n PRESS E To GO BACK TO MENU"
      <<"\n\n ENTER YOUR CHOICE:";
      char ch= getche();
    if((ch!='a')&&(ch!='A')&&(ch!='b')&&(ch!='B')&&(ch!='e')&&(ch!='E'))
goto restart;
    if((ch=='e')||(ch=='E'))
exit(0);
      char A[49][11]; int h=45; int p=13;  int i,j,k,speed,score=0;
      for(i=3; i>0; i--)
       { delay(1000); clrscr();
cout<<"\n\n\n\n\n\n\n\t\t\t\t\t\t"<< i; delay(1000); clrscr();
       }
  for (int t=1; t<3; t++)
    {
       for(int v=1;v<=49;v++)
      {
if((ch=='a')||(ch=='A'))      // learner path
       {
 for(i=0;i<49; i++)
   for(j=0; j<11; j++)
    { A[i][j]=' ';
      if((j==0)||(j==10))
      A[i][j]='*';
    }
 for(i=3;i<49; i=i+13)
   { A[i][2]='*';
     A[i][5]='*';
     A[i][8]='*';
   }
 for(i=6;i<49; i=i+10)
   { A[i][4]='*';
     A[i][6]='*';
     A[i][9]='*';
   }
for(i=8;i<49; i=i+13)
  { A[i][1]='*';
    A[i][3]='*';
    A[i][7]='*';
  }
for(i=0;i<49;i++)
 {
   for(j=0; j<11; j++)
    {
      k=j+40; gotoxy(k,(i+1));
      cout<<A[i][j];
    }
   cout<<'\n';
 }
       speed=300;
       speed=speed-(2*v);
      }
    else
     {                                  //expert path
       for(i=0;i<49; i++)
for(j=0; j<11; j++)
  { A[i][j]=' ';
    if((j==0)||(j==10))
    A[i][j]='*';
  }
       for(i=3;i<49; i=i+7)
  { A[i][2]='*';
    A[i][5]='*';
    A[i][8]='*';
  }
       for(i=6;i<49; i=i+8)
  { A[i][4]='*';
    A[i][6]='*';
    A[i][9]='*';
  }
       for(i=8;i<49; i=i+7)
 { A[i][1]='*';
   A[i][3]='*';
   A[i][7]='*';
 }
       for(i=0;i<49;i++)
       {
for(j=0; j<11; j++)
{
  k=j+40; gotoxy(k,(i+1));
  cout<<A[i][j];
}
cout<<'\n';
       }
     speed=250;
     speed=speed-(2*v);
   }

   if (kbhit())
     {  char cmnd=getch() ;
if(cmnd=='l')
 h=h+1 ;
if(cmnd=='j')
  h=h-1 ;
     }
   gotoxy(h,v);
   score=score+(3*v);
   cout<<"#";
   char c=A[v-1][h-40] ;
    if(c=='*')
      goto gameover;
//  speed=speed-(2*v);
    delay(speed);
   }
 }

 gameover: clrscr();
 cout<<"\n\n\n\n\t\t\t\tGAME OVER"
     <<"\n\n\t\t\t\tYOUR SCORE IS "
     <<score;
 getch();
 goto restart;
}

HTML basic syntax


Bolded text
  • <b>Text goes here</b>
  • <strong>Text goes here</strong>
Italicized text
  • <i>Text goes here</i>
  • <em>Text goes here</em>
Underlined text
  • <u>Text goes here</u>
Changing font color
  • <font color=”red”>Text goes here</font>
  • <font color=”#0099ff”>Text goes here</font>
Changing font size
  • <font size=”12px”>Text goes here</font>
  • <font size=”large”>Text goes here</font>
Adding links
  • <a href=”http://www.URLgoeshere.com” target=”_blank”>Link goes here</a>
o    target=_blank indicates that the link will open in a new browser window; you may remove it if you’d like the link to open in the same window
Adding images
  • <img src=”http://imageURLgoeshere.com/image.jpg” border=”1px #000 solid” align=”right” />
o    border=”1px #000 solid” will put a black border around your image generated by each visitor’s web browser. The first value (1px) refers to the thickness; the second value (#000) refers to the color, which can be replaced with any web-based color name or RGB hex code; the third value (solid) refers to the pattern of the line, which can be replaced with dotted or dashed
o    align=”right” will manipulate the image to align with the text in a specified way; you may replace right with left, center, or justify
Adding a horizontal divider between sections on your webpage
  • <hr />
Adding a line break

  • <br />

Sunday, July 6, 2014

Program to convert Decimal to Binary number

#include <iostream.h>
 
void binary(int);
 
void  main(void) {
    int number;
 
    cout << "Please enter a positive integer: ";
    cin >> number;
    if (number < 0)
        cout << "That is not a positive integer.\n";
    else {
        cout << number << " converted to binary is: ";
        binary(number);
        cout << endl;
    }
}
 
void binary(int number) {
    int remainder;
 
    if(number <= 1) {
        cout << number;
        return;
    }
 
 
    remainder = number%2;
    binary(number >> 1);
    cout << remainder;
}

What is the difference between C and C++?

C++ is a direct descendant of C that retains almost all of C as a subset. C++ provides stronger type checking than C and directly supports a wider range of programming styles than C. C++ is "a better C" in the sense that it supports the styles of programming done using C with better type checking and more rotational support (without loss of efficiency). In the same sense, ANSI C is a better C than K&R C. In addition, C++ supports data abstraction, object-oriented programming, and generic programming.


I have never seen a program that could be expressed better in C than in C++ (and I don't think such a program could exist - every construct in C has an obvious C++ equivalent). However, there still exist a few environments where the support for C++ is so weak that there is an advantage to using C instead.

How to add two matrix (size is define by user)

#include<iostream.h>

int main()
{
int l,m,z,n;
int matrixA[10][10];
int matrixB[10][10];
int matrixC[10][10];

cout<<"enter the dimension of the first matrix"<<endl;
cin>>l>>m;
cout<<"enter the dimension of the second matrix"<<endl;
cin>>z>>n;
if(m!=z||z!=m){
cout<<"error in the multiblication enter new dimensions"<<endl;
cout<<"enter the dimension of the first matrix"<<endl;
cin>>l>>m;
cout<<"enter the dimension of the second matrix"<<endl;
cin>>z>>n;
}

else{
cout<<"enter the first matrix"<<endl;
for(int i=0;i<l;i++){
for(int j=0;j<m;j++){
     cin>>matrixA[i][j];
     }
     }
cout<<"enter the second matrix"<<endl;
for(int i=0;i<z;i++){
for(int j=0;j<n;j++){
    cin>>matrixB[i][j];
}
}
for(int i=0;i<l;i++){
for(int j=0;j<n;j++){
        matrixC[i][j]=0;
        for(int k=0;k<m;k++){
matrixC[i][j]=matrixC[i][j]+(matrixA[i][k] * matrixB[k][j]);
}
}
}

cout<<"your matrix is"<<endl;
for(int i=0;i<l;i++){
for(int j=0;j<n;j++){
cout<<matrixC[i][j]<<" ";
}
cout<<endl;
}
}
//system("pause");
return 0;
}