A training program for cartographers and surveyors studying the basics of programming in C++ was developed. The program consists of six modules and simulates the work of the theodolite T30 measuring distances and horizontal and vertical angles via the method of full sets. Each module of the program demonstrates performance of a specific task with the help of a theodolite. For example, the test module verifies a theodolite and sets it on the point. The full-sets module is meant to measure the horizontal and vertical angles with the circle left and circle right counting the average value. The half-set module is intended for determination of horizontal angles with a fixed position of the circle. There is a function which takes a count with the using the theodolite readout microscope. A handling module is a code that performs transformation of the angle value from degrees with a fractional part into degrees and minutes separately. The program has a menu that allows a user to select the type of theodolite work from the proposed list. After the next task is completed the program displays the result of the measurement. The developed program simulates the execution of angular measurements using the theodolite T30 with the help of modular programming technology. The advantages of the modular approach in teaching C++ programming for future cartographers and surveyors are considered.