Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Beginning Visual C# 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2006, 04:26 AM
Registered User
 
Join Date: Mar 2006
Location: , , Denmark.
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
Reply With Quote
  #2 (permalink)  
Old April 3rd, 2006, 07:16 PM
Registered User
 
Join Date: Apr 2006
Location: Belfast, , .
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

Reply With Quote
  #3 (permalink)  
Old April 18th, 2006, 08:08 AM
Registered User
 
Join Date: Mar 2006
Location: , , Denmark.
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
Reply With Quote
  #4 (permalink)  
Old April 22nd, 2006, 01:48 PM
Registered User
 
Join Date: Apr 2006
Location: atlanta, ga, USA.
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
Reply With Quote
  #5 (permalink)  
Old May 19th, 2006, 02:46 AM
Registered User
 
Join Date: Mar 2006
Location: , , Denmark.
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
Reply With Quote
  #6 (permalink)  
Old August 4th, 2006, 02:35 AM
Registered User
 
Join Date: Aug 2006
Location: GuangZhou, , China.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Smile Boy!!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.