is it possible to define a sequence in c? i.e. the alphabet is a sequence (a is followed by b etc) so is it possible to define a new sequence like say( .. is followed by ..-,-... etc (morsecode))?
This is a discussion on defining a seuence within the C Programming forums, part of the General Programming Boards category; is it possible to define a sequence in c? i.e. the alphabet is a sequence (a is followed by b ...
is it possible to define a sequence in c? i.e. the alphabet is a sequence (a is followed by b etc) so is it possible to define a new sequence like say( .. is followed by ..-,-... etc (morsecode))?
C doesn't understand the alphabet, so you have to define it as a sequence to use it in your code:
char *alph = "abcdefghijklmnopqrstuvwxyz";
So the answer is yes, you can define any sequence you want as long as it makes sense when you process it. If it doesn't make sense then it will still process, but it will be more difficult and the end result will also not make sense.
-Prelude
My best code is written with the delete key.