Using string library in C++

I'm working in Netbeans, programming in C++, and I have a problem: My program worked perfect in visual, but once I copied it to Netbeans, the strlen and strcpy (functions of string library) don't work.

The compiler says:

unable to resolve identifer strlen
error: 'strlen' was not declared in this scope.

I have done #include <string>.

Any ideas?


Have you done

#include <cstring>  or 

#include <string.h>

Also check if the gcc or cygwin compiler is properly configured with netbeans

Besides using

#include <cstring>

also make sure you have put

using namespace std;


using std::strlen;
using std::strcpy;

ahead your program

Need Your Help

Mnemonic Password Generation Algorithm for QWERTY Keyboards

php algorithm string keyboard qwerty

I've a "mnemonic" password generation function that goes something like this:

How can I like a post/comment in facebook fan page from my custom website

facebook web facebook-like

I am importing the posts and comments in my FB fan page to my custom website. I am importing using graph api. In the response array I am getting two types of action URL for "comments" and "likes". ...