Sunday, 21 December 2014

C++ program swapping two numbers

Logic:
logic for the program
number1=number1+Number2
number2=number1-number2
number1=number1-number2
Code:
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
cout<<"Enter the two numbers ";
cin>>a>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<"a="<<a<<endl<<"b="<<b;
getch();

}

C++ decimal to binary conversion program

Logic:
The decimal number is equal to the sum of powers of 2 of the binary number's '1' digits place:
Binary number:    1        1        1        0        0        1
Power of 2: 25      24      23      22      21      20
1110012 = 1·25+1·24+1·23+0·22+0·21+1·20 = 57
Code:
#include <iostream>
using namespace std;
int main()
{
    long dec,rem,i=1,sum=0;
    cout<<"Enter the decimal to be converted:";
    cin>>dec;
    do
    {
        rem=dec%2;
        sum=sum + (i*rem);
        dec=dec/2;
        i=i*10;
    }while(dec>0);
    cout<<"The binary of the given number is:"<<sum<<endl;
    cin.get();
    cin.get();

    return 0;

}

Saturday, 20 December 2014

C++ program to find factorial of a number

Logic:
In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, the value of 0! Is 1, according to the convention for an empty product
Example: 4! Is shorthand for 4 x 3 x 2 x 1

Code:
#include<iostream.h>
#include<conio.h>
void main()
{
          int n,fact;
          int rec(int); clrscr();
          cout<<"Enter the number:->";
          cin>>n;
          fact=rec(n);
          cout<<endl<<"Factorial Result are:: "<<fact<<endl;
          getch();
}
rec(int x)
{
          int f;
          if(x==1)
                   return(x);
          else
          {
                   f=x*rec(x-1);
                   return(f);
          }
}
way 2:
int main()

{

    long long n,fact=1;  // long long datatype to store larger values

    cout<<" Enter Number:  ";

    cin>>n;

    for(int i=1;i<=n;i++)

    {

        fact=fact*i;

    }

     cout<<"Factorial of the number is : "<<fact<<endl;

     return 0;


}

C++ program to find greatest number among 3 numbers

This program shows the greatest number between three numbers using if-else statement. It takes three numbers as input from user and output the greatest number.
C++ Logic:
number 1>number 2 && number 1>number 3
greater number is 1.
I.e. user enter 35, 24, and 16 three number now compare
35>24 and 35> 16
greater number is 35.


C++ code:

void main
{
int a,b,c;
cout<<"enter the value for a";
cin>>&a;
cout<<"enter the value for b";
cin>>&b;
cout<<"enter the value for c";
cin>>&c;
if(a>b) && (a>c)
{
cout<<"a is largest";
}
else if(b>a) && (b>c)
{
cout<<"b is largest";
}
else
{
cout<<"c is largest";
}
getch();

}

C++ programing assignment 1


1:C++ PROGRAM TO CHECK WHETHER A NUMBER IS NOT A PERFECT NUMBER OR NOT


logic of perfect number:
For example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is
1 + 2+ 3 =6
And 28 is also a Perfect Number
 Since 1+ 2 + 4 + 7 + 14= 28

Code for the C++ program perfect number:

#include<iostream>
#include<iomanip>
using namespace std;
int main(){
  int n,i=1,sum=0;
  cout<<"Enter a number: ";
  cin >> n;
  while(i<n){
         if(n%i==0)
               sum=sum+i;
              i++;
  }
  if(sum==n)
         cout << i  <<  " is a perfect number";
  else
         cout << i << " is not a perfect number";
  system("pause");
  return 0;
}

2:Prime number program in c++ check prime or not

Logic of prime number:
A prime number can be divided, without a remainder, only by itself and by 1. For example, 17 can be divided only by 17 and by 1.
For example: 13 is a prime number because it is only divisible by 1 and 13 but, 15 is not prime number because it is divisible by 1, 3, 5 and 15.
Code for prime number program in c++:
#include<iostream>

using namespace std;

