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
Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

What is the specialty in sizeof() operator

Description - The TR-069 CPE WAN Management Protocol (CWMP) is a protocol that was created by the Broadband Forum (formally the DSL Forum) which sets out a common method for CPE de

Program to show the ascii value of characters: int main() {                 int one_char;                 cout                 one_char = getch();

Charity Ball Organizer Many charities support good causes, but one of the difficulties each of them has is organizing their fundraising events. After nearly a semester of C pro

#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poi

Protected derivation In addition to doing private and public derivations, you may also do a protected derivation. In this situation :   The private members inherited

A function REPAT is specified below. Function REPAT(c in Char, i in Int, s in mString) return in mString pre 1 ≤ i ≤ the length of s. post The returned value is a string identic

A: A dangling pointer arises while you use the address of an object after its lifetime is end. It may occur in situations such as returning addresses of automatic variables from a

write a C rpogram that can display the transpose form of a ciphertext matrix.Prompt users to provide row and coloumn number of matrix.Then user will input plaintext and the program