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
| FAQ | Members List | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 20th, 2008, 06:58 AM
Friend of Wrox
Join Date: May 2005
Location: , , Norway.
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!
Reply With Quote
  #2 (permalink)  
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());

Reply With Quote

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
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

All times are GMT -4. The time now is 09:27 AM.

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