Now I'd like to share one of my experience of programming C. to write a program of Blackjack (simplified though, without money involved), also known as Twenty-one, But it seems that Visual C++ doesn't like the code!
All rights reserved.{/INSERTKEYS}{/PARAGRAPH} Also, your code is logically laid out in functions, so it's easy to read and add or subtract things in the future. All times are GMT The time now is AM. You're initially dealt 2 cards, before you hit or stay, not one. I like your program because you went to the effort to include some graphic of the cards, etc. Replies: 10 Last Post: , AM. Simple Blackjack Program. To ease the pain for anyone going through the same experience, this is the my final project. I recently took an intro to c programming class and faced a large number of problems when coding my final project. {PARAGRAPH}{INSERTKEYS}Remember Me? It's obvious you put a lot of effort into this program. Replies: 12 Last Post: , AM. Let's hope your teacher doesn't know how to play blackjack! Your indentation is not always consistent, but you consistently use some form of similar indentation, so your code is very easy to read through. Only the player with the highest hand, but still under 21, can win when the dealer goes bust. If you go over 21, and the dealer goes over 21, you do not win. Replies: 5 Last Post: , PM. Replies: 3 Last Post: , PM. Replies: 8 Last Post: , PM. Thread: Simple Blackjack Program.