Friday, February 18, 2011

Breaking up lines\ is easy to do part2

Author: Joe
Partner: dvd to mp3

 

Depending on how your editor and compiler behave, the result of splitting a line with a string of text in it may not be what you want. For example, the output on your screen may look like this:


Braces come in pairs!
Comments come in pairs!
All statements end with a semicolon!
Spaces are optional!
Must have a main function!
C is done mostly in lowercase.  It’s a case-
sensitive language.


That happens because the split line includes a few tabs to indent things - which looks pretty in your source code, but looks like blech when the pro­gram runs. The solution is merely to edit the source code so that the extra tabs are removed from the string of text.

 

See also:

http://clanguage86.blogspot.com/2011/01/compiler-and-linker.html

http://clanguage86.blogspot.com/2011/01/how-to-compile-goodbyec.html

http://clanguage86.blogspot.com/2011/01/extra-help-in-typing-goodbyec-source.html

No comments:

Post a Comment