![]() |
LValue required for error !
Code:
#include<stdio.h>I am Getting errors Lvalue required for the bold lines. wher I m tring to assign a String name in an array of characters. Please help me out. |
Re: LValue required for error !
> c[0].cuisinename = "Italian"
cuisinename is defined as char[25] so the assignment operator won't work here. Use strcpy(), or define cuisinename as std::string which supports the assignment operator. |
| All times are GMT +5.5. The time now is 07:15. |