programming_fundamentals_with_processing:ch02-getting-going.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
programming_fundamentals_with_processing:ch02-getting-going.html [2017/07/26 16:47] – [Program statements] mithat | programming_fundamentals_with_processing:ch02-getting-going.html [2017/07/26 16:57] – mithat | ||
---|---|---|---|
Line 7: | Line 7: | ||
==== Source code ==== | ==== Source code ==== | ||
- | A computer program' | + | In programming, |
- | )) The source code you write is stored in files called **source code files** --- sometimes shortened to simply **sources** or **code**. Thus, source code files are text files made up of sets of instructions written in a particular programming language that express what you'd like the program to do. | + | )) The source code you write is stored in files called **source code files**---sometimes shortened to simply **sources** or **code**. Thus, source code files are text files made up of sets of instructions written in a particular programming language that express what you'd like the program to do. |
==== Entry points ==== | ==== Entry points ==== | ||
- | Some languages start executing a program at the first bit of program text that is in the program' | + | Some languages start executing a program at the first bit of program text that is in the program' |
=== Processing without an entry point === | === Processing without an entry point === | ||
- | Below is one of the simplest Processing programs you can write. When executed, it will print an important message about cranberries. | + | Below is one of the simplest Processing programs you can write. When executed, it will print an important message about cranberries.((Yes, this text output goes against the visual intent of Processing! Don't worry, we'll get to visual stuff shortly.)) |
< | < | ||
Line 31: | Line 31: | ||
</ | </ | ||
- | Processing' | + | Processing' |
=== Processing with an entry point === | === Processing with an entry point === | ||
Line 51: | Line 51: | ||
} | } | ||
</ | </ | ||
+ | |||
The code that is written between the pair of curly braces is called the **body** of the '' | The code that is written between the pair of curly braces is called the **body** of the '' | ||
Line 58: | Line 59: | ||
void setup() { | void setup() { | ||
</ | </ | ||
- | and/or after the matching | + | and/or after the matching |
- | + | ||
- | <code java> | + | |
- | } | + | |
- | </ | + | |
the program will actually start at the first statement in the '' | the program will actually start at the first statement in the '' | ||
Line 68: | Line 65: | ||
void setup() { | void setup() { | ||
</ | </ | ||
+ | |||
==== Program statements ==== | ==== Program statements ==== | ||
programming_fundamentals_with_processing/ch02-getting-going.html.txt · Last modified: 2017/07/26 17:44 by mithat