Well the funniest thing out of all this is that when you are new to something and just learning concepts, you (or at least I) have a tendency to look to deep into things and give them a persona of being very complex. After all this trouble and haveing many of you kind people help me repeatedly I am embarassed to say that it worked the whole time!
Using strcpy() to fill my Player attributes I forgot to #include <string.h>, for some odd reason it never through a error for me not includeing the file. So the whole time the object was correctly being sent through the socket but it never had any data added to it so it was a empty array! Thats why I was getting the nonstandard characters as the readout.
Hehe its things like this that give you great experience from past mistakes, I can tell you that I will think to check up on my #includes for some time now.
Anyways, thanks to everyone for thier wonderful help!
Oh and have a Happy Thanksgiving!
send() and objects
Glad to hear it''s working
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
November 28, 2003 04:04 AM
Note to computer science teachers: Learning Asm then C before C++ is good because it helps to teach pointer concepts properly to students.
It isn''t your fault Pip, it is the way you''ve been taught.
It isn''t your fault Pip, it is the way you''ve been taught.
quote:
Note to computer science teachers: Learning Asm then C before C++ is good because it helps to teach pointer concepts properly to students.
I dont agree with this at all. You can explain how pointers work to somebody with out even mentioning memory, computers, or even any computer languages. Teaching is a matter of presenting the material in a manner in which the student can understand and relate to it. As an example, explaining how a harddrive on a computer is nothing more than a big filing cabinet with some really big drawers labeled C, D, and E and that in each of these drawers you can name folders and stuff them in there.
There are teachers who can take hard concepts and explain them in such a manner itll seem like adding 2 and 2, and conversely, there are some teachers who do nothing more than tell you to RTFM and your assignment is due on friday.
-=[ Megahertz ]=-
-=[Megahertz]=-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement