|
-
November 9th, 2010, 11:40 AM
#1
C++ Advice for an 'Old Git'.
Hello there to the younger generation,
I am an 'Old Git',and have been looking at C++ for about a month.
For a number of years back in the late 60's and early 70's I was a Systems Programmer. I used Assembler on IBM machines (360/370),also Octal and Fortran on Process Control Computers,but then I changed my job.The advice that I am looking for would and still is easy using Assembler.
What I'm attempting to do is this:-
1. I enter a series of numerical digits (as you would a number, eg 12345),the Minimum being 1
number and the Maximum being 6.
e.g.
1
20
303
4012
62102
122003
If I do not enter anything then the routine is bypassed.
2. I then need to find out how many digits there are entered.
3. I then need to find out how many occurences of 1, 2 and 3 there are in the numbers entered.
e.g. In 123456 there are 3.
Once I have this info then I am able to allocate points to add to a basic number.
e.g. 1 occurence from 1 = 10 points.
2 occurences from 4 = 7 points.
6 occurences from 6 = 10 points.
I have looked on a few Websites,including this one,and in several books, but all I am able to find are articles dealing with Character Strings.
I would appreciate any 'Advice' on how to go about what I am attempting to achieve.
I would like to go about this as a 'Beginner' would (Because I am a Beginner), ie really basic stuff.
As I said, I'm not looking for the Coding,but only for the best,simple way to go about what I'm attempting to achieve,
Best Regards,
Adrian.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|