TAILIEUCHUNG - McGraw-Hill - The Robot Builder's Bonanza Part 4

Tham khảo tài liệu 'mcgraw-hill - the robot builder's bonanza part 4', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | VARIABLES EXPRESSIONS AND OPERATORS 91 COMBINING DATA TYPES IN A VARIABLE Modern high-level languages such as Visual Basic or JavaScript are designed to take the drudgery out of mundane programming chores. Visual Basic and JavaScript both support at least as an option weak data typing which basically means that the language lets you write programs without requiring that you manage the data types stored in variables. In Visual Basic for example you can just throw all data into a variant data type which accepts numbers of different sizes text strings you name it. Visual Basic takes care of managing the underlying memory requirements for the data you provide. The typical robot control language is designed to be small and fast because it s meant to be run on a small single-board computer or an even smaller microcontroller. The Visual Basic programming environment takes up megabytes of hard disk space the average robot control program is under 1 kilobyte in size. Because of their simplicity programming languages for robot control require strong data typing where you the programmer do all the data-typing work yourself. It s not as hard as it seems. But if you re used to languages such as Visual Basic and JavaScript learning the requirements of strong data typing may require a period of adjustment. One of the most difficult aspects of strong data typing is that you cannot directly mix two data types together in a single variable. The reason the result of the mixing probably won t fit in the memory space allocated for the variable. If you add a byte and a string together in an integer variable the memory will only hold the one byte. When you try to mix data types the programming environment you re using will either display an error or the robot will not function correctly. In fact it could function erratically possibly damaging Itself so exercise care Ilcte s an example oft wo data types that cannot be mixed when used in a programming environment that requires throng data

TỪ KHÓA LIÊN QUAN
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.