This is a simple program that I wrote only to learn how the simple parts of
the program syntax (meaning I wrote it only to see what I do wrong in general):
The problem is, is that I need to use character arrays, because I need them for my homework. This particular question is not my homework (my homework questions are a lot more complicated), I just posted this one up so I can understand what I am doing wrong from the syntax aspect.
What is the way that I can continue writing the program as I did in a more correct fashion?
You can`t use identifiers pattern, text, from_pos, mismatch definition without in function main().
But, when you define them in function main(), you can use it.