R
R
rEAcT1oNmanT1s2014-02-01 23:46:10
Programming
rEAcT1oNmanT1s, 2014-02-01 23:46:10

Is there an example C++ program with the full set of C++ features?

Is there a program written in C ++ with the implementation of all aspects (elements) of the C ++ language?
From variables to databases, arrays, matrices, structures, classes, etc.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
N
Nikolai Turnaviotov, 2014-02-02
@foxmuldercp

Yep, there is. thoughtful reading of the documentation + a real goal that needs to be solved. You can set a goal for yourself, as I did.

O
Oleg, 2014-02-02
@makol

Perhaps you just need a reference guide?
citforum.ru/programming/cpp_march/index.shtml
ips.ifmo.ru/courses/cpp/topic1/l1
www.prostocpp.narod.ru/alfavit.html

E
Egor, 2014-02-04
@gor2991

The teacher offered us as a task to realize the life of Martians. There is Mars, and Martians of different classes live on it. They live for a few ticks, then they die. While they live, they can meet someone in a chaotic manner and give birth to another Martian. The Martians were of varying complexity. Some had just a name and a body, others had a name, a body, a soul. Third name, body, soul, mind. Body - a set of chromosomes + sex. Souls come in different colors. Minds of different shapes (spherical, cubic, etc.) There are also ghosts that can sometimes occur, with special Martians, they have super children. In general, a huge field for imagination. Well, of course, inheritance, classes, standard libraries, virtual methods - everything was used
I agree - it looks like wild addiction. But we as a group found this task sooooo very useful. A lot fell into place in my head =)
ps When, two weeks after the assignment was published on the site, we started asking questions about the assignment, the teacher said: "Damn, that's interesting, what did I smoke then?"

A
alexanius, 2014-02-01
@alexanius

I'm not sure what exactly you need, but look ummm .... well, for example Qt. More or less everything seems to be there.
Only can you explain why you need it and there is a better solution?

A
arelay, 2014-02-02
@arelay

In Moscow State Technical University, for example, in order for students to get acquainted with all the "charms" of C ++, they are asked to write their own string calculator with support for special functionality. TK of such a calculator for 2-3 pages)
It is with the help of it, facing and solving problems, using classes / structures, etc. - you begin to enter this topic, understanding what C ++ is

A
AlexP11223, 2014-02-02
@AlexP11223

So if "up to arrays, matrices, structures, classes, etc.", then almost any program is more complicated than helloworld.

O
Oleg Solovyov, 2014-02-03
@vbloodv

C++ is jokingly called (in Lurk) the language in which the Lord God wrote. Therefore, it is comprehensive) Before the database, I doubt it, because. communication with databases is not included in the direct purpose of the language. Here specific T-SQL is better for example.
C++ is native code, speed and complexity. If you need C++, all companies advise reading Bjorn Stroustrap and looking at Chromium and Clang sources. My area is not exactly the same as that of clang and chromium, so I honestly admit that I couldn’t figure it out. It was easier for me to understand primitive toys by downloading their source code on github and using Pavlovskaya's textbook. Her examples with different Zombie * Zombie; very visual. But in general, your question is the same as the "comprehensive" language

A
AxisPod, 2014-02-04
@AxisPod

The DB is not an aspect of the language. Just look for examples of why you need porridge, in which everything is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question