Wrox Programmer Forums
|
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2006, 04:26 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to BjarneW
Default Chapter 4, example 6

Heya fellow beginners

I'm experrience an error when i debug the example:
Error 1 Use of unassigned local variable 'imagCoord'

I really don't know what's happening. If i give imagCoord a value there's no more errors, but the program won't work as intended...

My sourcecode from "main":
http://www.hlhansen.dk/Sourcecodes/Ch04Ex06_BjarneW.txt



It isn't cheating if you're having webcamsex... Because people on the internet aren't real people
 
Old April 3rd, 2006, 07:16 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi BjarneW,

There are several differences in your code and that example in the book.

#1 Line 4: You are initialising your first iteration with 'realCoord' when it should be 'imagCoord'. This is what is giving you the error message that you mentioned.

#2 Line 6: You are initialising 'realCoord' to '-0.06' rather than '-0.6'. This doesn't cause your program to fail, it just causes the output to be only partially displayed.

#3 Line 18 You are using the '*=' operator rather than the '+=' operator. This doesn't stop the program from compiling .. but it does give you an incorrect display - it doesn't display the Mandlenrot set.

Best wishes,

Ro-Jaws

 
Old April 18th, 2006, 08:08 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to BjarneW
Default

Gotta get some new glass's...

Thanks a lot for the help Ro-Jaws :)

Now it's working - how beautiful!

BjarneW

It isn't cheating if you're having webcamsex... Because people on the internet aren't real people
 
Old April 22nd, 2006, 01:48 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to djscratch
Default

i was wondering if you could help me with some of the book's exercises. please reply if you can. thx

Quote:
quote:Originally posted by BjarneW
 Heya fellow beginners

I'm experrience an error when i debug the example:
Error 1 Use of unassigned local variable 'imagCoord'

I really don't know what's happening. If i give imagCoord a value there's no more errors, but the program won't work as intended...

My sourcecode from "main":
http://www.hlhansen.dk/Sourcecodes/Ch04Ex06_BjarneW.txt



It isn't cheating if you're having webcamsex... Because people on the internet aren't real people
 
Old May 19th, 2006, 02:46 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to BjarneW
Default

Sure :)

But as i don't daily read this forum (as you can see on my date of reply) I'll advise you to send me e-mails at bjarnew@hlhansen.dk

Best Regards

Bjarne

It isn't cheating if you're having webcamsex... Because people on the internet aren't real people
 
Old August 4th, 2006, 02:35 AM
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,I'm Bill.
This is my first to get here.


Smile Boy!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
chapter 7 - chapter 11 pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 3 January 6th, 2008 11:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.