Draw pie chart in c++ program, C/C++ Programming

Draw pie chart in c++ program:

int main()

{

                char cmd;

 

                cout << "Chart desired: Pie  Bar  Scatter  Line  Three-D";

                cout << "\n Press first letter of the chart you want: ";

                cmd = toupper(getch());

                cout << '\n';

 

                if (cmd == 'P')

                                cout << "Doing pie chart\n";

                else if (cmd == 'B')

                                cout << "Doing bar chart\n";

                else if (cmd == 'S')

                                cout << "Doing scatter chart\n";

                else if (cmd == 'L')

                                cout << "Doing line chart\n";

                else if (cmd == 'T')

                                cout << "Doing 3-D chart\n";

                else cout << "Invalid choice.\n";

 

return 0;

}

Posted Date: 10/18/2012 8:01:48 AM | Location : United States







Related Discussions:- Draw pie chart in c++ program, Assignment Help, Ask Question on Draw pie chart in c++ program, Get Answer, Expert's Help, Draw pie chart in c++ program Discussions

Write discussion on Draw pie chart in c++ program
Your posts are moderated
Related Questions
One person who is specialist at programming and solving problems with a computer Project Description: Dear Potential computer, hardware, programming and software genius, I

claculate 5% tax >10000 sal

#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi

Bit-wise Operators Some applications require operations to be done on dissimilar bits of a byte separately. Bit-wise operators offer a facility to do just that. There are vario


WAP TO ACCEPT THE BASIC SALARY OF EMPLOYEES & CALCULATE NET SALARY   #include stdio.h> #include conio.h>   void main() {                    float Basi

Molecular dynamics for a Lennard-Jones system (in C++) 1. Write a function which reads in the input variables of a molecular dynamics simulation of a Lennard-Jones system. The inpu

C Program for SELECT THE CHAR WHICH U WANT #include stdio.h> #include conio.h> void main() {             void substr(char[], int *, int *);           int a,b

(a) Write a procedure called (add x y) that adds two numbers in a recursive manner. Specifically, note that x + y = (x + 1) + (y - 1) and x + 0 = x. (b) Using the substitution m

I want Packet capture analysis Project Description: Need assistance in debugging some packet capture Skills required is C Programming