I use GCC compiler(4.6.2) with Code::Blocks IDE. Iwrote the following code for password check- #include <iostream>
#include<cstdlib>
#include<cstring>
#include<conio.h>
After building i get an error saying- cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)'|
Can anyone tell me what is the problem with this code?