int main()
 {

     int num,count=0;
     cout<<"Enter the number to check : ";
     cin>>num;

     for(int i=2;i<num;i++)       

         {
            if(num%i==0)       // checks if the number is fully divisible or not
             {
               count++;
             }
         }
            if(count==0)
             {
               cout<<"It is a Prime Number \n";
             }
            else
             {
              cout<<"It is not a Prime Number \n";
             }

           }

3:C++ program display Time in 12 and 24 hours format

Logic :
In 24 hour time, 0:00 is equal to 12:00 AM, and then you can think of the rest of the hours between 0:00 and 12:00 as being equal to the hours between midnight and 12 PM on the 12-hour clock. This means that the conversions are as follows:
00:00 = midnight
1:00 = 1 a.m.
2:00 = 2 a.m.
3:00 = 3 a.m.
4:00 = 4 a.m.
5:00 = 5 a.m.
6:00 = 6 a.m.
7:00 = 7 a.m.
8:00 = 8 a.m.
9:00 = 9 a.m.
10:00 = 10 a.m.
11:00 = 11 a.m.

Code:
#include<iostream.h>
#include<conio.h>
void main()
{

   clrscr();

   int hours,mins,seconds,x;                        

   cout<<"Enter hours=";

   cin>>hours;

   cout<<"\nEnter minutes=";

   cin>>mins;

   cout<<"\nEnter seconds=";

   cin>>seconds;

   if(hours > 24)

    {

     cout<<"Invalid Entery";

   }

   else

   {

       cout<<"\n24 Hours Format\n";

cout<<"Hours  :  Mins  :  Seconds\n"<<"  "<<hours<<"  :     "<<mins<<"   :     "<<seconds<<"\n";

 
  if(hours > 12)

{

  hours=hours-12;

  cout<<"12 Hours Format\n";

cout<<"Hours  :  Mins  :  Seconds\n"<<"  "<<hours<<"  :     "<<mins<<"   :     "<<seconds;

  }

       else

  {

 cout<<"12 Hours Format\n";

 cout<<"Hours  :  Mins  :  Seconds\n"<<" "<<hours<<": "<<mins<<"   :        "<<seconds;

  }

   }


}                    

Software cracing 3 simple and easy ways.

Way 1: 
Step 1: IDENTIFYING THE PROTECTION: 

Run the program, game, etc., (Software) that you want to crack without the CD in the
CD reader. Software will not run of course, however, when the error window pops up it
will give you all of the vital information that you need to crack the program, so be sure to
write down what it says.
Step 2: CRACKING THE PROTECTION: 

Now, run Win32Dasm. On the file menu open DISASSEMBLER > OPEN FILE TO
DISASSEMBLE. Select Software X’s executable file in the pop up window that will
appear (e.g. Software X.exe). W32Dasm may take several minutes to disassemble the file.

When W32Dasm finishes disassembling the file it will display unrecognizable text; this is what we want. Click on the String Data References button. Scroll through the String Data Items until you find Software X’s error message. When you locate it, double click the error message and then close the window to return to the Win32Dasm text. You will notice that you have been moved somewhere within the Software X’s check routine; this is where the error message in generated.

Now comes the difficult part, so be careful. To crack Software X’s protection you must know the @offset of every call and jump command. Write down every call and jump @offset number that you see (You have to be sure, that the OPBAR change its used color to green). You need the number behind the @offset without the “h.”
Now open HIEW, locate Software X’s executable, and press the F4 key. At this point a pop up window will appear with 3 options: Text, Hex, and Decode. Click on “Decode” to see a list of numbers. Now press the F5 key and enter the number that was extracted using Win32Dasm. After you have entered the number you will be taken to Software X’s check routine within HIEW.

To continue you must understand this paragraph. If the command that you are taken to is E92BF9BF74, for example, it means that the command equals 5 bytes. Every 2 digits equal one byte: E9-2B-F9-BF-74 => 10 digits => 5 bytes. If you understood this then you can continue.

