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 June 20th, 2008, 06:58 AM
Friend of Wrox
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default Struct page 104


Can you show me an ex of some practical use of the complex variabel type structure? It has to be a simple one, some ex in addition to the one shown in the book.

Internet has become favorable with that tool...thank you Tim Berners-Lee!
Old June 26th, 2008, 10:06 AM
Authorized User
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

struct order
            public string itemName;
            public int unitCount;
            public double unitCost;

            public double totalPrice()
                double ttl = unitCount * unitCost;
                return ttl;
            public string OrderDetails()
               return string.Format("Order Information: {0} {1} items at ${2} each,"
                    + "total cost ${3}", unitCount, itemName, unitCost, totalPrice());

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 104 Nicholsen BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 0 November 27th, 2008 05:37 AM
pointer to struct goscho C++ Programming 1 January 10th, 2008 07:23 AM
Chapter 11, page 623, struct WNDCLASS Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 13th, 2006 05:08 AM
confuse page 104 kencheung BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 August 16th, 2004 03:32 PM

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