TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jonathan Weinblatt
NA
3
0
Help Building A Blackjack Program
Jun 9 2008 4:46 PM
Hi, I'm new to C# and wanted to see a Blackjack program in action. I got the source code from http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=119 (bottom of page). The code was from Visual Studio 2002, but when I convert and try to build I get a couple of errors namely:
Error 2 foreach requires that the return type 'BlackJack.CardEnumerator' of 'BlackJack.Hand.GetEnumerator()' must have a suitable public MoveNext method and public Current property C:\Documents and Settings\dfontanesi\My Documents\Visual Studio Projects\Blackjack\Dealer.cs 71 5 BlackJack
Error 4 foreach requires that the return type 'BlackJack.CardEnumerator' of 'BlackJack.Hand.GetEnumerator()' must have a suitable public MoveNext method and public Current property C:\Documents and Settings\dfontanesi\My Documents\Visual Studio Projects\Blackjack\Player.cs 313 6 BlackJack
If anyone would be so kind as to open this in VS and help me get it to build that would be much appreciated.
Reply
Answers (
2
)
'theForm.__EVENTTARGET' is null or not an object.
Calling an Oracle Stored Procedure from a Gridview