Press F3 (Edit), this will allow you to edit the 10 digits. Replace the 5 bytes with the digits 90. In other words, E92BF9BF74 will become 9090909090 (90-90-90-90-90). After you complete this step press the F10 key to exit.
Congratulations! You just cracked Software.
Way 2:
Ever wanted to learn how a program protects itself from being copied? With the right tools, you can examine the inner workings of a program and look at how the copy protection works. Using assembly language, you can change these programs so that they never have to be registered or purchased.

Steps
1Learn Assembly programming. In order to crack most software, you will need to have a good grasp on assembly, which is a low-level programming language. Assembly is derived from machine language, and each assembly language is specific to the type of computer you are using. Most assembly language is expressed through binary and hexadecimal.
2Gather your tools. In order to examine and modify DLLs, you will need several different tools. W32DASM is a software disassembler that allows you to pick apart programs. SoftIce is a Windows debugging tool. You'll also want a good coding text editor, such as UltraEdit or Notepad++.

3Start the program you want to crack with W32DASM. This will show you what DLL files are being loaded by the program. Use W32DASM to examine which functions are being called from the DLL.
4Find the counter function. Many programs use a timer for copy protection, and when the timer runs out, the user is no longer able to access the program. The goal is to find this counter code, and then bypass it.
If the program you are cracking uses a different form of protection, you will need to look for that instead.
5Set a break-point on the counter. Once you've isolated the counter function, set SoftIce to break when it is encountered. This will allow you to look at the exact code that is occurring when the counter function is called.
6Change the counter code. Now that you've found the code for the counter function, you can change the code so that the counter never reaches the point where it shuts you out of the program. For example, you could make it so that the counter cannot count up to the break limit or you can bypass the counter by jumping over it.
Way 3: 
Demo version software mostly comes with one month trial period and will expire after that. As soon as we install these software in our system; they make an entry of details like Installation Date, Time etc. in our systems registry. So now whenever we run this installed software they compare the current date and time with the date and time in the registry. So thus after one month they block the user from accessing the particular software.


Many try to change the date and time manually which is not the right approach. Instead we have a tool which is free and can do this task with ease and thus can help us use the demo version software’s forever. RunAsDate v1.11 can be called as the perfect tool to crack any software with ease.

RunAsDate is called a light app as its not an heavy application and weighs just few kbs. This tool runs on the date and time mentioned by us and won’t make any change to the system time. It injects the specified date and time to the target software thus stopping it from expiry.

Steps to Follow:

v Have this awesome tool installed and ready all time
v After the installation of the software note down the system Date and Time which is needed in the next step
v Run the RunAsDate app and inject the expiry date and time of the software. I would advice you to put in a date which is prior to the actual expiry date

v Use runasdate  software
v Run the target software through this tool as this tool injects the date and time specified by us. Thus helping us in using the trial version of any software for free forever.

Note: Last step has to be followed all the time else this cracking trick will be of no use.

Download:  RunAsDate

Now crack any software without purchasing it or one can use any trial version software for longer duration before actually purchasing it. This trick to crack any software will work on most of the software so try it and put in your experience.

Thursday, 18 December 2014

Proper Patola 2014 watch and download 700mb






































Proper Patola is an Punjabi Romantic comedy film
Directed by
 Harish VyasProduced by Deepak LalwaniWritten by Amit SaxenaMusic by Jassi Katyal & Saurabh KalsiProduction Company : Country Media Pvt Ltd.Distributed by OmJee Cine
World
Release Date : 28 November 2014Country : IndiaLanguage : PunjabiCast : Neeru Bajwa, Harish Verma, Yuvraj Hans





>>>>>>>>>>Screenshots<<<<<<<<<<<<<<





>>>Download full movie resumable<<<<


>>>>Nowdownload<<<<
:: >>>>Direct<<<<
::>>>> Clickup <<<<
>>>>Voowl <<<<
::>>>>Filevice<<<<
::>>>>Jumbo<<<<

>>>>Fcloud <<<<
::>>>>2Drive<<<<
 ::>>>>Indishare<<<<
>>>> Userfile<<<<
 ::>>>>Usercloud<<<<
::>>>>Multi<<<<