K
K
know_nothing2016-04-26 13:11:53
OOP
know_nothing, 2016-04-26 13:11:53

What to write in C++ in 1000 lines?

I am a first year student. We were asked to write something in C ++ in 1000 lines with the maximum use of classes. Please tell me the idea for the program and, if possible, with a simple implementation (little experience and time). Thank you!

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
AtomKrieg, 2016-04-26
@AtomKrieg

db25cfc9681fc09822fc24dcc3d18a45.png

A
Aitd, 2016-04-26
@Aitd

Parsing some file format like xml.
It would be nice to show the Interface, its implementation by the Class. Actually parsing itself, well, the conclusion.
Nothing is said about the output, so you can write like the number of nested nodes, or the total number of goods.

A
Antony, 2016-04-26
@RiseOfDeath

Purser of anything - XML, JSON, you can also make your own DOM;
config reader;
Calculator ... engineering (classes for working with complex numbers, operator overloading will save the father of Russian democracy);
Virtual machine (for brainfuck, for example);
Collections (any vectors, lists, trees), ala as in STL.
By the way, in continuation of the idea of ​​collections - file a framework for something (for example, for geometric calculations, such as area / volume / mass / density of geometric shapes / bodies). From the pros - you can cram a bunch of classes that implement various interesting (and not so) things, from the minuses - you have to justify why all this is in place (well, it's not a Frankenstein, like a contra with mods for medieval weapons and railguns and anime models players)

S
Slava Kryvel, 2016-04-26
@kryvel

Try writing a telephone directory or something like that. It's pretty simple.
do sorting and searching, in addition, learn pointers :)

C
csar, 2016-04-26
@csar

Write your fort implementation and upgrade as you learn. There are files, and structures, and pointers, and everything else.

K
Kirill, 2016-04-28
@Air_Walker

Try writing your own implementation of the BigInt class. Maximum OOP.

V
Vyacheslav Sukhovey, 2016-05-01
@Slava777

game. About half a year ago I wrote an underplay, 1965 lines came out. All in one source (very sorry that I did).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question