You seem very mixed up. This piece of code is awful, you have made more mistakes in 8 lines than microsoft made in windows 3.1 lol. Maybe you should consider some web tuts or a good book.
an int is a variable type to represent integers that is whole numbers.
Code:
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char password[]={"tiger"};
cout<<"Input password :-";
char buffer[256]={0};
cin.getline(buffer,256);
if (strcmp(buffer,password)==0)
cout<<endl<<"Thats the correct password!"<<endl;
else
cout<<endl<<"Thats incorrect!"<<endl;
return 0;
}