lesson (19) 썸네일형 리스트형 레슨 1: The basics of C++ ( C++ 의 기본 ) Lesson 1: The basics of C++ This tutorial series is designed for everyone: even if you've never programmed before or if you have extensive experience programming in other languages and want to expand into C++! It is for everyone who wants the feeling of accomplishment from a working program. What do I mean? C++ is a programming language--it will allow you to control your computer, making it do w.. The C Preprocessor The C PreprocessorThe C preprocessor modifies a source code file before handing it over to the compiler. You're most likely used to using the preprocessor to include files directly into other files, or #define constants, but the preprocessor can also be used to create "inlined" code using macros expanded at compile time and to prevent code from being compiled twice. There are essentially three u.. Formatting Cout Output in C++ using iomanip Formatting Cout Output in C++ using iomanipCreating cleanly formatted output is a common programming requirement--it improves your user interface and makes it easier to read any debugging messages that you might print to the screen. In C, formatted output works via the printf statement, but in C++, you can create nicely formatted output to streams such as cout. This tutorial covers a set of basi.. Enumerated Types - enums Enumerated Types - enumsSometimes as programmers we want to express the idea that a variable will be used for a specific purpose and should only be able to have a small number of values--for instance, a variable that stores the current direction of the wind might only need to store values corresponding to north, south, east, and west. One solution to this problem might be to use an int and some .. 레슨 20: Inheritance - Syntax Lesson 20: Inheritance - Syntax Before beginning this lesson, you should have an understanding of the idea of inheritance. If you do not, please read lesson 19. This lesson will consist of an overview of the syntax of inheritance, the use of the keywords public, private, and protected, and then an example program following to demonstrate each. The syntax to denote one class as inheriting from an.. 레슨 18: Binary Trees in C++: Part 1 Binary Trees in C++: Part 1The binary tree is a fundamental data structure used in computer science. The binary tree is a useful data structure for rapidly storing sorted data and rapidly retrieving stored data. A binary tree is composed of parent nodes, or leaves, each of which stores data and also links to up to two other child nodes (leaves) which can be visualized spatially as below the firs.. 레슨 17: Functions with variable-length argument lists Lesson 17: Functions with variable-length argument lists Perhaps you would like to have a function that will accept any number of values and then return the average. You don't know how many arguments will be passed in to the function. One way you could make the function would be to accept a pointer to an array. Another way would be to write a function that can take any number of arguments. So yo.. 레슨 16: Recursion Lesson 16: Recursion Recursion is a programming technique that allows the programmer to express operations in terms of themselves. In C++, this takes the form of a function that calls itself. A useful way to think of recursive functions is to imagine them as a process being performed where one of the instructions is to "repeat the process". This makes it sound very similar to a loop because it r.. 이전 1 2 3 다음