i am a 13 year old stuck at this, someone please help me out!!
i have a problem defining a character variable
its giving the error lvalue required
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
char name [20];
cin >>" Your name please...", name;
if (name="john") //over here!!!
cout <<"hi ", name;
else
cout <<"sorry!";
}
hardit_marwah 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
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.