Advertisement
C_Volume2 Complete Applications #76465

Class Builder

Creates class modules(objects) from database tables. Users can also add their own methods, events and properties to the classes. The class builder will generate these additional interfaces together with the pre-selected(pre-defined ) database objects.

AI

Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kode Sumber
original-source
Upload
#include <iostream>
#include <stdlib.h>

using namespace std;
int main(int argc, char *argv[])
{
 int choices;
 long int a,b,c;
 std::cout << "Hi, welcome to Riotblade's calculator.\n";
 std::cout << "Select what you want to do.\n";
 std::cout << "(1)\tAdd\n";
 std::cout << "(2)\tSubtract\n";
 std::cout << "(3)\tDivide\n";
 std::cout << "(4)\tMultiply\n";
 std::cout << "(5)\tFormulas\n";
 std::cout << "(6)\tQuit\n";
 std::cin >> choices;
 switch (choices)
 {
 case 1:
  std::cout << "Enter two numbers.\n";
 std::cin >> a;
 std::cin >> b; 
 c=(a+b);
 std::cout << "Your answer is " << c << ".\n";
 break;
 case 2:
 std::cout << "Enter two numbers.\n";
 std::cin >> a;
 std::cin >> b;
 c=(a-b);
 std::cout << "Your answer is " << c << ".\n";
 break;
 case 3:
 std::std::cout << "Enter two numbers.\n";
 std::cin >> a;
 std::cin >> b;
 c=(a/b);
 std::cout << "Your answer is " << c << ".\n";
 break;
 case 4:
 std::cout << "Enter two numbers.\n";
 std::cin >> a;
 std::cin >> b;
 c=(a*b);
 std::cout << "Your answer is " << c << ".\n";
 break;
 case 5:
 std::cout << "Area Formulas\n";
 std::cout << "Square: a*a\n";
 std::cout << "Rectangle: a*b\n";
 std::cout << "Parallelogram: base*height\n";
 std::cout << "Trapezoid: Height/2(b1+b2)\n";
 std::cout << "Circle: Pi*Radius squared\n";
 std::cout << "Ellipse: pi*r1*r2\n";
 std::cout << "Triagle: 1/2*b*h\n";
 std::cout << "Equillateral Triangle: Squareroot of 3/4 * (a squared)\n";
 break;
 case 6:
 abort();
 break;
 
 } 
 system("PAUSE");
 return 0;
}
Komentar Asli (3)
Dipulihkan dari Wayback Machine