Wrox Programmer Forums
|
BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4
This is the forum to discuss the Wrox book Beginning Microsoft Visual C# 2008 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780470191354
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 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 December 24th, 2008, 12:20 AM
Registered User
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrong answer to Exercise 4 in Chapter3

resultVar += (((var1 * var2) + var3) % (var4 / var5))
% has the same presedence as /, so the answer should be
resultVar = resultVar + ( (var1*var2) + ( (var3%var4) /var5) )
 
Old December 25th, 2008, 12:04 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Yes, we just had a thread on this same exercise & answer a few days ago.

I like your final answer, where you decompose the += operator! We didn't do that. I think your version makes this even clearer.

Hopefully somebody at WROX will get around to fixing this one.
 
Old May 23rd, 2010, 06:11 AM
Authorized User
 
Join Date: Jul 2006
Posts: 73
Thanks: 11
Thanked 1 Time in 1 Post
Unhappy error

Problem!
What's wrong in this code?


CREATETABLE BLOBTest
(
BLOBID intIDENTITYNOTNULL,
BLOBData varbinary(max)NOTNULL
)
GO
INSERTINTO BLOBTest(BLOBData)
SELECT*FROMOPENROWSET(BULKN'C:\x.jpg',SINGLE_BLOB);

Last edited by sabra; May 23rd, 2010 at 01:13 PM..
 
Old May 23rd, 2010, 01:17 PM
Authorized User
 
Join Date: Jul 2006
Posts: 73
Thanks: 11
Thanked 1 Time in 1 Post
Unhappy ERROR!

Problem!
What's wrong in this code?


CREATETABLE BLOBTest

(
BLOBID intIDENTITYNOTNULL,
BLOBData varbinary(max)NOTNULL
)
GO
INSERTINTO BLOBTest(BLOBData)
SELECT*FROMOPENROWSET(BULKN'C:\x.jpg',SINGLE_BLOB) ;





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter3: Data Connection String pinponpan BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 0 June 21st, 2008 10:08 PM
Custom Events Chapter3 rav BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 5th, 2007 07:43 PM
Chapter3 DB question... dtucker01 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 25th, 2006 04:21 AM
Please answer canasdaq XML 3 April 19th, 2006 09:04 AM





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