TAILIEUCHUNG - C++ Weekend Crash Course phần 2

Các hình thức đơn giản nhất của kiểm soát dòng chảy là tuyên bố chi nhánh. Hướng dẫn này cho phép các máy tính để quyết định đường dẫn đến thông qua các hướng dẫn C dựa trên một số điều kiện logic. | Session 3 Creating Your First C Program in GNU C 29 Figure 3-2 The Save As. . . command enables the user to create C source files. Part I-Friday Evening Session 3 Building Your Program We used a limited set of commands in Session 1 to instruct the human computer in changing the tire of a car. Although restricted even these instructions were understandable to the average human at least the average English-speaking human . The program you just entered contains C statements a language that doesn t look much like anything you would read in the morning paper. As cryptic and crude as these C commands might appear to be the computer understands a language much more basic than even C . The language your computer processor understands is known as machine language. The C compiler converts your C program to the machine language of the microprocessor CPU in your PC. Programs that you can execute from the Programs option of the Start menu including Visual C itself are nothing more than files consisting of these machine instructions. It is possible to write a program directly in machine language but it is much more difficult to do than to write the same pro gram in C . Note J The primary job of your GNU C package is to convert your C program to an executable machine instruction file. 30 Friday Evening The act of creating an executable .EXE is known as building. The build process is also known as compiling or making in the Unix world there is a difference between the three but the differences are not relevant at this point . That part of the C package that performs the actual build process is known as the compiler. To build your program click Compile and then click Make or press F9. rhide opens a small window at the bottom of the current window to display the progress of the build process. If all goes well the message Creating followed by no errors appears as shown in Figure 3-3. Figure 3-3 rhide displays the no errors message if the .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.