what does this compiler error (Borland) mean:
Lvalue required in function main()
what does this compiler error (Borland) mean:
Lvalue required in function main()
well, without seeing the code, I cannot understand too much.
heres an example code that causes this error:
<code>
string strng[5];
char arry[5];
strng[2] = "Howdy";
arry = strng[2];
cout << arry;
</code>
this is the problem line:
but whats the problem?Code:arry = strng[2];
You need to put a number by arry, eg:
Code:arry[2]=strng[2];
L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!
Speling is my faverit sujekt
I am a signature virus. Add me to your signature so that I may multiply.
Or if strng is an array of strings,
Code:strcpy( array, strng[2] );
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
how's that supposed to work?Or if strng is an array of strings,
Code:strcpy( array, strng[2] );
i tried it and it said
"could not find a match for 'strcpy(char *, string)'"
Code:strcpy( array, strng[2].c_str( ) );
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
wow that worked! thanks..
but what does the last bit mean?