Input/output with files
C++ provides the following classes to perform output and input of characters to/from files: ofstream:…
474,941 total views, no views today
C++ provides the following classes to perform output and input of characters to/from files: ofstream:…
474,941 total views, no views today
Preprocessor directives are lines included in the code of programs preceded by a hash sign…
37,176 total views, 2 views today
Exceptions provide a way to react to exceptional circumstances (like runtime errors) in programs by…
10,819 total views, 1 views today
Implicit conversion Implicit conversions are automatically performed when a value is copied to a compatible…
5,755 total views, 1 views today
Before getting any deeper into this chapter, you should have a proper understanding of pointers…
5,681 total views, 1 views today
Friend functions In principle, private and protected members of a class cannot be accessed from…
6,082 total views, no views today
Special member functions are member functions that are implicitly defined as member of classes under…
5,725 total views, no views today
Overloading operators Classes, essentially, define new types to be used in C++ code. And types…
5,559 total views, 1 views today
Classes are an expanded concept of data structures: like data structures, they can contain data…
5,697 total views, 1 views today
Type aliases (typedef / using) A type alias is a different name by which a…
5,643 total views, 1 views today
Data structures A data structure is a group of data elements grouped together under one…
5,957 total views, 1 views today
In the programs seen in previous chapters, all memory needs were determined before program execution…
5,950 total views, 1 views today
In earlier chapters, variables have been explained as locations in the computer’s memory which can…
5,880 total views, no views today
The string class has been briefly introduced in an earlier section. It is a very…
5,499 total views, no views today
An array is a series of elements of the same type placed in contiguous memory…
6,296 total views, 1 views today
Scopes Named entities, such as variables, functions, and compound types need to be declared before…
5,582 total views, no views today
In C++, two different functions can have the same name if their parameters are different;…
5,604 total views, no views today
Functions allow to structure programs in segments of code to perform individual tasks. In C++,…
6,118 total views, no views today
A simple C++ statement is each of the individual instructions of a program, like the…
5,732 total views, no views today
The example programs of the previous sections provided little interaction with the user, if any…
5,762 total views, 1 views today
Once introduced to variables and constants, we can begin to operate with them by using…
47,458 total views, 1 views today
URL: http://www.euroinformatica.ro/work/marian/ 14,711 total views, no views today
14,711 total views, no views today
Constants are expressions with a fixed value. Literals Literals are the most obvious kind of…
7,990 total views, 1 views today
A computer receives information from different applications in various forms. Sometimes a person types it…
10,663 total views, 2 views today
Console Applications The C# language is used to create applications that display on a black…
10,603 total views, 1 views today
The usefulness of the “Hello World” programs shown in the previous chapter is rather questionable….
6,231 total views, 1 views today
C++ uses notations that may appear strange to nonprogrammers. We now consider a simple program…
5,697 total views, no views today