Jump to content
  • Advertisement
Sign in to follow this  
bhawk14

Im learning C# and have a question

This topic is 3653 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

OK I am learning C# from this http://www.functionx.com/csharp/ and some books And I am stuck on Lesson 8 (http://www.functionx.com/csharp/Lesson08.htm) I do not understand the "Returning a Class or Passing a Class" part. I been understanding all the other stuff but do not get the Coordinate example. please Help I would like to continue learning. (If you go down a little you will see where it says "Returning a Class or Passing a Class")

Share this post


Link to post
Share on other sites
Advertisement
That example doesnt say much, what its doing is defining a function call that, creates a new point, prompts the console for the user to enter a value for x, reads it from the console, storing it in the x member, then does the same for the y member, then returns the new point containing the two values the user entered. What part are you having trouble with?

On a similar note, in my travels I came across a web version of a book written by a pretty good author, havent read it through, but people have said its good, its in pdf form here

http://www.charlespetzold.com/dotnet/

I have his win32 book, its very good, might help you.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!