Bored with C++ ! Let's make it interesting...
Hey folks, Are you beginner in coding with C++ and bored with simple programs? So let's keep this boring stuff aside for a while and play around graphics with SIMPLECPP library.
"I hear and I forget. I see and I remember"
A large part of human experience deals with pictures and motions and are experts at seeing patterns in pictures. This expertise could be brought into action while learning programming. This Simplecpp library contains a collection of graphics classes which allow simple geometrical shapes to be drawn and manipulated on the screen and further It can be integrated to create simulations of different objects.
//Sample program to draw a square of side 100 pixels. #include <simplecpp> main_program { turtleSim(); //opens a turtle window. forward(100); //moves the turtle 100 pixels. left(90); //Turns left side by 90 degree. forward(100); left(90); forward(100); left(90); forward(100); left(90); wait(5); //Keeps a break of 5 sec. }
Let's have a look at some demo:
Somemore patterns :
Reference links:
- Reference book "An Introduction to programming through C++, by Abhiram G Ranade".
- Click here to download your suitable IDE and executable files.
- Download source code of all above patterns from here.