what is lvalue required in turabo c++,Hoe i can solve this type of error?

Recommended Answers

All 3 Replies

Hoe i can solve this type of error?

What did you call me?

;)

commented: okay, i lol'd +6

He called you a turabo.

what is lvalue required in turabo c++,Hoe i can solve this type of error?

Its probably means you need to have an assignable value on the left hand side..

example:

#include <stdio.h>

int main(void)
{
	int x = 0;
	5 = x;
	return 0;
}

generates a compile error

error: lvalue required as left operand of assignment

because 5 is a literal

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.