Sunday, January 9, 2011

The Source file and the GOODBYE.C practice

Because the computer can’t understand speech and, well, whacking the computer — no matter how emotionally validating that is for you — does little to the PC, your best line of communications is to write the computer a note — a file on disk.


To create a PC epistle, you use a program called a text editor. This program is a primitive version of a word processor minus all the fancy formatting and print­ing controls. The text editor lets you type text — that’s about all.


Using your text editor, you create what’s called a source code file. The only spe­cial thing about this file is that it contains instructions that tell the computer what to do. And although it would be nice to write instructions like “Make a funny noise,” the truth is that you must write instructions in a tongue the com­puter understands. In this case, the instructions are written in the C language.

The source code file is a text file on disk. The file contains instructions for the computer that are written in the C programming language.
You use a text editor to create the source code file. See Appendix A for more information on text editors.

Use DVD Ripper To Rip Your DVD. Transfer your DVD to your computer. Keep it save.
Convert dvd to ipad. Watch your movie by your hand. Enjoy it everywhere.
Convert dvd to iphone. Show it to everybody. Attract the eyeballs.
                                                                                                                            Sponsor

Use your text editor to create the following source code. Carefully type each line exactly as written; everything you see below is important and necessary. Don’t leave anything out:

#include <stdio.h>
int main()
{
printf(“Goodbye, cruel world!\n”);
return(0);
}


As you review what you have typed, note how much of it is familiar to you. You recognize some words (include, main, “Goodbye, cruel world!”,
and return), and some words look strange to you (stdio.h, printf, and that \n thing).


When you have finished writing the instructions, save them in a file on disk. Name the file GOODBYE.C. Use the commands in your text editor to save this file, and then return to the command prompt to compile your instructions into a program.

 You can GOOGLE for more information on using a text editor to write C language programs as well as for instructions on where you should save the source code file on disk.
In Windows Notepad, you must ensure that the file ends in .C and not in .TXT. Find a book about Windows for instructions on showing the file­
name extensions, which makes saving a text file to disk with a .C exten­sion easier.
Note that the text is mostly in lowercase. It must be; programming lan­guages are more than case sensitive — they’re case-fussy. Don’t worry when English grammar or punctuation rules go wacky; C is a computer language, not English.
Also note how the program makes use of various parentheses: the angle brackets, < and >; the curly braces, { and }; and the regular parentheses, ( and ).

Welcome to reproduce this passage. Please indicate the source when you reproduce this passage.
Sponsor:DVD Rippers

No comments:

Post a Comment