TAILIEUCHUNG - Teach Yourself Visual C++ 6 in 21 Days phần 8

và không bao giờ có thể bật lò sưởi. Bạn sẽ có thể cũng đặt một giới hạn nghiêm ngặt về phạm vi nhiệt độ mà nhiệt có thể được thiết lập, chẳng hạn như xung quanh và dưới 32 ° F, hoặc 0 ° C. Tương tự như vậy, nếu bạn cần một nhiệt cho một tòa nhà văn phòng, bạn có lẽ sẽ muốn hạn chế phạm vi nhiệt độ thường | Appendix a C Review The appendix is designed to provide you with a quick review of the fundamentals of the C programming language. After reading this appendix you will have a thorough understanding of the various aspects of C and its syntax. Creating Your First Application Your first example is a simple program that displays Hello World on the screen. For this you create a workspace and the C file required for the program. The procedure for writing a C program using Visual C is simple and easy. Follow these steps 1. From the main menu select Visual C . 2. Select File New from the Visual C toolbar. Make sure the Projects tab is selected see Figure . 3. Select Win32 Console Application from the options on the left. I 542 Appendix A Figure . Setting up the Hello workspace. 4. Type Hello on the right side under Project Name. 5. Select OK. Visual C creates the workspace of your application. Visual C actually creates a directory Hello which enables you to store all files related to a particular project in one area. You will begin adding the files you require for this project 1. Once again select File New from the toolbar. 2. Select the Files tab if it is not already selected. 3. Highlight C Source File. 4. Check the Add to Project box on the right side. 5. In the File Name edit box type Helloworld see Figure . 6. Click OK. Figure . Setting up the Helloworld project. C Review 543 I The file is where you add the C source code. All C source code files have a .cpp extension. Later I will cover other file types. You create all the tutorial examples in this section in a similar way. The only difference is that the names of the workspaces and the files are different. The Helloworld program displays HELLO WORLD on the screen. Listing contains the code. Type the code exactly as shown in the window. Do not type the line numbers they are for reference only. C is case sensitive so main is not the same as MAIN which is .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.