Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion 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 April 6th, 2013, 06:38 PM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch04Ex06

I am having trouble with the fractal image the author has provided us with. I have downloaded the code and I got the same results. After each character there is a line break so it does not show the entire image only a column of characters. This is for Beginning Visual C# 2012 Programming book. Thanks to anyone who thinks they have an answer or has seen this before.
 
Old April 26th, 2013, 12:02 PM
Registered User
Points: 19, Level: 1
Points: 19, Level: 1 Points: 19, Level: 1 Points: 19, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I think you have the Console.Write("\n") line inside the second 'for' loop curly brackets - it should be just before the end curly bracket of the first for loop:-

Code:
            case 3:
                Console.Write("@");
                break;
         }
    }
    Console.Write("\n");
 
Old April 27th, 2013, 04:27 PM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had this problem today. It was because I put
Console.WriteLine() inside the switch instead of
Console.Write().




Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch04Ex06 Keydns BOOK: Beginning Visual C# 2010 1 May 23rd, 2013 02:58 PM





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