Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASSIGNMENT OF AN ARGV VALUE TO A VARIABLE 3

Status
Not open for further replies.

jdechirico

Programmer
Jul 11, 2006
13
US
Hello,

i am trying to take data entered via the command line and assign it to a variable,


The affected values/fields:

Before main

#define KEY_BYTES 24

After main

unsigned char keyData[KEY_BYTES];

keyData = argv[2];

The compiler is complaing that keyData must be a modifiable lvalue, whats it crabbing about?
 
Thanks for that clarification.

I think I remember what I'm getting conused with now.

I think in C++, if you define a member as static, no matter how many instances of a class you have, there is only ever one of the static variable.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top