Projects > GC Project

Home | Projects | Links

 

GC

Index page of GC

 PROJECT

GC (graphing calculator) allows the user to display two-dimensional graphs of functions.

 

The following are the essential fragments of code for this project.

 

compilation.h - A container for one algebraic function and its internal representation. It defines the order of transformation of functions entered by user and facilitates the variable (x) binding and calculating the value of f(x).

compilation_defs.h - Implementation of key transformation of formulas entered by user from a string to an expression tree.

exp_info.h - Input tokens recognized by the program are defined here as well as nodes of expression tree, which is the internal representation of functions, variables, operators and constants. "Home-made polymorphism" is used to bind nodes to appropriate calculating functions.

GCMainDialog.h - Main window of the app. The whole user interface is defined here.

on_apply.h -  What happens when you press <Apply/Draw>: input is checked for validity, expression tree is built, it is added to main list of expressions, graphs are drawn with appropriate colors, and values and errors are displayed.

setaxis.h - Because of ability to easily shift and rescale the coordinate system, the file that provides these capabilities, deserves attention.

 

Version 1.2, project rebuilt with VC++ 8

 

 

                             Download VC++ 8.0 Project (54.1 KB RAR Archive)         Get WinRAR

Download gc.exe (1.63 MB)  |  GC Help

Copyright © Yuri Bulankov 2002

 

Bugs/Comments: code@compilerabuse.com

Copyright (C) 2001-2006 Yuri Bulankov. All rights reserved.