ryou ken
08-09-2008, 07:35 AM
بسم الله الرحمن الرحيم
الحمد لله استطعت تصميم آلة حاسبة متطورة وجميلة تستطيع من خلالها معرفة النواتج للأرقام العادية والعشرية والكبيرة أي العملاقة وأيضا تعرف إذا كان الرقم الذي تعطيها أياه رقم أولي أو لا وتعرض أيضا جدول الضرب للرقم الذي تريده مهما كان كبره وأيضا تستطيع معرفة الجذور وإيضا معرفة أصل الكسور وأيضا والقيمة المطلقة لأي عدد والنسبة المئوية للمراحل الدراسية جميعها
وأردت أن أضع لكم كودها لتستفيدوا منها (التحميل بالأسفل)
تم تعديل الكود ليوافق الاصدار 4.9 :smailes51:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
ss:
int n1=0 , n2=0 , number=0 , re1=0 , re2=0 , mo=0 , x=0 , i=1 , mi=0 , z=0;
float nm1=0 , nm2=0 , z1=0 , total=0;
long num1=0 , num2=0;
char o1 , a2='q' , a1 , a111 , a;
cout << "\twellcome\nthis calculator verson 4.9 creat by modar ryou ken tensai!!\nmy E-mail:xxbmw@hotmail.com\n\nwrite the number next to the any option you want to do:\n1- math operator in true numbers.\n2- math operator in hex numbers(1.5).\n3- math operator in big numbers.\n4- test the numbers are there primary or not.\n5- matlipic table for any number.\n6- the roots.\n7- the fraction.\n8- the absolute of any number.\n9- the proportion of subjects.\n";
cin >> a1;
switch (a1) {
case '1':
cout << "\ninsert the first number:";
cin >> n1;
while (n1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n2;
while (n2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << n1+n2;}
else if (o1=='-'){cout << "\nresult: " << n1-n2;}
else if (o1=='*'){cout << "\nresult: " << n1*n2;}
else if (o1=='/'){cout << "\nresult: " << n1/n2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
int t1=0;
if (o1=='+'){t1=n1+n2;}
else if (o1=='-'){t1=n1-n2;}
else if (o1=='*'){t1=n1*n2;}
else if (o1=='/'){t1=n1/n2;}
cout << "the last number: ";
if (o1=='+'){cout << n1+n2;}
else if (o1=='-'){cout << n1-n2;}
else if (o1=='*'){cout << n1*n2;}
else if (o1=='/'){cout << n1/n2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n1;
while (n1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+n1;}
else if (o1=='-'){cout << "\nresult: " << t1-n1;}
else if (o1=='*'){cout << "\nresult: " << t1*n1;}
else if (o1=='/'){cout << "\nresult: " << t1/n1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m1:
if (o1=='+'){t1=t1+n1;}
else if (o1=='-'){t1=t1-n1;}
else if (o1=='*'){t1=t1*n1;}
else if (o1=='/'){t1=t1/n1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n1;
while (n1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+n1;}
else if (o1=='-'){cout << "\nresult: " << t1-n1;}
else if (o1=='*'){cout << "\nresult: " << t1*n1;}
else if (o1=='/'){cout << "\nresult: " << t1/n1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m1;}
break;}break;}break;}break;}break;}break;}break;}b reak;}break;}break;}break;}break;}break;
case '2':
cout << "\ninsert the first number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm2;
while (nm2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << nm1+nm2;}
else if (o1=='-'){cout << "\nresult: " << nm1-nm2;}
else if (o1=='*'){cout << "\nresult: " << nm1*nm2;}
else if (o1=='/'){cout << "\nresult: " << nm1/nm2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
float t1=0;
if (o1=='+'){t1=nm1+nm2;}
else if (o1=='-'){t1=nm1-nm2;}
else if (o1=='*'){t1=nm1*nm2;}
else if (o1=='/'){t1=nm1/nm2;}
cout << "the last number: ";
if (o1=='+'){cout << nm1+nm2;}
else if (o1=='-'){cout << nm1-nm2;}
else if (o1=='*'){cout << nm1*nm2;}
else if (o1=='/'){cout << nm1/nm2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+nm1;}
else if (o1=='-'){cout << "\nresult: " << t1-nm1;}
else if (o1=='*'){cout << "\nresult: " << t1*nm1;}
else if (o1=='/'){cout << "\nresult: " << t1/nm1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m2:
if (o1=='+'){t1=t1+nm1;}
else if (o1=='-'){t1=t1-nm1;}
else if (o1=='*'){t1=t1*nm1;}
else if (o1=='/'){t1=t1/nm1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+nm1;}
else if (o1=='-'){cout << "\nresult: " << t1-nm1;}
else if (o1=='*'){cout << "\nresult: " << t1*nm1;}
else if (o1=='/'){cout << "\nresult: " << t1/nm1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m2;}
break;
}}}}}}}}}}}}
break;
case '3':
cout << "\ninsert the first number:";
cin >> num1;
while (num1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num2;
while (num2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << num1+num2;}
else if (o1=='-'){cout << "\nresult: " << num1-num2;}
else if (o1=='*'){cout << "\nresult: " << num1*num2;}
else if (o1=='/'){cout << "\nresult: " << num1/num2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
long t1=0;
if (o1=='+'){t1=num1+num2;}
else if (o1=='-'){t1=num1-num2;}
else if (o1=='*'){t1=num1*num2;}
else if (o1=='/'){t1=num1/num2;}
cout << "the last number: ";
if (o1=='+'){cout << num1+num2;}
else if (o1=='-'){cout << num1-num2;}
else if (o1=='*'){cout << num1*num2;}
else if (o1=='/'){cout << num1/num2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num1;
while (num1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+num1;}
else if (o1=='-'){cout << "\nresult: " << t1-num1;}
else if (o1=='*'){cout << "\nresult: " << t1*num1;}
else if (o1=='/'){cout << "\nresult: " << t1/num1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m3:
if (o1=='+'){t1=t1+num1;}
else if (o1=='-'){t1=t1-num1;}
else if (o1=='*'){t1=t1*num1;}
else if (o1=='/'){t1=t1/num1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num1;
while (num1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+num1;}
else if (o1=='-'){cout << "\nresult: " << t1-num1;}
else if (o1=='*'){cout << "\nresult: " << t1*num1;}
else if (o1=='/'){cout << "\nresult: " << t1/num1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m3;}
break;
}}}}}}}}}}}}
break;
case '4':
m4:
cout << "Please Enter The Number:\t";
cin >> number;
while (number!=(cin.fail())){
int i=number-1;
for (i ; i>1 ; i=i-1)
{
if (number%i==0)
break;}
if (i==1)
cout << endl << "The Number are " ;
else cout << endl << "The Number not are";
cout << endl;
cout << "Quite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m4;}
else {cout << "\nError!!\n"; break;}}break;
case '5':
m5:
cout << "insert the number:\t";
cin >> nm1;
cout << "\nthe numbers is:\n";
do {
cout << nm1*i << endl;
i++;
} while (i<=nm1);
cout << "\nQuite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m5;}
else {cout << "\nError!!\n"; break;}break;
case '6':
m6:
cout << "\ninsert the number:\n";
cin >> nm1;
nm2=sqrt(nm1);
cout << "\nthe root is:" << nm2;
cout << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m6;}
else {cout << "\nError!!\n"; break;}
case '7':
m7:
cout << endl << "insert the numeratort then press Enter:\n\t\t\t\t\t\t";
cin >> nm1;
if (nm1==(cin.fail())){cout << "\nError!!\n"; break;}
cout << " \t __________\n";
cout << "insert the denominator then press Enter:\t";
cin >> nm2;
if (nm2==(cin.fail())){cout << "\nError!!\n"; break;}
cout << endl << "the result:\t\t\t\t\t" << nm1/nm2;
cout << endl << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
if ((a2=='c') || (a1=='C')) {goto m7;}
else {cout << "\nError!!\n"; break;}
case '8':
m8:
cout << "\ninsert the number:\n";
cin >> nm1;
float abs=nm1 < 0 ? -nm1 : nm1;
cout << "\nthe absolute of this number is:\n";
cout << abs;
cout << endl << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
if ((a2=='c') || (a1=='C')) {goto m8;}
else {cout << "\nError!!\n"; break;}
case '9':
m9:
cout << "how many of your subjects?\n";
cin >> mo;
float books[mo];
cout << "what is the full mark of your subjicts?\n";
cin >> mi;
if (cin.fail()){goto ee;}
cout << "insert the marks of all your subject\n\n";
for (x; x<mo; x++){
cout << "\ninsert the mark of subject " << i << "th: ";
cin >> books[x];
if (books[x]>mi){cout << "\n\n\t\tError!!"; goto modar;}
i++;
total=total+books[x];}
z=mi*mo;
z1=z/mi;
cout << "\nthe result is: " << total/z1 << " from " << mi;
modar:
cout << "\n\n\nQiute:Q return:R continue:C\n";
cin >> a;
if ((a=='q')||(a=='Q')){goto ee;}
else if ((a=='r')||(a=='R')){goto ss;}
else if ((a=='c')||(a=='C')){goto m9;}
else {goto modar;}
break;
default:
cout << "\nError!!\n";
break;
}
ee:
if (cin.fail()){cout << "\nError!!\n";}
cout << endl << endl << "Quite:Q returen:r" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
else {cout << "\nError!!\n"; goto ee;}
end:
return 0;
}
قولوا ما شاء الله:smailes48: :smailes102:
روابط التحميل من الميديا فاير:smailes9: :
[/URL]
رابط تحميل الإصدار 4.9 (http://www.mediafire.com/?hilaesgb6yz)
روابط التحميل من مركز طق طق (للإصدارات التي فوق الاصدار 4.0) :smailes55: :smailes90: :
[URL="http://file5.9q9q.net/Download/27637656/4.9.rar.html"]رابط تحميل الإصدار 4.9 (http://file6.9q9q.net/Download/12925665/4.5.rar.html)
وأرجو من الأعضاء إن وجدوا فيها أي خطأ برمجي أو إملائييخبروني لأعدله
وصلى الله على سيدنا محمد وعلى آله وصحبه وسلم:smailes104:
الحمد لله استطعت تصميم آلة حاسبة متطورة وجميلة تستطيع من خلالها معرفة النواتج للأرقام العادية والعشرية والكبيرة أي العملاقة وأيضا تعرف إذا كان الرقم الذي تعطيها أياه رقم أولي أو لا وتعرض أيضا جدول الضرب للرقم الذي تريده مهما كان كبره وأيضا تستطيع معرفة الجذور وإيضا معرفة أصل الكسور وأيضا والقيمة المطلقة لأي عدد والنسبة المئوية للمراحل الدراسية جميعها
وأردت أن أضع لكم كودها لتستفيدوا منها (التحميل بالأسفل)
تم تعديل الكود ليوافق الاصدار 4.9 :smailes51:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
ss:
int n1=0 , n2=0 , number=0 , re1=0 , re2=0 , mo=0 , x=0 , i=1 , mi=0 , z=0;
float nm1=0 , nm2=0 , z1=0 , total=0;
long num1=0 , num2=0;
char o1 , a2='q' , a1 , a111 , a;
cout << "\twellcome\nthis calculator verson 4.9 creat by modar ryou ken tensai!!\nmy E-mail:xxbmw@hotmail.com\n\nwrite the number next to the any option you want to do:\n1- math operator in true numbers.\n2- math operator in hex numbers(1.5).\n3- math operator in big numbers.\n4- test the numbers are there primary or not.\n5- matlipic table for any number.\n6- the roots.\n7- the fraction.\n8- the absolute of any number.\n9- the proportion of subjects.\n";
cin >> a1;
switch (a1) {
case '1':
cout << "\ninsert the first number:";
cin >> n1;
while (n1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n2;
while (n2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << n1+n2;}
else if (o1=='-'){cout << "\nresult: " << n1-n2;}
else if (o1=='*'){cout << "\nresult: " << n1*n2;}
else if (o1=='/'){cout << "\nresult: " << n1/n2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
int t1=0;
if (o1=='+'){t1=n1+n2;}
else if (o1=='-'){t1=n1-n2;}
else if (o1=='*'){t1=n1*n2;}
else if (o1=='/'){t1=n1/n2;}
cout << "the last number: ";
if (o1=='+'){cout << n1+n2;}
else if (o1=='-'){cout << n1-n2;}
else if (o1=='*'){cout << n1*n2;}
else if (o1=='/'){cout << n1/n2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n1;
while (n1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+n1;}
else if (o1=='-'){cout << "\nresult: " << t1-n1;}
else if (o1=='*'){cout << "\nresult: " << t1*n1;}
else if (o1=='/'){cout << "\nresult: " << t1/n1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m1:
if (o1=='+'){t1=t1+n1;}
else if (o1=='-'){t1=t1-n1;}
else if (o1=='*'){t1=t1*n1;}
else if (o1=='/'){t1=t1/n1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> n1;
while (n1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+n1;}
else if (o1=='-'){cout << "\nresult: " << t1-n1;}
else if (o1=='*'){cout << "\nresult: " << t1*n1;}
else if (o1=='/'){cout << "\nresult: " << t1/n1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m1;}
break;}break;}break;}break;}break;}break;}break;}b reak;}break;}break;}break;}break;}break;
case '2':
cout << "\ninsert the first number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm2;
while (nm2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << nm1+nm2;}
else if (o1=='-'){cout << "\nresult: " << nm1-nm2;}
else if (o1=='*'){cout << "\nresult: " << nm1*nm2;}
else if (o1=='/'){cout << "\nresult: " << nm1/nm2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
float t1=0;
if (o1=='+'){t1=nm1+nm2;}
else if (o1=='-'){t1=nm1-nm2;}
else if (o1=='*'){t1=nm1*nm2;}
else if (o1=='/'){t1=nm1/nm2;}
cout << "the last number: ";
if (o1=='+'){cout << nm1+nm2;}
else if (o1=='-'){cout << nm1-nm2;}
else if (o1=='*'){cout << nm1*nm2;}
else if (o1=='/'){cout << nm1/nm2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+nm1;}
else if (o1=='-'){cout << "\nresult: " << t1-nm1;}
else if (o1=='*'){cout << "\nresult: " << t1*nm1;}
else if (o1=='/'){cout << "\nresult: " << t1/nm1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m2:
if (o1=='+'){t1=t1+nm1;}
else if (o1=='-'){t1=t1-nm1;}
else if (o1=='*'){t1=t1*nm1;}
else if (o1=='/'){t1=t1/nm1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> nm1;
while (nm1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+nm1;}
else if (o1=='-'){cout << "\nresult: " << t1-nm1;}
else if (o1=='*'){cout << "\nresult: " << t1*nm1;}
else if (o1=='/'){cout << "\nresult: " << t1/nm1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m2;}
break;
}}}}}}}}}}}}
break;
case '3':
cout << "\ninsert the first number:";
cin >> num1;
while (num1!=(cin.fail())) {
cout << "insert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num2;
while (num2!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << num1+num2;}
else if (o1=='-'){cout << "\nresult: " << num1-num2;}
else if (o1=='*'){cout << "\nresult: " << num1*num2;}
else if (o1=='/'){cout << "\nresult: " << num1/num2;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
long t1=0;
if (o1=='+'){t1=num1+num2;}
else if (o1=='-'){t1=num1-num2;}
else if (o1=='*'){t1=num1*num2;}
else if (o1=='/'){t1=num1/num2;}
cout << "the last number: ";
if (o1=='+'){cout << num1+num2;}
else if (o1=='-'){cout << num1-num2;}
else if (o1=='*'){cout << num1*num2;}
else if (o1=='/'){cout << num1/num2;}
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num1;
while (num1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+num1;}
else if (o1=='-'){cout << "\nresult: " << t1-num1;}
else if (o1=='*'){cout << "\nresult: " << t1*num1;}
else if (o1=='/'){cout << "\nresult: " << t1/num1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){
m3:
if (o1=='+'){t1=t1+num1;}
else if (o1=='-'){t1=t1-num1;}
else if (o1=='*'){t1=t1*num1;}
else if (o1=='/'){t1=t1/num1;}
cout << "the last number: " << t1;
cout << "\ninsert the opreator: ";
cin >> o1;
while (o1!=(cin.fail())) {
cout << "insert the 2th number:";
cin >> num1;
while (num1!=(cin.fail())) {
if (o1=='+'){cout << "\nresult: " << t1+num1;}
else if (o1=='-'){cout << "\nresult: " << t1-num1;}
else if (o1=='*'){cout << "\nresult: " << t1*num1;}
else if (o1=='/'){cout << "\nresult: " << t1/num1;}
cout << "\nQuite:Q return:R continue:c\n";
cin >> a2;
while (a2!=(cin.fail())) {
if ((a2=='r') || (a2=='R')){goto ss;}
else if ((a2=='q') || (a2=='Q')){goto end;}
else if ((a2=='c') || (a2=='C')){goto m3;}
break;
}}}}}}}}}}}}
break;
case '4':
m4:
cout << "Please Enter The Number:\t";
cin >> number;
while (number!=(cin.fail())){
int i=number-1;
for (i ; i>1 ; i=i-1)
{
if (number%i==0)
break;}
if (i==1)
cout << endl << "The Number are " ;
else cout << endl << "The Number not are";
cout << endl;
cout << "Quite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m4;}
else {cout << "\nError!!\n"; break;}}break;
case '5':
m5:
cout << "insert the number:\t";
cin >> nm1;
cout << "\nthe numbers is:\n";
do {
cout << nm1*i << endl;
i++;
} while (i<=nm1);
cout << "\nQuite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m5;}
else {cout << "\nError!!\n"; break;}break;
case '6':
m6:
cout << "\ninsert the number:\n";
cin >> nm1;
nm2=sqrt(nm1);
cout << "\nthe root is:" << nm2;
cout << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a1;
if ((a1=='q') || (a1=='Q')) {goto end;}
if ((a1=='r') || (a1=='R')) {goto ss;}
if ((a1=='c') || (a1=='C')) {goto m6;}
else {cout << "\nError!!\n"; break;}
case '7':
m7:
cout << endl << "insert the numeratort then press Enter:\n\t\t\t\t\t\t";
cin >> nm1;
if (nm1==(cin.fail())){cout << "\nError!!\n"; break;}
cout << " \t __________\n";
cout << "insert the denominator then press Enter:\t";
cin >> nm2;
if (nm2==(cin.fail())){cout << "\nError!!\n"; break;}
cout << endl << "the result:\t\t\t\t\t" << nm1/nm2;
cout << endl << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
if ((a2=='c') || (a1=='C')) {goto m7;}
else {cout << "\nError!!\n"; break;}
case '8':
m8:
cout << "\ninsert the number:\n";
cin >> nm1;
float abs=nm1 < 0 ? -nm1 : nm1;
cout << "\nthe absolute of this number is:\n";
cout << abs;
cout << endl << endl << "Quite:Q returen:r continue:c" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
if ((a2=='c') || (a1=='C')) {goto m8;}
else {cout << "\nError!!\n"; break;}
case '9':
m9:
cout << "how many of your subjects?\n";
cin >> mo;
float books[mo];
cout << "what is the full mark of your subjicts?\n";
cin >> mi;
if (cin.fail()){goto ee;}
cout << "insert the marks of all your subject\n\n";
for (x; x<mo; x++){
cout << "\ninsert the mark of subject " << i << "th: ";
cin >> books[x];
if (books[x]>mi){cout << "\n\n\t\tError!!"; goto modar;}
i++;
total=total+books[x];}
z=mi*mo;
z1=z/mi;
cout << "\nthe result is: " << total/z1 << " from " << mi;
modar:
cout << "\n\n\nQiute:Q return:R continue:C\n";
cin >> a;
if ((a=='q')||(a=='Q')){goto ee;}
else if ((a=='r')||(a=='R')){goto ss;}
else if ((a=='c')||(a=='C')){goto m9;}
else {goto modar;}
break;
default:
cout << "\nError!!\n";
break;
}
ee:
if (cin.fail()){cout << "\nError!!\n";}
cout << endl << endl << "Quite:Q returen:r" << endl;
cin >> a2;
if ((a2=='q') || (a1=='Q')) {goto end;}
if ((a2=='r') || (a1=='R')) {goto ss;}
else {cout << "\nError!!\n"; goto ee;}
end:
return 0;
}
قولوا ما شاء الله:smailes48: :smailes102:
روابط التحميل من الميديا فاير:smailes9: :
[/URL]
رابط تحميل الإصدار 4.9 (http://www.mediafire.com/?hilaesgb6yz)
روابط التحميل من مركز طق طق (للإصدارات التي فوق الاصدار 4.0) :smailes55: :smailes90: :
[URL="http://file5.9q9q.net/Download/27637656/4.9.rar.html"]رابط تحميل الإصدار 4.9 (http://file6.9q9q.net/Download/12925665/4.5.rar.html)
وأرجو من الأعضاء إن وجدوا فيها أي خطأ برمجي أو إملائييخبروني لأعدله
وصلى الله على سيدنا محمد وعلى آله وصحبه وسلم:smailes104:
