Quick Sketch (A Laser Effect) It draws any picture in a picturebox
I have created something like the laser program but mine's alittle different . Mine actually draws out the picture and it looks like a laser while it does it . It can draw any picture you have . It's a must see
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.
सोर्स कोड
Upload
#include <cmath>
#include <iostream>
char e;
using namespace std;
void calculate();
void ask();
int main() {
cout << "\t Quadratic Equation Solver\n\t\t by Mauricio Rossi\n\n";
cout << "This program will solve quadratic equations for you.\n";
cout << "Just enter the values of A,B, and C of a qudratic equation.\n";
calculate();
return 0;
}
void ask(){
cout << "Would you like to solve another equation Y/N?";
cin >> e;
if (e == 'y' || e == 'Y'){
calculate();
}
if(e == 'n' || e == 'N'){ }
else {
cout << "Invalid command\n";
system("PAUSE");
}
}
void calculate(){
double a,b,c,a1,a2,a3,nb,sb,divider,result1,result2,div,div2;
cout << "Enter value of A\t";
cin >> a;
cout << "Enter value of B\t";
cin >> b;
cout << "Enter value of C\t";
cin >> c;
nb = -b;
sb = pow(b, 2);
a1 = -4 * a * c;
a2 = sb + a1;
a3 = sqrt(a2);
result1 = nb - a3;
result2 = nb + a3;
divider = 2 * a;
div = result1 / divider;
div2 = result2 / divider;
cout << "The answer is:\t(" << div << "," << div2 << ")" << "\n";
ask();
}
मूल टिप्पणियाँ (3)
Wayback Machine से पुनर्प्राप्त