Hi there, im new to c programming, just wanted to know is it possible to do a simple if else for 1 username login for C programming? thanks.

and also, what does c2065 undeclared identifier means? how to fix it?

Hi there, im new to c programming, just wanted to know is it possible to do a simple if else for 1 username login for C programming? thanks.

Sure :

//declare char *password = "hello";
//ask user for the password
//check if( strcmp(userInput,password) == 0 )
         //if so the let him through
//else exit program

and also, what does c2065 undeclared identifier means? how to fix it?

Depends on the compiler, why don't you post your code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.