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
In general, Roman numerals can be converted mathematically by simply assigning a numerical value to each letter, according to the chart below, and calculating a total: M=1000 | D=5

Project Description: I want an experienced programmer to program an RFID tag that will be read (maybe also written), and perform a call to a Filmmaker Pro 13 database. Skills

t a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these

A:BinaryHeap.h ------------ #ifndef BINARY_HEAP_H_ #define BINARY_HEAP_H_ #include "dsexceptions.h" #include "vector.h" // BinaryHeap class // CONSTRUCTION: wi

Write a program called Series that will print/display a series of numbers starting with 1 and ending with the last number that is less than 30. The series should include only odd n

Program is to define a class as student: Program is to define a class as student and display the records specific depending upon the number class student  {  private:

Write a program called Converter that does three types of metric conversions. Your program should prompt the user for the selection conversion, prompt for input data, and display t

After p = new Fred[n], how does the compiler know about n objects to be destructed throughout delete[] p? A:  The run-time system hold the number of objects, n, somewhere where

#include #include using namespace std; class Book { private: string title; int iD; int year_pub; string author; public: string getTitle(); int getId(); int getYear_Pub(); st

No. it's not required The C++ language guarantees that delete p will do nothing if p is equivalent to NULL. As you might get the test backwards, and as most testing methodologie