Hi people!
I have a string oneword...
It has the following model:
16c#2
8a3
4d#1
As you can see, it is similar to Nokia RingTone system...
However...
I need to separate this string into three pieces:
int dura: the first integer part, that means the duration, 16 in the first example;
char note: the character part, that means the note, 'c#' in the first example;
int oct: the last integer part, which means the octave, 2 in the first example.
How can I do this?
I am newbie in C programming, nad I'm doing a program that uses the PC speaker to read and play the NoKia Ringtones..
Thanks in advance.
I have a string oneword...
It has the following model:
16c#2
8a3
4d#1
As you can see, it is similar to Nokia RingTone system...
However...
I need to separate this string into three pieces:
int dura: the first integer part, that means the duration, 16 in the first example;
char note: the character part, that means the note, 'c#' in the first example;
int oct: the last integer part, which means the octave, 2 in the first example.
How can I do this?
I am newbie in C programming, nad I'm doing a program that uses the PC speaker to read and play the NoKia Ringtones..
Thanks in advance.