|
-
June 18th, 2002, 06:33 AM
#1
arguments array's and structures used as pointers and by-reference
Hiya,
pointers shouldnt be a difficult subject, BUTT for the n00b like me, it is!! 
In the books that i read, i cant really figure it out, regretfully.
my problem lies in handling an struct after is has been used as argument of an function.
With a struct as an:
value-based argument,
a reference and
as a pointer.
The way to acces the structures after you have passed it with one of those types of arguments.
I just dont get it. I can figure it out, programwise, but then i dont understand it. I got my piece of tutorial based source working, but i just dont really get it. The same thing goes partially with arrays and ofcourde an array of structures.
Another question:
Is it ONLY possible to input chars in an char array (in an struct) throu strcpy? or can you simply do this too?:
cin >> p.CharMember
Perhaps you ppl have example source of different variety which i can look at about arrays and structures passed as an argument and then used and accessed in different ways. I think that if is see enough source about this subject, i would be able to understand it.
I appreciate any help!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|