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
nick smet
NA
1
3k
C# problems with a simple blackjack game
Feb 22 2012 8:38 AM
hello
For our school we got an assignement that said we had to make a cardgame, we chose blackjack.
We ran into a little problem at the beginning. we can make an array, but we can't use it to put our cards in !!
can anyone please help us ?
this is the code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Collections;
using System.Text;
namespace BlackJackOpdracht
{
class Game
{
Dealer dDealer = new Dealer();
Speler sSpeler = new Speler();
Array[] mArray = new Array[52];
protected string mAfbeeldingsPad;
protected Image mAfbeelding;
public Game ()
{
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 14; j++)
{
mAfbeeldingsPad = "/Images/" + Convert.ToString(i) + "-" + Convert.ToString(j)+".png";
mAfbeelding = Image.FromFile(Convert.ToString(mAfbeeldingsPad));
mArray.push???????
}
}
}
}
}
}
grts
Nsmet
Reply
Answers (
2
)
Select/Insert/Update/Delete Excel 2007 File and C#
What is the correct way of coping one text box to another using += ...