Extracting integers from txt file

Hello,

I am a beginner programmer in a C++ class. We have been asked to create a blackjack game using a text file. The file has suits and numbers in it and I only need the numbers, is there a simple way to extract only the numbers ?
Here is an example:
4H KH QC AS 3D JS

Then I need to separate the 6 cards into three players (2 cards per player).

P.S. I have only learned about character arrays, no other arrays can be used !

Please respond asap !
Last edited on
Topic archived. No new replies allowed.