Answer the question
In order to leave comments, you need to log in
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
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.
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)
Try writing a telephone directory or something like that. It's pretty simple.
do sorting and searching, in addition, learn pointers :)
Write your fort implementation and upgrade as you learn. There are files, and structures, and pointers, and everything else.
Try writing your own implementation of the BigInt class. Maximum OOP.
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 questionAsk a Question
731 491 924 answers to any question