Advertisement
Guest User

Untitled

a guest
Nov 26th, 2012
1,778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 234.15 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. #include <ctime>
  5. #include <sstream>
  6. using namespace std;
  7. class base
  8. {
  9. public:
  10. virtual int prod(){return -1;}
  11. virtual int todo(){return -1;}
  12. virtual int calendar(){return -1;}
  13. };
  14. class dbase2:public base
  15. {
  16. public:
  17. int calendar();
  18. };
  19. int dbase2::calendar()
  20. {
  21. int cme;
  22. int cd;
  23. string cdd;
  24. int cw;
  25. string cwd;
  26. int cm;
  27. string cmd;
  28. int cy;
  29. string cyd;
  30. cout<<endl;
  31. cout<<"========"<<endl;
  32. cout<<"Calendar"<<endl;
  33. cout<<"========"<<endl;
  34. cout<<"---------------------------"<<endl;
  35. cout<<"| View (1) | Settings (2) | "<<endl;
  36. cout<<"---------------------------"<<endl;
  37. cin>>cme;
  38. // calendar display
  39. switch(cd)
  40. {
  41. {case 1:cdd = "-1-"; break;}
  42. }
  43. cout<<"|"<<cdd<<"|"<<endl;
  44. // calendar display
  45. }
  46. class dbase:public base
  47. {
  48. public:
  49. int prod();
  50. int todo();
  51. };
  52. int dbase::prod()
  53. {
  54. char nt[20];
  55. string ntw;
  56. int me;
  57. char ma[5];
  58. int cl;
  59. string ys = "yes";
  60. string dn;
  61. string dp;
  62. string de;
  63. char mp[20];
  64. string mpx;
  65. string adx;
  66. string dex;
  67. string ntwx;
  68. char mp1[20];
  69. string rc;
  70. string adr;
  71. char lit[20];
  72. char nf[20];
  73. string fn;
  74. string fnk;
  75. string fnx;
  76. char co[20];
  77. string tf;
  78. do
  79. {
  80. cout<<endl;
  81. cout<<"========"<<endl;
  82. cout<<"Contacts"<<endl;
  83. cout<<"========"<<endl;
  84. cout<<"--------------------------------------"<<endl;
  85. cout<<"| Add Contact (1) | View Contact (2) | "<<endl;
  86. cout<<"--------------------------------------"<<endl;
  87. cin>>me;
  88. if(me == 1)
  89. {
  90. cout<<"Enter any number (Reference number)"<<endl;
  91. cin>>lit;
  92. cout<<"Enter Name:";
  93. getline(cin, dn);
  94. getline(cin, dn);
  95. cout<<endl;
  96. cout<<"+ Add Phone Number? type 'yes' or 'no'"<<endl;
  97. cin>>mp;
  98. if(mp == ys)
  99. {
  100. cout<<"Phone Number:";
  101. getline(cin, dp);
  102. getline(cin, dp);
  103. mpx += ("|Phone Number: " + dp);
  104. }
  105. else
  106. {
  107. dp = "";
  108. }
  109. cout<<endl;
  110. cout<<"+ Add Address? type 'yes' or 'no'"<<endl;
  111. cin>>ma;
  112. if(ma == ys)
  113. {
  114. cout<<"Address:";
  115. getline(cin, adr);
  116. getline(cin, adr);
  117. adx += ("|Address: " + adr);
  118. }
  119. else
  120. {
  121. adr = "";
  122. }
  123. cout<<endl;
  124. cout<<"+ Add Email? type 'yes' or 'no'"<<endl;
  125. cin>>mp1;
  126. if(mp1 == ys)
  127. {
  128. cout<<"Email Address:";
  129. getline(cin, de);
  130. getline(cin, de);
  131. dex += ("|Email: " + de);
  132. }
  133. else
  134. {
  135. de = "";
  136. }
  137. cout<<endl;
  138. cout<<"+ Add Notes? type 'yes' or 'no'"<<endl;
  139. cin>>nt;
  140. if(nt == ys)
  141. {
  142. cout<<"Notes:";
  143. getline(cin, ntw);
  144. getline(cin, ntw);
  145. ntwx += ("|Notes: " + ntw);
  146. }
  147. cout<<endl;
  148. cout<<"+ Add Custom Field? type 'yes' or 'no'"<<endl;
  149. cin>>nf;
  150. if(nf == ys)
  151. {
  152. cout<<"Field Name:";
  153. getline(cin, fn);
  154. getline(cin, fn);
  155. cout<<fn<<":";
  156. getline(cin, fnk);
  157. fnx += ("|" + fn + ": " + fnk);
  158. }
  159. // add ntw
  160. rc += ("-" + dn + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + mpx + "" + "\t\t\t\t\t\t\t\t\t\t\t" + adx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + dex + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + ntwx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + fnx);
  161. ofstream fileo (lit);
  162. fileo<<rc;
  163. }
  164. if(me == 2)
  165. {
  166. cout<<endl;
  167. cout<<"Enter reference number:";
  168. cin>>co;
  169. ifstream fileop(co);
  170. if(! fileop.eof())
  171. {
  172. cout<<endl;
  173. getline(fileop, tf);
  174. cout<<endl;
  175. cout<<"====================="<<endl;
  176. cout<<tf<<endl;
  177. cout<<"====================="<<endl;
  178. cin.get();
  179. cin.get();
  180. }
  181. }
  182. cout<<endl;
  183. cout<<"Back to menu - 1"<<endl;
  184. cout<<"Exit - 2"<<endl;
  185. cin>>cl;
  186. }while(cl == 1);
  187. }
  188. int dbase::todo()
  189. {
  190. string yxa = "(Done)";
  191. string svi;
  192. int tpx;
  193. int tkm;
  194. int alt;
  195. char it[20];
  196. string done;
  197. string jn;
  198. int nj;
  199. int tmm;
  200. int th;
  201. int tmh;
  202. do
  203. {
  204. cout<<endl;
  205. cout<<"==========="<<endl;
  206. cout<<"Task Center"<<endl;
  207. cout<<"==========="<<endl;
  208. cout<<"----------------------"<<endl;
  209. cout<<"| New (1) | View (2) | "<<endl;
  210. cout<<"----------------------"<<endl;
  211. cin>>tkm;
  212. alt = tkm;
  213. if(tkm == 1)
  214. {
  215. cout<<"Enter any number (task number)"<<endl;
  216. cin>>it;
  217. int imp;
  218. string prt;
  219. string ji;
  220. string di;
  221. string ni;
  222. string all;
  223. cout<<endl;
  224. cout<<"Task Title:";
  225. getline(cin, ji);
  226. getline(cin, ji);
  227. cout<<endl;
  228. cout<<"Due:";
  229. getline(cin, di);
  230. cout<<endl;
  231. cout<<"Notes:";
  232. getline(cin, ni);
  233. cout<<endl;
  234. cout<<"Set Priority | 1 | 2 | 3 |"<<endl;
  235. cin>>imp;
  236. if(imp == 1)
  237. {
  238. prt = "Low";
  239. }
  240. if(imp == 2)
  241. {
  242. prt = "Medium";
  243. }
  244. if(imp == 3)
  245. {
  246. prt = "High";
  247. }
  248. all += ("-" + ji + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Notes: " + ni + "" + "\t\t\t\t\t\t\t\t\t\t\t" + "|Due: " + di + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Priority: " + prt + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");
  249. ofstream file(it);
  250. file<<all;
  251. }
  252. if(alt == 1)
  253. {
  254. string cht;
  255. ifstream filest(it);
  256. if(! filest.eof())
  257. {
  258. getline(filest, cht);
  259. cout<<endl;
  260. cout<<"==========================="<<endl;
  261. cout<<cht<<endl;
  262. cout<<"==========================="<<endl;
  263. cin.get();
  264. cin.get();
  265. }
  266. }
  267. if(tkm == 2)
  268. {
  269. string chs;
  270. char dm[20];
  271. cout<<"Task number:";
  272. cin>>dm;
  273. ifstream files(dm);
  274. if(! files.eof())
  275. {
  276. getline(files, chs);
  277. cout<<"==========================="<<endl;
  278. cout<<chs<<endl;
  279. cout<<"==========================="<<endl;
  280. cin.get();
  281. cin.get();
  282. if(chs == yxa)
  283. {
  284. cout<<"";
  285. }
  286. cout<<"- Mark as Done (1) - Set Task Time (2) -"<<endl;
  287. cin>>nj;
  288. if(nj == 1)
  289. {
  290. done = "(Done)";
  291. jn = (done + chs);
  292. ofstream dfile (dm);
  293. dfile<<jn;
  294. }
  295. if(nj == 2)
  296. {
  297. // set time code
  298. cout<<"Set how much time this task might take"<<endl;
  299. cout<<"Minutes: "<<endl;
  300. cin>>tmm;
  301. cout<<"Hours: "<<endl;
  302. cin>>th;
  303. tmm += ("Minutes: " + tmm);
  304. th += ("Hours: " + th);
  305. tmh = (tmm + th);
  306. }
  307. cout<<endl;
  308. cout<<"Back to menu - 1"<<endl;
  309. cout<<"Exit - 2"<<endl;
  310. cin>>tpx;
  311. }while(tpx == 1);
  312. }
  313. class Time
  314. {
  315. public:
  316. void Timer();
  317. };
  318. //              COUNTDOWN TIMER
  319. void Time::Timer()
  320. {
  321. unsigned int zxi;
  322. do
  323. {
  324. unsigned int zt;
  325. unsigned int xt;
  326. unsigned int yt;
  327. cout<<endl;
  328. cout<<"==============="<<endl;
  329. cout<<"Countdown Timer"<<endl;
  330. cout<<"==============="<<endl;
  331. cout<<endl;
  332. cout<<"Time in minutes - 1"<<endl;
  333. cout<<"Time in seconds - 2"<<endl;
  334. cin>>yt;
  335. if(yt == 1)
  336. {
  337. cout<<endl;
  338. cout<<"Enter how many minutes to count down from:";
  339. cin>>xt;
  340. cout<<"-"<<xt<<"-";
  341. cout<<flush;
  342. for(xt >= 0; xt --;)
  343. {
  344. cout<<"-"<<xt<<"-";
  345. sleep(60);
  346. cout<<flush;
  347. }
  348. }
  349. if(yt == 2)
  350. {
  351. cout<<endl;
  352. cout<<"Enter how many seconds to count down from:";
  353. cin>>zt;
  354. cout<<"-"<<zt<<"-";
  355. cout<<flush;
  356. for(zt >= 0; zt--;)
  357. {
  358. cout<<"-"<<zt<<"-";
  359. sleep(1);
  360. cout<<flush;
  361. }
  362. }
  363. cout<<endl;
  364. cout<<"---"<<endl;
  365. cout<<"End"<<endl;
  366. cout<<"---"<<endl;
  367. cout<<"(press enter)"<<endl;
  368. cin.get();
  369. cin.get();
  370. cout<<"Start another countdown - 1"<<endl;
  371. cout<<"Exit - 2"<<endl;
  372. cin>>zxi;
  373. }
  374. while(zxi == 1);
  375. }
  376. class Sdt
  377. {
  378. public:
  379. void Speed();
  380. void Distance();
  381. void Time();
  382. };
  383. void Sdt::Time()
  384. {
  385. float one;
  386. float hr;
  387. float hr1;
  388. float mnt;
  389. float scd;
  390. float hr2;
  391. float hr12;
  392. float mnt2;
  393. float scd2;
  394. do
  395. {
  396. unsigned int ch;
  397. cout<<endl;
  398. cout<<"==============="<<endl;
  399. cout<<"Time Calculator"<<endl;
  400. cout<<"==============="<<endl;
  401. cout<<endl;
  402. cout<<"Hours - 1"<<endl;
  403. cout<<"Hours(MPH) - 2"<<endl;
  404. cout<<"Minutes - 3"<<endl;
  405. cout<<"Seconds - 4"<<endl;
  406. cin>>ch;
  407. if(ch == 4)
  408. {
  409. cout<<"Enter the meters:";
  410. cin>>scd;
  411. cout<<"Enter speed meters/second:";
  412. cin>>scd2;
  413. cout<<endl;
  414. cout<<(scd / scd2)<<" Seconds"<<endl;
  415. cout<<"---------------------------------"<<endl;
  416. cin.get();
  417. cin.get();
  418. }
  419. if(ch == 3)
  420. {
  421. cout<<"Enter the meters:";
  422. cin>>mnt;
  423. cout<<"Enter speed meters/minute:";
  424. cin>>mnt2;
  425. cout<<endl;
  426. cout<<(mnt / mnt2)<<" Minutes"<<endl;
  427. cout<<"---------------------------------"<<endl;
  428. cin.get();
  429. cin.get();
  430. }
  431. if(ch == 2)
  432. {
  433. cout<<"Enter the meters:";
  434. cin>>hr1;
  435. cout<<"Enter speed MPH:";
  436. cin>>hr12;
  437. cout<<endl;
  438. cout<<(hr1 / hr12)<<" Hours"<<endl;
  439. cout<<"---------------------------------"<<endl;
  440. cin.get();
  441. cin.get();
  442. }
  443. if(ch == 1)
  444. {
  445. cout<<"Enter the kilometers:";
  446. cin>>hr;
  447. cout<<"Enter speed KM/H:";
  448. cin>>hr2;
  449. cout<<endl;
  450. cout<<(hr / hr2)<<" Hours"<<endl;
  451. cout<<"---------------------------------"<<endl;
  452. cin.get();
  453. cin.get();
  454. }
  455. cout<<endl;
  456. cout<<"Do another convertion - 1"<<endl;
  457. cout<<"Exit - 2"<<endl;
  458. cin>>ch;
  459. }while(one == 1);
  460. }
  461. //              DISTANCE CALCULATOR
  462. void Sdt::Distance()
  463. {
  464. int vp;
  465. int xpi;
  466. float ks;
  467. float kt;
  468. do
  469. {
  470. cout<<endl;
  471. cout<<"==================="<<endl;
  472. cout<<"Distance Calculator"<<endl;
  473. cout<<"==================="<<endl;
  474. cout<<endl;
  475. cout<<"KM - 1"<<endl;
  476. cout<<"Miles - 2"<<endl;
  477. cout<<"Meters - 3"<<endl;
  478. cin>>xpi;
  479. if(xpi == 1)
  480. {
  481. cout<<endl;
  482. cout<<"Enter the speed (KM/H):";
  483. cin>>ks;
  484. cout<<endl;
  485. cout<<"Enter the minutes:";
  486. cin>>kt;
  487. kt = (kt / 60);
  488. cout<<endl;
  489. cout<<(ks * kt)<<" KM"<<endl;
  490. cout<<"---------------------------------"<<endl;
  491. cin.get();
  492. cin.get();
  493. }
  494. if(xpi == 2)
  495. {
  496. cout<<endl;
  497. cout<<"Enter the speed (MPH):";
  498. cin>>ks;
  499. cout<<endl;
  500. cout<<"Enter the minutes:";
  501. cin>>kt;
  502. kt = (kt / 60);
  503. cout<<endl;
  504. cout<<(ks * kt)<<" Miles"<<endl;
  505. cout<<"---------------------------------"<<endl;
  506. cin.get();
  507. cin.get();
  508. }
  509. if(xpi == 3)
  510. {
  511. cout<<endl;
  512. cout<<"Enter the speed (Meters/Second):";
  513. cin>>ks;
  514. cout<<endl;
  515. cout<<"Enter the minutes:";
  516. cin>>kt;
  517. kt = (kt * 60);
  518. cout<<endl;
  519. cout<<(ks * kt)<<" Meters"<<endl;
  520. cout<<"---------------------------------"<<endl;
  521. cin.get();
  522. cin.get();
  523. }
  524. cout<<endl;
  525. cout<<"Do another convertion - 1"<<endl;
  526. cout<<"Exit - 2"<<endl;
  527. cin>>vp;
  528. }while(vp == 1);
  529. }
  530. //              SPEED CALCULATOR
  531. void Sdt::Speed()
  532. {
  533. float dx;
  534. float tx;
  535. int xp;
  536. int lp;
  537. do
  538. {
  539. cout<<endl;
  540. cout<<"================"<<endl;
  541. cout<<"Speed Calculator"<<endl;
  542. cout<<"================"<<endl;
  543. cout<<endl;
  544. cout<<"M/S - 1"<<endl;
  545. cout<<"KM/H - 2"<<endl;
  546. cout<<"MPH - 3"<<endl;
  547. cin>>xp;
  548. if(xp == 1)
  549. {
  550. cout<<endl;
  551. cout<<"Type in the meters:";
  552. cin>>dx;
  553. cout<<endl;
  554. cout<<"Type in the seconds:";
  555. cin>>tx;
  556. cout<<endl;
  557. cout<<(dx / tx)<<" M/S"<<endl;
  558. cout<<"---------------------------------"<<endl;
  559. cin.get();
  560. cin.get();
  561. }
  562. if(xp == 2)
  563. {
  564. cout<<endl;
  565. cout<<"Type in the kilometers:";
  566. cin>>dx;
  567. cout<<endl;
  568. cout<<"Type in the mintues:";
  569. cin>>tx;
  570. tx = (tx / 60);
  571. cout<<endl;
  572. cout<<(dx / tx)<<" KM/H"<<endl;
  573. cout<<"---------------------------------"<<endl;
  574. cin.get();
  575. cin.get();
  576. }
  577. if(xp == 3)
  578. {
  579. cout<<endl;
  580. cout<<"Type in the miles:";
  581. cin>>dx;
  582. cout<<endl;
  583. cout<<"Type in the mintues:";
  584. cin>>tx;
  585. tx = (tx / 60);
  586. cout<<endl;
  587. cout<<(dx / tx)<<" MPH"<<endl;
  588. cout<<"---------------------------------"<<endl;
  589. cin.get();
  590. cin.get();
  591. }
  592. cout<<endl;
  593. cout<<"Do another conversion - 1"<<endl;
  594. cout<<"Exit - 2"<<endl;
  595. cin>>lp;
  596. }while(lp == 1);
  597. }
  598. class Unit
  599. {
  600. public:
  601. void Con();
  602. };
  603. void Unit::Con()
  604. {
  605. int hh;
  606. do
  607. {
  608. int zx;
  609. cout<<endl;
  610. cout<<"=============="<<endl;
  611. cout<<"Unit Converter"<<endl;
  612. cout<<"=============="<<endl;
  613. cout<<endl;
  614. cout<<"Temperature - 1"<<endl;
  615. cout<<"Length - 2"<<endl;
  616. cout<<"Time - 3"<<endl;
  617. cin>>zx;
  618. if(zx == 1)
  619. {
  620. int v;
  621. float vv;
  622. cout<<endl;
  623. cout<<"==================================================="<<endl;
  624. cout<<"Celsius to Fahrenheit - 1"<<endl;
  625. cout<<"Fahrenheit to Celsius - 2"<<endl;
  626. cout<<endl;
  627. cout<<"Celsius to Kelvin - 3"<<endl;
  628. cout<<"Fahrenheit to Kelvin - 4"<<endl;
  629. cout<<endl;
  630. cout<<"Kelvin to Fahenheit - 5"<<endl;
  631. cout<<"Kelvin to Celsius - 6"<<endl;
  632. cout<<endl;
  633. cin>>v;
  634. if(v == 1)
  635. {
  636. cout<<"Type in your Celsius Value:";
  637. cin>>vv;
  638. cout<<endl;
  639. cout<<(vv * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  640. cout<<"---------------------------------"<<endl;
  641. cin.get();
  642. cin.get();
  643. }
  644. if(v == 2)
  645. {
  646. cout<<"Type in your Fahrenheit Value:";
  647. cin>>vv;
  648. cout<<endl;
  649. cout<<(vv - 32) * 5/9<<"Degrees Celsius"<<endl;
  650. cout<<"---------------------------------"<<endl;
  651. cin.get();
  652. cin.get();
  653. }
  654. if(v == 3)
  655. {
  656. cout<<"Type in your Celsius Value:";
  657. cin>>vv;
  658. cout<<endl;
  659. cout<<(vv + 273.15)<<" Kelvin"<<endl;
  660. cin.get();
  661. cin.get();
  662. }
  663. if(v == 4)
  664. {
  665. cout<<"Type in your Fahrenheit Value:";
  666. cin>>vv;
  667. cout<<endl;
  668. cout<<((vv - 32) * 5/9 + 273.15)<<" Kelvin"<<endl;
  669. cout<<"---------------------------------"<<endl;
  670. cin.get();
  671. cin.get();
  672. }
  673. if(v == 5)
  674. {
  675. cout<<"Type in your Kelvin Value:";
  676. cin>>vv;
  677. cout<<endl;
  678. cout<<((vv - 273.15) * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  679. cout<<"---------------------------------"<<endl;
  680. cin.get();
  681. cin.get();
  682. }
  683. if(v == 6)
  684. {
  685. cout<<"Type in your Kelvin Value:";
  686. cin>>vv;
  687. cout<<endl;
  688. cout<<(vv - 273.15)<<" Degrees Celsius"<<endl;
  689. cout<<"---------------------------------"<<endl;
  690. cin.get();
  691. cin.get();
  692. }
  693. }
  694. if(zx == 2)
  695. {
  696. string aa = "mm-m";
  697. string ab = "mm-km";
  698. string ac = "mm-ft";
  699. string ad = "mm-inch";
  700. string bb = "m-km";
  701. string cc = "ft-inch";
  702. string dd = "inch-ft";
  703. string dda = "inch-m";
  704. string ddb = "inch-mm";
  705. string ee = "m-mm";
  706. string ff = "km-m";
  707. string gg = "ft-m";
  708. string ga = "ft-km";
  709. string hh = "m-ft";
  710. string hha = "km-mm";
  711. string ii = "inch-mm";
  712. string ib = "m-ft";
  713. string ic = "m-inch";
  714. string mm = "km-mile";
  715. string mma = "mile-km";
  716. string mb = "m-mile";
  717. string mba = "mile-m";
  718. string mc = "ft-mile";
  719. string mca = "mile-ft";
  720. string xy;
  721. float yy;
  722. cout<<endl;
  723. cout<<"==================================================="<<endl;
  724. cout<<"Type in your length to convert from and to:"<<endl;
  725. cout<<"(i.e. mm-m, ft-inch, km-mile)"<<endl;
  726. cout<<endl;
  727. cin>>xy;
  728. //              MM-M
  729. if(xy == aa)
  730. {
  731. cout<<endl;
  732. cout<<"Type in your millimetre value:";
  733. cin>>yy;
  734. cout<<(yy / 1000)<<" Meters"<<endl;
  735. cout<<"---------------------------------"<<endl;
  736. cin.get();
  737. cin.get();
  738. }
  739. //              MM-KM
  740. if(xy == ab)
  741. {
  742. cout<<endl;
  743. cout<<"Type in your millimetre value:";
  744. cin>>yy;
  745. cout<<(yy / 1000 / 1000)<<" Kilometers"<<endl;
  746. cout<<"---------------------------------"<<endl;
  747. cin.get();
  748. cin.get();
  749. }
  750. //              MM-FT
  751. if(xy == ac)
  752. {
  753. cout<<endl;
  754. cout<<"Type in your millimetre value:";
  755. cin>>yy;
  756. cout<<(yy * 0.03937) / 12<<" Feet"<<endl;
  757. cout<<"---------------------------------"<<endl;
  758. cin.get();
  759. cin.get();
  760. }
  761. //              MM-INCH
  762. if(xy == ad)
  763. {
  764. cout<<endl;
  765. cout<<"Type in your millimetre value:";
  766. cin>>yy;
  767. cout<<(yy * 0.03937)<<" Inches"<<endl;
  768. cout<<"---------------------------------"<<endl;
  769. cin.get();
  770. cin.get();
  771. }
  772. //              M-KM
  773. if(xy == bb)
  774. {
  775. cout<<endl;
  776. cout<<"Type in your metre value:";
  777. cin>>yy;
  778. cout<<(yy / 1000)<<" Kilometers"<<endl;
  779. cout<<"---------------------------------"<<endl;
  780. cin.get();
  781. cin.get();
  782. }
  783. //              FT-INCH
  784. if(xy == cc)
  785. {
  786. cout<<endl;
  787. cout<<"Type in your Feet value:";
  788. cin>>yy;
  789. cout<<(yy * 12)<<" Inches"<<endl;
  790. cout<<"---------------------------------"<<endl;
  791. cin.get();
  792. cin.get();
  793. }
  794. //              INCH-FT
  795. if(xy == dd)
  796. {
  797. cout<<endl;
  798. cout<<"Type in your Inch value:";
  799. cin>>yy;
  800. cout<<(yy / 12)<<" Feet"<<endl;
  801. cout<<"---------------------------------"<<endl;
  802. cin.get();
  803. cin.get();
  804. }
  805. if(xy == dda)
  806. {
  807. cout<<endl;
  808. cout<<"Type in your Inch value:";
  809. cin>>yy;
  810. cout<<(yy * 0.3048) / 12<<" Meters"<<endl;
  811. cout<<"---------------------------------"<<endl;
  812. cin.get();
  813. cin.get();
  814. }
  815. //              M-MM
  816. if(xy == ee)
  817. {
  818. cout<<endl;
  819. cout<<"Type in your Meter value:";
  820. cin>>yy;
  821. cout<<(yy * 1000)<<" Millimeters"<<endl;
  822. cout<<"---------------------------------"<<endl;
  823. cin.get();
  824. cin.get();
  825. }
  826. //              KM-M
  827. if(xy == ff)
  828. {
  829. cout<<endl;
  830. cout<<"Type in your Kilometer value:";
  831. cin>>yy;
  832. cout<<(yy * 1000)<<" Meters"<<endl;
  833. cout<<"---------------------------------"<<endl;
  834. cin.get();
  835. cin.get();
  836. }
  837. //              FT-MM
  838. if(xy == gg)
  839. {
  840. cout<<endl;
  841. cout<<"Type in your Feet value:";
  842. cin>>yy;
  843. cout<<(yy * 0.3048)<<" Meters"<<endl;
  844. cout<<"---------------------------------"<<endl;
  845. cin.get();
  846. cin.get();
  847. }
  848. if(xy == ga)
  849. {
  850. cout<<endl;
  851. cout<<"Type in your Feet value:";
  852. cin>>yy;
  853. cout<<(yy * 0.0003048)<<" Kilometers"<<endl;
  854. cout<<"---------------------------------"<<endl;
  855. cin.get();
  856. cin.get();
  857. }
  858. //              KM-MM
  859. if(xy == hha)
  860. {
  861. cout<<endl;
  862. cout<<"Type in your kilometer value:";
  863. cin>>yy;
  864. cout<<(yy * 1000 * 1000)<<" Millimeters"<<endl;
  865. cout<<"---------------------------------"<<endl;
  866. cin.get();
  867. cin.get();
  868. }
  869. //              INCH-MM
  870. if(xy == ii)
  871. {
  872. cout<<endl;
  873. cout<<"Type in your inch value:";
  874. cin>>yy;
  875. cout<<(yy / 0.03937)<<" Millimeters"<<endl;
  876. cout<<"---------------------------------"<<endl;
  877. cin.get();
  878. cin.get();
  879. }
  880. //              MM-FT
  881. if(xy == ib)
  882. {
  883. cout<<endl;
  884. cout<<"Type in your Meter value:";
  885. cin>>yy;
  886. cout<<((yy * 39.37) / 12)<<" Feet"<<endl;
  887. cout<<"---------------------------------"<<endl;
  888. cin.get();
  889. cin.get();
  890. }
  891. //              MM-INCH
  892. if(xy == ic)
  893. {
  894. cout<<endl;
  895. cout<<"Type in your Meter value:";
  896. cin>>yy;
  897. cout<<(yy * 39.37)<<" Inches"<<endl;
  898. cout<<"---------------------------------"<<endl;
  899. cin.get();
  900. cin.get();
  901. }
  902. //              KM-Miles
  903. if(xy == mm)
  904. {
  905. cout<<endl;
  906. cout<<"Type in your Kilometer value:";
  907. cin>>yy;
  908. cout<<(yy * 0.6214)<<" Miles"<<endl;
  909. cout<<"---------------------------------"<<endl;
  910. cin.get();
  911. cin.get();
  912. }
  913. //              MILE-KM
  914. if(xy == mma)
  915. {
  916. cout<<endl;
  917. cout<<"Type in your Mile value:";
  918. cin>>yy;
  919. cout<<(yy * 1.609)<<" Kilometers"<<endl;
  920. cout<<"---------------------------------"<<endl;
  921. cin.get();
  922. cin.get();
  923. }
  924. //              M-MILE
  925. if(xy == mb)
  926. {
  927. cout<<endl;
  928. cout<<"Type in your Meter value:";
  929. cin>>yy;
  930. cout<<(yy * 0.0006214)<<" Miles"<<endl;
  931. cout<<"---------------------------------"<<endl;
  932. cin.get();
  933. cin.get();
  934. }
  935. }
  936. //              TIME CONVERTER
  937. if(zx == 3)
  938. {
  939. string at = "mins-hours";
  940. string ata = "mins-days";
  941. string atb = "mins-weeks";
  942. string atc = "mins-months";
  943. string atd = "mins-years";
  944. string bt = "hours-mins";
  945. string bta = "hours-days";
  946. string btb = "hours-weeks";
  947. string btc = "hours-months";
  948. string btd = "hours-years";
  949. string ct = "days-mins";
  950. string cta = "days-hours";
  951. string ctb = "days-weeks";
  952. string ctc = "days-months";
  953. string ctd = "days-years";
  954. string dt = "weeks-mins";
  955. string dta = "weeks-hours";
  956. string dtb = "weeks-days";
  957. string dtc = "weeks-months";
  958. string dtd = "weeks-years";
  959. string et = "months-mins";
  960. string eta = "months-hours";
  961. string etb = "months-days";
  962. string etc = "months-weeks";
  963. string etd = "months-years";
  964. string ft = "years-mins";
  965. string fta = "years-hours";
  966. string ftb = "years-days";
  967. string ftc = "years-weeks";
  968. string ftd = "years-months";
  969. string coni;
  970. float mt;
  971. cout<<endl;
  972. cout<<"Type in your time to convert from and to:"<<endl;
  973. cout<<"(i.e. mins-hours, months-weeks, days-years)"<<endl;
  974. cin>>coni;
  975. if(coni == at)
  976. {
  977. cout<<endl;
  978. cout<<"type in your minute value:";
  979. cin>>mt;
  980. cout<<endl;
  981. cout<<(mt / 60)<<" Hours"<<endl;
  982. cout<<"---------------------------------"<<endl;
  983. cin.get();
  984. cin.get();
  985. }
  986. if(coni == ata)
  987. {
  988. cout<<endl;
  989. cout<<"type in your minute value:";
  990. cin>>mt;
  991. cout<<endl;
  992. cout<<(mt / 60) / 24<<" Days"<<endl;
  993. cout<<"---------------------------------"<<endl;
  994. cin.get();
  995. cin.get();
  996. }
  997. if(coni == atb)
  998. {
  999. cout<<endl;
  1000. cout<<"type in your minute value:";
  1001. cin>>mt;
  1002. cout<<endl;
  1003. cout<<((mt / 60) / 24) / 7<<" Weeks"<<endl;
  1004. cout<<"---------------------------------"<<endl;
  1005. cin.get();
  1006. cin.get();
  1007. }
  1008. if(coni == atc)
  1009. {
  1010. cout<<endl;
  1011. cout<<"type in your minute value:";
  1012. cin>>mt;
  1013. cout<<endl;
  1014. cout<<(((mt / 60) / 24) / 7) / 4.3<<" Months"<<endl;
  1015. cout<<"---------------------------------"<<endl;
  1016. cin.get();
  1017. cin.get();
  1018. }
  1019. if(coni == atd)
  1020. {
  1021. cout<<endl;
  1022. cout<<"type in your minute value:";
  1023. cin>>mt;
  1024. cout<<endl;
  1025. cout<<((((mt / 60) / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  1026. cout<<"---------------------------------"<<endl;
  1027. cin.get();
  1028. cin.get();
  1029. }
  1030. if(coni == bt)
  1031. {
  1032. cout<<endl;
  1033. cout<<"type in your hours value:";
  1034. cin>>mt;
  1035. cout<<endl;
  1036. cout<<(mt * 60)<<" Minutes"<<endl;
  1037. cout<<"---------------------------------"<<endl;
  1038. cin.get();
  1039. cin.get();
  1040. }
  1041. if(coni == bta)
  1042. {
  1043. cout<<endl;
  1044. cout<<"type in your hours value:";
  1045. cin>>mt;
  1046. cout<<endl;
  1047. cout<<(mt / 24)<<" Days"<<endl;
  1048. cout<<"---------------------------------"<<endl;
  1049. cin.get();
  1050. cin.get();
  1051. }
  1052. if(coni == btb)
  1053. {
  1054. cout<<endl;
  1055. cout<<"type in your hours value:";
  1056. cin>>mt;
  1057. cout<<endl;
  1058. cout<<(mt / 24) / 7<<" Weeks"<<endl;
  1059. cout<<"---------------------------------"<<endl;
  1060. cin.get();
  1061. cin.get();
  1062. }
  1063. if(coni == btc)
  1064. {
  1065. cout<<endl;
  1066. cout<<"type in your hours value:";
  1067. cin>>mt;
  1068. cout<<endl;
  1069. cout<<((mt / 24) / 7) / 4.3<<" Months"<<endl;
  1070. cout<<"---------------------------------"<<endl;
  1071. cin.get();
  1072. cin.get();
  1073. }
  1074. if(coni == btd)
  1075. {
  1076. cout<<endl;
  1077. cout<<"type in your hours value:";
  1078. cin>>mt;
  1079. cout<<endl;
  1080. cout<<(((mt / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  1081. cout<<"---------------------------------"<<endl;
  1082. cin.get();
  1083. cin.get();
  1084. }
  1085. if(coni == ct)
  1086. {
  1087. cout<<endl;
  1088. cout<<"type in your days value:";
  1089. cin>>mt;
  1090. cout<<endl;
  1091. cout<<(mt * 24) * 60<<" Minutes"<<endl;
  1092. cout<<"---------------------------------"<<endl;
  1093. cin.get();
  1094. cin.get();
  1095. }
  1096. if(coni == cta)
  1097. {
  1098. cout<<endl;
  1099. cout<<"type in your days value:";
  1100. cin>>mt;
  1101. cout<<endl;
  1102. cout<<(mt * 24)<<" Hours"<<endl;
  1103. cout<<"---------------------------------"<<endl;
  1104. cin.get();
  1105. cin.get();
  1106. }
  1107. if(coni == ctb)
  1108. {
  1109. cout<<endl;
  1110. cout<<"type in your days value:";
  1111. cin>>mt;
  1112. cout<<endl;
  1113. cout<<(mt / 7)<<" Weeks"<<endl;
  1114. cout<<"---------------------------------"<<endl;
  1115. cin.get();
  1116. cin.get();
  1117. }
  1118. if(coni == ctc)
  1119. {
  1120. cout<<endl;
  1121. cout<<"type in your days value:";
  1122. cin>>mt;
  1123. cout<<endl;
  1124. cout<<(mt / 7) / 4.3<<" Months"<<endl;
  1125. cout<<"---------------------------------"<<endl;
  1126. cin.get();
  1127. cin.get();
  1128. }
  1129. if(coni == ctd)
  1130. {
  1131. cout<<endl;
  1132. cout<<"type in your days value:";
  1133. cin>>mt;
  1134. cout<<endl;
  1135. cout<<((mt / 7) / 4.3) / 12<<" Years"<<endl;
  1136. cout<<"---------------------------------"<<endl;
  1137. cin.get();
  1138. cin.get();
  1139. }
  1140. if(coni == dt)
  1141. {
  1142. cout<<endl;
  1143. cout<<"type in your weeks value:";
  1144. cin>>mt;
  1145. cout<<endl;
  1146. cout<<((mt * 7) * 24) * 60<<" Minutes"<<endl;
  1147. cout<<"---------------------------------"<<endl;
  1148. cin.get();
  1149. cin.get();
  1150. }
  1151. if(coni == dta)
  1152. {
  1153. cout<<endl;
  1154. cout<<"type in your weeks value:";
  1155. cin>>mt;
  1156. cout<<endl;
  1157. cout<<(mt * 7) * 24<<" Hours"<<endl;
  1158. cout<<"---------------------------------"<<endl;
  1159. cin.get();
  1160. cin.get();
  1161. }
  1162. if(coni == dtb)
  1163. {
  1164. cout<<endl;
  1165. cout<<"type in your weeks value:";
  1166. cin>>mt;
  1167. cout<<endl;
  1168. cout<<(mt * 7)<<" Days"<<endl;
  1169. cout<<"---------------------------------"<<endl;
  1170. cin.get();
  1171. cin.get();
  1172. }
  1173. if(coni == dtc)
  1174. {
  1175. cout<<endl;
  1176. cout<<"type in your weeks value:";
  1177. cin>>mt;
  1178. cout<<endl;
  1179. cout<<(mt / 4.3)<<" Months"<<endl;
  1180. cout<<"---------------------------------"<<endl;
  1181. cin.get();
  1182. cin.get();
  1183. }
  1184. if(coni == dtd)
  1185. {
  1186. cout<<endl;
  1187. cout<<"type in your weeks value:";
  1188. cin>>mt;
  1189. cout<<endl;
  1190. cout<<(mt / 4.3) / 12<<" Years"<<endl;
  1191. cout<<"---------------------------------"<<endl;
  1192. cin.get();
  1193. cin.get();
  1194. }
  1195. if(coni == et)
  1196. {
  1197. cout<<endl;
  1198. cout<<"type in your months value:";
  1199. cin>>mt;
  1200. cout<<endl;
  1201. cout<<(mt * 4.3 * 7 * 24 * 60)<<" Minutes"<<endl;
  1202. cout<<"---------------------------------"<<endl;
  1203. cin.get();
  1204. cin.get();
  1205. }
  1206. if(coni == eta)
  1207. {
  1208. cout<<endl;
  1209. cout<<"type in your months value:";
  1210. cin>>mt;
  1211. cout<<endl;
  1212. cout<<(mt * 4.3 * 7 * 24)<<" Hours"<<endl;
  1213. cout<<"---------------------------------"<<endl;
  1214. cin.get();
  1215. cin.get();
  1216. }
  1217. if(coni == etb)
  1218. {
  1219. cout<<endl;
  1220. cout<<"type in your months value:";
  1221. cin>>mt;
  1222. cout<<endl;
  1223. cout<<(mt * 4.3 * 7)<<" Days"<<endl;
  1224. cout<<"---------------------------------"<<endl;
  1225. cin.get();
  1226. cin.get();
  1227. }
  1228. if(coni == etc)
  1229. {
  1230. cout<<endl;
  1231. cout<<"type in your months value:";
  1232. cin>>mt;
  1233. cout<<endl;
  1234. cout<<(mt * 4.3 * 7)<<" Weeks"<<endl;
  1235. cout<<"---------------------------------"<<endl;
  1236. cin.get();
  1237. cin.get();
  1238. }
  1239. if(coni == etd)
  1240. {
  1241. cout<<endl;
  1242. cout<<"type in your months value:";
  1243. cin>>mt;
  1244. cout<<endl;
  1245. cout<<(mt / 7)<<" Years"<<endl;
  1246. cout<<"---------------------------------"<<endl;
  1247. cin.get();
  1248. cin.get();
  1249. }
  1250. if(coni == ft)
  1251. {
  1252. cout<<endl;
  1253. cout<<"type in your years value:";
  1254. cin>>mt;
  1255. cout<<endl;
  1256. cout<<(mt * 12 * 4.3 * 7 * 24 * 60)<<" Minutes"<<endl;
  1257. cout<<"---------------------------------"<<endl;
  1258. cin.get();
  1259. cin.get();
  1260. }
  1261. if(coni == fta)
  1262. {
  1263. cout<<endl;
  1264. cout<<"type in your years value:";
  1265. cin>>mt;
  1266. cout<<endl;
  1267. cout<<(mt * 12 * 4.3 * 7 * 24)<<" Hours"<<endl;
  1268. cout<<"---------------------------------"<<endl;
  1269. cin.get();
  1270. cin.get();
  1271. }
  1272. if(coni == fta)
  1273. {
  1274. cout<<endl;
  1275. cout<<"type in your years value:";
  1276. cin>>mt;
  1277. cout<<endl;
  1278. cout<<(mt * 12 * 4.3 * 7)<<" Days"<<endl;
  1279. cout<<"---------------------------------"<<endl;
  1280. cin.get();
  1281. cin.get();
  1282. }
  1283. if(coni == ftb)
  1284. {
  1285. cout<<endl;
  1286. cout<<"type in your years value:";
  1287. cin>>mt;
  1288. cout<<endl;
  1289. cout<<(mt * 12 * 4.3)<<" Weeks"<<endl;
  1290. cout<<"---------------------------------"<<endl;
  1291. cin.get();
  1292. cin.get();
  1293. }
  1294. if(coni == ftc)
  1295. {
  1296. cout<<endl;
  1297. cout<<"type in your years value:";
  1298. cin>>mt;
  1299. cout<<endl;
  1300. cout<<(mt * 12)<<" Months"<<endl;
  1301. cout<<"---------------------------------"<<endl;
  1302. cin.get();
  1303. cin.get();
  1304. }
  1305. }
  1306. cout<<endl;
  1307. cout<<"Do another conversion - press 1"<<endl;
  1308. cout<<"Exit - Press 2"<<endl;
  1309. cin>>hh;
  1310. }
  1311. while(hh == 1);
  1312. }
  1313. //
  1314. class Small
  1315. {
  1316. public:
  1317. void white();
  1318. };
  1319. void Small::white()
  1320. {
  1321. cout<<endl;
  1322. cout<<endl;
  1323. cout<<endl;
  1324. cout<<endl;
  1325. cout<<endl;
  1326. cout<<endl;
  1327. cout<<endl;
  1328. cout<<endl;
  1329. cout<<endl;
  1330. cout<<endl;
  1331. cout<<endl;
  1332. cout<<endl;
  1333. cout<<endl;
  1334. cout<<endl;
  1335. cout<<endl;
  1336. cout<<endl;
  1337. cout<<endl;
  1338. cout<<endl;
  1339. cout<<endl;
  1340. cout<<endl;
  1341. cout<<endl;
  1342. cout<<endl;
  1343. }
  1344. class Read
  1345. {
  1346. public:
  1347. void helpsh();
  1348. };
  1349. void Read::helpsh()
  1350. {
  1351. cout<<endl;
  1352. cout<<"print - this will let the you input text and it will print this text in a comfortable reading format"<<endl;
  1353. cout<<endl;
  1354. cout<<"run_writer - this will launch the writer application"<<endl;
  1355. cout<<endl;
  1356. cout<<"run_calc - this will launch the calculator application"<<endl;
  1357. cout<<endl;
  1358. cout<<"run_calc.av - this will launch the average calculator application"<<endl;
  1359. cout<<endl;
  1360. cout<<"run_rand - this will launch the random number generator application"<<endl;
  1361. cout<<endl;
  1362. cout<<"run_grid - runs the table application, which lets you display numbers in a table format"<<endl;
  1363. cout<<endl;
  1364. cout<<"run_convert - opens the unit converter application"<<endl;
  1365. cout<<endl;
  1366. cout<<"run_speed - opens the speed calculator"<<endl;
  1367. cout<<endl;
  1368. cout<<"run_distance - this will launch the distance calculator"<<endl;
  1369. cout<<endl;
  1370. cout<<"version - this will present information about the version of this software"<<endl;
  1371. cout<<endl;
  1372. cout<<"clear - clears all the contents off the window"<<endl;
  1373. cout<<endl;
  1374. cout<<"help - defines all commands (how you got here)"<<endl;
  1375. }
  1376. class Math
  1377. {
  1378. private:
  1379. float aa, bb, cc, dd, ee;
  1380. public:
  1381. void Calc();
  1382. void Av();
  1383. void Rando();
  1384. void Ncell();
  1385. };
  1386. //              NCELL DECRLARATION
  1387. void Math::Ncell()
  1388. {
  1389. int nap;
  1390. float na;
  1391. float nb;
  1392. float nc;
  1393. float nd;
  1394. float ne;
  1395. float nf;
  1396. float ng;
  1397. float nh;
  1398. float ni;
  1399. float nj;
  1400. float nk;
  1401. float nl;
  1402. float nm;
  1403. float nn;
  1404. float no;
  1405. float np;
  1406. float nq;
  1407. float nr;
  1408. float ns;
  1409. string ch;
  1410. int cy;
  1411. do
  1412. {
  1413. cout<<endl;
  1414. cout<<"============="<<endl;
  1415. cout<<"Number Grider"<<endl;
  1416. cout<<"============="<<endl;
  1417. cout<<endl;
  1418. cout<<"How many cells are you working with (max 20)"<<endl;
  1419. cin>>cy;
  1420. if(cy == 2)
  1421. {
  1422. cout<<"Enter cell 1:";
  1423. cin>>na;
  1424. cout<<"Enter cell 2:";
  1425. cin>>nb;
  1426. cout<<"------"<<"------"<<endl;
  1427. cout<<"|-"<<na<<"-|-"<<nb<<"-|"<<endl;
  1428. cout<<"------"<<"------"<<endl;
  1429. cin.get();
  1430. cin.get();
  1431. }
  1432. if(cy == 3)
  1433. {
  1434. cout<<"Enter cell 1:";
  1435. cin>>na;
  1436. cout<<endl;
  1437. cout<<"Enter cell 2:";
  1438. cin>>nb;
  1439. cout<<"Enter cell 3:";
  1440. cin>>nc;
  1441. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1442. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1443. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1444. cin.get();
  1445. cin.get();
  1446. }
  1447. if(cy == 4)
  1448. {
  1449. cout<<"Enter cell 1:";
  1450. cin>>na;
  1451. cout<<"Enter cell 2:";
  1452. cin>>nb;
  1453. cout<<endl;
  1454. cout<<"Enter cell 3:";
  1455. cin>>nc;
  1456. cout<<"Enter cell 4:";
  1457. cin>>nd;
  1458. cout<<"------"<<"------"<<"------"<<endl;
  1459. cout<<"|-"<<na<<"-|-"<<nb<<"-|"<<endl;
  1460. cout<<"------"<<"------"<<"------"<<endl;
  1461. cout<<"------"<<"------"<<"------"<<endl;
  1462. cout<<"|-"<<nc<<"-|-"<<nd<<"-|"<<endl;
  1463. cout<<"------"<<"------"<<"------"<<endl;
  1464. cin.get();
  1465. cin.get();
  1466. }
  1467. if(cy == 5)
  1468. {
  1469. cout<<"Enter cell 1:";
  1470. cin>>na;
  1471. cout<<endl;
  1472. cout<<"Enter cell 2:";
  1473. cin>>nb;
  1474. cout<<"Enter cell 3:";
  1475. cin>>nc;
  1476. cout<<endl;
  1477. cout<<"Enter cell 4:";
  1478. cin>>nd;
  1479. cout<<"Enter cell 5:";
  1480. cin>>ne;
  1481. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1482. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1483. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1484. cout<<"------"<<"------"<<"------"<<endl;
  1485. cout<<"|-"<<nd<<"-|-"<<ne<<"-|"<<endl;
  1486. cout<<"------"<<"------"<<"------"<<endl;
  1487. cin.get();
  1488. cin.get();
  1489. }
  1490. if(cy == 6)
  1491. {
  1492. cout<<"Enter cell 1:";
  1493. cin>>na;
  1494. cout<<"Enter cell 2:";
  1495. cin>>nb;
  1496. cout<<endl;
  1497. cout<<"Enter cell 3:";
  1498. cin>>nc;
  1499. cout<<"Enter cell 4:";
  1500. cin>>nd;
  1501. cout<<endl;
  1502. cout<<"Enter cell 5:";
  1503. cin>>ne;
  1504. cout<<"Enter cell 6:";
  1505. cin>>nf;
  1506. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1507. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1508. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1509. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1510. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1511. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1512. cin.get();
  1513. cin.get();
  1514. }
  1515. if(cy == 7)
  1516. {
  1517. cout<<"Enter cell 1:";
  1518. cin>>na;
  1519. cout<<endl;
  1520. cout<<"Enter cell 2:";
  1521. cin>>nb;
  1522. cout<<"Enter cell 3:";
  1523. cin>>nc;
  1524. cout<<endl;
  1525. cout<<"Enter cell 4:";
  1526. cin>>nd;
  1527. cout<<"Enter cell 5:";
  1528. cin>>ne;
  1529. cout<<endl;
  1530. cout<<"Enter cell 6:";
  1531. cin>>nf;
  1532. cout<<"Enter cell 7:";
  1533. cin>>ng;
  1534. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1535. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1536. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1537. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1538. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1539. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1540. cout<<"------"<<endl;
  1541. cout<<"|-"<<ng<<"-|"<<endl;
  1542. cout<<"------"<<endl;
  1543. cin.get();
  1544. cin.get();
  1545. }
  1546. if(cy == 8)
  1547. {
  1548. cout<<"Enter cell 1:";
  1549. cin>>na;
  1550. cout<<"Enter cell 2:";
  1551. cin>>nb;
  1552. cout<<endl;
  1553. cout<<"Enter cell 3:";
  1554. cin>>nc;
  1555. cout<<"Enter cell 4:";
  1556. cin>>nd;
  1557. cout<<endl;
  1558. cout<<"Enter cell 5:";
  1559. cin>>ne;
  1560. cout<<"Enter cell 6:";
  1561. cin>>nf;
  1562. cout<<endl;
  1563. cout<<"Enter cell 7:";
  1564. cin>>ng;
  1565. cout<<"Enter cell 8";
  1566. cin>>nh;
  1567. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1568. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1569. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1570. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1571. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1572. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1573. cout<<"------"<<"------"<<endl;
  1574. cout<<"|-"<<ng<<"-|-"<<nh<<"-|"<<endl;
  1575. cout<<"------"<<"------"<<endl;
  1576. cin.get();
  1577. cin.get();
  1578. }
  1579. if(cy == 9)
  1580. {
  1581. cout<<"Enter cell 1:";
  1582. cin>>na;
  1583. cout<<"Enter cell 2:";
  1584. cin>>nb;
  1585. cout<<endl;
  1586. cout<<"Enter cell 3:";
  1587. cin>>nc;
  1588. cout<<"Enter cell 4:";
  1589. cin>>nd;
  1590. cout<<endl;
  1591. cout<<"Enter cell 5:";
  1592. cin>>ne;
  1593. cout<<"Enter cell 6:";
  1594. cin>>nf;
  1595. cout<<endl;
  1596. cout<<"Enter cell 7:";
  1597. cin>>ng;
  1598. cout<<"Enter cell 8:";
  1599. cin>>nh;
  1600. cout<<endl;
  1601. cout<<"Enter cell 9:";
  1602. cin>>ni;
  1603. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1604. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1605. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1606. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1607. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1608. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1609. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1610. cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  1611. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1612. cin.get();
  1613. cin.get();
  1614. }
  1615. if(cy == 10)
  1616. {
  1617. cout<<"Enter cell 1:";
  1618. cin>>na;
  1619. cout<<"Enter cell 2:";
  1620. cin>>nb;
  1621. cout<<endl;
  1622. cout<<"Enter cell 3:";
  1623. cin>>nc;
  1624. cout<<"Enter cell 4:";
  1625. cin>>nd;
  1626. cout<<endl;
  1627. cout<<"Enter cell 5:";
  1628. cin>>ne;
  1629. cout<<"Enter cell 6:";
  1630. cin>>nf;
  1631. cout<<endl;
  1632. cout<<"Enter cell 7:";
  1633. cin>>ng;
  1634. cout<<"Enter cell 8:";
  1635. cin>>nh;
  1636. cout<<endl;
  1637. cout<<"Enter cell 9:";
  1638. cin>>ni;
  1639. cout<<"Enter cell 10:";
  1640. cin>>nj;
  1641. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1642. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1643. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1644. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1645. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1646. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1647. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1648. cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  1649. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1650. cout<<"------"<<endl;
  1651. cout<<"|-"<<nj<<"-|"<<endl;
  1652. cout<<"------"<<endl;
  1653. cin.get();
  1654. cin.get();
  1655. }
  1656. if(cy == 11)
  1657. {
  1658. cout<<"Enter cell 1:";
  1659. cin>>na;
  1660. cout<<"Enter cell 2:";
  1661. cin>>nb;
  1662. cout<<endl;
  1663. cout<<"Enter cell 3:";
  1664. cin>>nc;
  1665. cout<<"Enter cell 4:";
  1666. cin>>nd;
  1667. cout<<endl;
  1668. cout<<"Enter cell 5:";
  1669. cin>>ne;
  1670. cout<<"Enter cell 6:";
  1671. cin>>nf;
  1672. cout<<endl;
  1673. cout<<"Enter cell 7:";
  1674. cin>>ng;
  1675. cout<<"Enter cell 8:";
  1676. cin>>nh;
  1677. cout<<endl;
  1678. cout<<"Enter cell 9:";
  1679. cin>>ni;
  1680. cout<<"Enter cell 10:";
  1681. cin>>nj;
  1682. cout<<endl;
  1683. cout<<"Enter cell 11:";
  1684. cin>>nk;
  1685. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1686. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1687. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1688. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1689. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1690. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1691. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1692. cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  1693. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1694. cout<<"------"<<"------"<<endl;
  1695. cout<<"|-"<<nj<<"-|-"<<nk<<"-|"<<endl;
  1696. cout<<"------"<<"------"<<endl;
  1697. cin.get();
  1698. cin.get();
  1699. }
  1700. if(cy == 12)
  1701. {
  1702. cout<<"Enter cell 1:";
  1703. cin>>na;
  1704. cout<<"Enter cell 2:";
  1705. cin>>nb;
  1706. cout<<endl;
  1707. cout<<"Enter cell 3:";
  1708. cin>>nc;
  1709. cout<<"Enter cell 4:";
  1710. cin>>nd;
  1711. cout<<endl;
  1712. cout<<"Enter cell 5:";
  1713. cin>>ne;
  1714. cout<<"Enter cell 6:";
  1715. cin>>nf;
  1716. cout<<endl;
  1717. cout<<"Enter cell 7:";
  1718. cin>>ng;
  1719. cout<<"Enter cell 8:";
  1720. cin>>nh;
  1721. cout<<endl;
  1722. cout<<"Enter cell 9:";
  1723. cin>>ni;
  1724. cout<<"Enter cell 10:";
  1725. cin>>nj;
  1726. cout<<endl;
  1727. cout<<"Enter cell 11:";
  1728. cin>>nk;
  1729. cout<<"Enter cell 12:";
  1730. cin>>nl;
  1731. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1732. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  1733. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1734. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1735. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1736. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1737. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1738. cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  1739. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1740. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1741. cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  1742. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1743. cin.get();
  1744. cin.get();
  1745. }
  1746. if(cy == 13)
  1747. {
  1748. cout<<"Enter cell 1:";
  1749. cin>>na;
  1750. cout<<"Enter cell 2:";
  1751. cin>>nb;
  1752. cout<<endl;
  1753. cout<<"Enter cell 3:";
  1754. cin>>nc;
  1755. cout<<"Enter cell 4:";
  1756. cin>>nd;
  1757. cout<<endl;
  1758. cout<<"Enter cell 5:";
  1759. cin>>ne;
  1760. cout<<"Enter cell 6:";
  1761. cin>>nf;
  1762. cout<<endl;
  1763. cout<<"Enter cell 7:";
  1764. cin>>ng;
  1765. cout<<"Enter cell 8:";
  1766. cin>>nh;
  1767. cout<<endl;
  1768. cout<<"Enter cell 9:";
  1769. cin>>ni;
  1770. cout<<"Enter cell 10:";
  1771. cin>>nj;
  1772. cout<<"Enter cell 11:";
  1773. cin>>nk;
  1774. cout<<"Enter cell 12:";
  1775. cin>>nl;
  1776. cout<<"Enter cell 13:";
  1777. cin>>nm;
  1778. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1779. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<nm<<"-|"<<endl;
  1780. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1781. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1782. cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  1783. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1784. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1785. cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  1786. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1787. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1788. cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  1789. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1790. cin.get();
  1791. cin.get();
  1792. }
  1793. if(cy == 14)
  1794. {
  1795. cout<<"Enter cell 1:";
  1796. cin>>na;
  1797. cout<<"Enter cell 2:";
  1798. cin>>nb;
  1799. cout<<endl;
  1800. cout<<"Enter cell 3:";
  1801. cin>>nc;
  1802. cout<<"Enter cell 4:";
  1803. cin>>nd;
  1804. cout<<endl;
  1805. cout<<"Enter cell 5:";
  1806. cin>>ne;
  1807. cout<<"Enter cell 6:";
  1808. cin>>nf;
  1809. cout<<endl;
  1810. cout<<"Enter cell 7:";
  1811. cin>>ng;
  1812. cout<<"Enter cell 8:";
  1813. cin>>nh;
  1814. cout<<endl;
  1815. cout<<"Enter cell 9:";
  1816. cin>>ni;
  1817. cout<<"Enter cell 10:";
  1818. cin>>nj;
  1819. cout<<"Enter cell 11:";
  1820. cin>>nk;
  1821. cout<<"Enter cell 12:";
  1822. cin>>nl;
  1823. cout<<"Enter cell 13:";
  1824. cin>>nm;
  1825. cout<<endl;
  1826. cout<<"Enter cell 14:";
  1827. cin>>nn;
  1828. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1829. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<ne<<"-|"<<endl;
  1830. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1831. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1832. cout<<"|-"<<nf<<"-|-"<<ng<<"-|-"<<nh<<"-"<<ni<<"-|"<<endl;
  1833. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1834. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1835. cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  1836. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1837. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1838. cout<<"|-"<<nm<<"-|-"<<nn<<"-|-"<<no<<"-|"<<endl;
  1839. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1840. cin.get();
  1841. cin.get();
  1842. }
  1843. if(cy == 15)
  1844. {
  1845. cout<<"Enter cell 1:";
  1846. cin>>na;
  1847. cout<<"Enter cell 2:";
  1848. cin>>nb;
  1849. cout<<endl;
  1850. cout<<"Enter cell 3:";
  1851. cin>>nc;
  1852. cout<<"Enter cell 4:";
  1853. cin>>nd;
  1854. cout<<endl;
  1855. cout<<"Enter cell 5:";
  1856. cin>>ne;
  1857. cout<<"Enter cell 6:";
  1858. cin>>nf;
  1859. cout<<endl;
  1860. cout<<"Enter cell 7:";
  1861. cin>>ng;
  1862. cout<<"Enter cell 8:";
  1863. cin>>nh;
  1864. cout<<endl;
  1865. cout<<"Enter cell 9:";
  1866. cin>>ni;
  1867. cout<<"Enter cell 10:";
  1868. cin>>nj;
  1869. cout<<"Enter cell 11:";
  1870. cin>>nk;
  1871. cout<<"Enter cell 12:";
  1872. cin>>nl;
  1873. cout<<"Enter cell 13:";
  1874. cin>>nm;
  1875. cout<<endl;
  1876. cout<<"Enter cell 14:";
  1877. cin>>nn;
  1878. cout<<"Enter cell 15:";
  1879. cin>>no;
  1880. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1881. cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<nd<<"-|"<<endl;
  1882. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1883. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1884. cout<<"|-"<<ne<<"-|-"<<nf<<"-|-"<<ng<<"-"<<nh<<"-|"<<endl;
  1885. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1886. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1887. cout<<"|-"<<ni<<"-|-"<<nj<<"-|-"<<nk<<"-"<<nl<<"-|"<<endl;
  1888. cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  1889. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1890. cout<<"|-"<<nm<<"-|-"<<nn<<"-|-"<<no<<"-|"<<endl;
  1891. cout<<"------"<<"------"<<"------"<<"------"<<endl;
  1892. cin.get();
  1893. cin.get();
  1894. }
  1895. cout<<endl;
  1896. cout<<"Make another grid - 1"<<endl;
  1897. cout<<"Exit - 2"<<endl;
  1898. cin>>nap;
  1899. }while(nap == 1);
  1900. }
  1901. //          RANDOM NUMBER DECLARATION
  1902. void Math::Rando()
  1903. {
  1904. int xn;
  1905. do
  1906. {
  1907. int pi;
  1908. int phi;
  1909. int o;
  1910. int ii;
  1911. int ddd;
  1912. cout<<endl;
  1913. cout<<"======================="<<endl;
  1914. cout<<"Random Number Genorator"<<endl;
  1915. cout<<"======================="<<endl;
  1916. cout<<endl;
  1917. cout<<"|Custom - Press 1 | ";
  1918. cout<<"1 to 10 - Press 2 | ";
  1919. cout<<"1 to 50 - Press 3 | ";
  1920. cout<<"1 to 100 - Press 4|";
  1921. cin>>o;
  1922. cout<<endl;
  1923. cout<<"Amount of numbers (20 max):";
  1924. cin>>phi;
  1925. do
  1926. {
  1927. if(o == 1)
  1928. {
  1929. pi++;
  1930. cout<<endl;
  1931. cout<<"From 1 to : ";
  1932. cin>>ddd;
  1933. srand(time(0));
  1934. for(ii = 0; ii < 1; ii++)
  1935. {
  1936. if(phi == 1)
  1937. {
  1938. cout<<endl;
  1939. cout<<"Random Number: "<<rand()%ddd<<endl;
  1940. cout<<"--------------------------------------------------------------------------------"<<endl;
  1941. cin.get();
  1942. cin.get();
  1943. }
  1944. if(phi == 2)
  1945. {
  1946. cout<<endl;
  1947. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1948. cout<<"--------------------------------------------------------------------------------"<<endl;
  1949. cin.get();
  1950. cin.get();
  1951. }
  1952. if(phi == 3)
  1953. {
  1954. cout<<endl;
  1955. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1956. cout<<"--------------------------------------------------------------------------------"<<endl;
  1957. cin.get();
  1958. cin.get();
  1959. }
  1960. if(phi == 4)
  1961. {
  1962. cout<<endl;
  1963. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1964. cout<<"--------------------------------------------------------------------------------"<<endl;
  1965. cin.get();
  1966. cin.get();
  1967. }
  1968. if(phi == 5)
  1969. {
  1970. cout<<endl;
  1971. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1972. cout<<"--------------------------------------------------------------------------------"<<endl;
  1973. cin.get();
  1974. cin.get();
  1975. }
  1976. if(phi == 6)
  1977. {
  1978. cout<<endl;
  1979. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1980. cout<<"--------------------------------------------------------------------------------"<<endl;
  1981. cin.get();
  1982. cin.get();
  1983. }
  1984. if(phi == 7)
  1985. {
  1986. cout<<endl;
  1987. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1988. cout<<"--------------------------------------------------------------------------------"<<endl;
  1989. cin.get();
  1990. cin.get();
  1991. }
  1992. if(phi == 8)
  1993. {
  1994. cout<<endl;
  1995. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  1996. cout<<"--------------------------------------------------------------------------------"<<endl;
  1997. cin.get();
  1998. cin.get();
  1999. }
  2000. if(phi == 9)
  2001. {
  2002. cout<<endl;
  2003. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2004. cout<<"--------------------------------------------------------------------------------"<<endl;
  2005. cin.get();
  2006. cin.get();
  2007. }
  2008. if(phi == 10)
  2009. {
  2010. cout<<endl;
  2011. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2012. cout<<"--------------------------------------------------------------------------------"<<endl;
  2013. cin.get();
  2014. cin.get();
  2015. }
  2016. if(phi == 11)
  2017. {
  2018. cout<<endl;
  2019. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2020. cout<<"--------------------------------------------------------------------------------"<<endl;
  2021. cin.get();
  2022. cin.get();
  2023. }
  2024. if(phi == 12)
  2025. {
  2026. cout<<endl;
  2027. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2028. cout<<"--------------------------------------------------------------------------------"<<endl;
  2029. cin.get();
  2030. cin.get();
  2031. }
  2032. if(phi == 13)
  2033. {
  2034. cout<<endl;
  2035. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2036. cout<<"--------------------------------------------------------------------------------"<<endl;
  2037. cin.get();
  2038. cin.get();
  2039. }
  2040. if(phi == 14)
  2041. {
  2042. cout<<endl;
  2043. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2044. cout<<"--------------------------------------------------------------------------------"<<endl;
  2045. cin.get();
  2046. cin.get();
  2047. }
  2048. if(phi == 15)
  2049. {
  2050. cout<<endl;
  2051. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2052. cout<<"--------------------------------------------------------------------------------"<<endl;
  2053. cin.get();
  2054. cin.get();
  2055. }
  2056. if(phi == 16)
  2057. {
  2058. cout<<endl;
  2059. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2060. cout<<"--------------------------------------------------------------------------------"<<endl;
  2061. cin.get();
  2062. cin.get();
  2063. }
  2064. if(phi == 17)
  2065. {
  2066. cout<<endl;
  2067. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2068. cout<<"--------------------------------------------------------------------------------"<<endl;
  2069. cin.get();
  2070. cin.get();
  2071. }
  2072. if(phi == 18)
  2073. {
  2074. cout<<endl;
  2075. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2076. cout<<"--------------------------------------------------------------------------------"<<endl;
  2077. cin.get();
  2078. cin.get();
  2079. }
  2080. if(phi == 19)
  2081. {
  2082. cout<<endl;
  2083. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2084. cout<<"--------------------------------------------------------------------------------"<<endl;
  2085. cin.get();
  2086. cin.get();
  2087. }
  2088. if(phi == 20)
  2089. {
  2090. cout<<endl;
  2091. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2092. cout<<"--------------------------------------------------------------------------------"<<endl;
  2093. cin.get();
  2094. cin.get();
  2095. }
  2096. }
  2097. }
  2098. }while(pi == phi);
  2099. if(o == 2)
  2100. {
  2101. do
  2102. {
  2103. if(o == 1)
  2104. {
  2105. pi++;
  2106. cout<<endl;
  2107. cout<<"From 1 to : ";
  2108. cin>>ddd;
  2109. srand(time(0));
  2110. for(ii = 0; ii < 1; ii++)
  2111. {
  2112. if(phi == 1)
  2113. {
  2114. cout<<endl;
  2115. cout<<"Random Number: "<<rand()%ddd<<endl;
  2116. cout<<"--------------------------------------------------------------------------------"<<endl;
  2117. cin.get();
  2118. cin.get();
  2119. }
  2120. if(phi == 2)
  2121. {
  2122. cout<<endl;
  2123. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2124. cout<<"--------------------------------------------------------------------------------"<<endl;
  2125. cin.get();
  2126. cin.get();
  2127. }
  2128. if(phi == 3)
  2129. {
  2130. cout<<endl;
  2131. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2132. cout<<"--------------------------------------------------------------------------------"<<endl;
  2133. cin.get();
  2134. cin.get();
  2135. }
  2136. if(phi == 4)
  2137. {
  2138. cout<<endl;
  2139. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2140. cout<<"--------------------------------------------------------------------------------"<<endl;
  2141. cin.get();
  2142. cin.get();
  2143. }
  2144. if(phi == 5)
  2145. {
  2146. cout<<endl;
  2147. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2148. cout<<"--------------------------------------------------------------------------------"<<endl;
  2149. cin.get();
  2150. cin.get();
  2151. }
  2152. if(phi == 6)
  2153. {
  2154. cout<<endl;
  2155. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2156. cout<<"--------------------------------------------------------------------------------"<<endl;
  2157. cin.get();
  2158. cin.get();
  2159. }
  2160. if(phi == 7)
  2161. {
  2162. cout<<endl;
  2163. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2164. cout<<"--------------------------------------------------------------------------------"<<endl;
  2165. cin.get();
  2166. cin.get();
  2167. }
  2168. if(phi == 8)
  2169. {
  2170. cout<<endl;
  2171. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2172. cout<<"--------------------------------------------------------------------------------"<<endl;
  2173. cin.get();
  2174. cin.get();
  2175. }
  2176. if(phi == 9)
  2177. {
  2178. cout<<endl;
  2179. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2180. cout<<"--------------------------------------------------------------------------------"<<endl;
  2181. cin.get();
  2182. cin.get();
  2183. }
  2184. if(phi == 10)
  2185. {
  2186. cout<<endl;
  2187. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2188. cout<<"--------------------------------------------------------------------------------"<<endl;
  2189. cin.get();
  2190. cin.get();
  2191. }
  2192. if(phi == 11)
  2193. {
  2194. cout<<endl;
  2195. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2196. cout<<"--------------------------------------------------------------------------------"<<endl;
  2197. cin.get();
  2198. cin.get();
  2199. }
  2200. if(phi == 12)
  2201. {
  2202. cout<<endl;
  2203. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2204. cout<<"--------------------------------------------------------------------------------"<<endl;
  2205. cin.get();
  2206. cin.get();
  2207. }
  2208. if(phi == 13)
  2209. {
  2210. cout<<endl;
  2211. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2212. cout<<"--------------------------------------------------------------------------------"<<endl;
  2213. cin.get();
  2214. cin.get();
  2215. }
  2216. if(phi == 14)
  2217. {
  2218. cout<<endl;
  2219. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2220. cout<<"--------------------------------------------------------------------------------"<<endl;
  2221. cin.get();
  2222. cin.get();
  2223. }
  2224. if(phi == 15)
  2225. {
  2226. cout<<endl;
  2227. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2228. cout<<"--------------------------------------------------------------------------------"<<endl;
  2229. cin.get();
  2230. cin.get();
  2231. }
  2232. if(phi == 16)
  2233. {
  2234. cout<<endl;
  2235. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2236. cout<<"--------------------------------------------------------------------------------"<<endl;
  2237. cin.get();
  2238. cin.get();
  2239. }
  2240. if(phi == 17)
  2241. {
  2242. cout<<endl;
  2243. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2244. cout<<"--------------------------------------------------------------------------------"<<endl;
  2245. cin.get();
  2246. cin.get();
  2247. }
  2248. if(phi == 18)
  2249. {
  2250. cout<<endl;
  2251. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2252. cout<<"--------------------------------------------------------------------------------"<<endl;
  2253. cin.get();
  2254. cin.get();
  2255. }
  2256. if(phi == 19)
  2257. {
  2258. cout<<endl;
  2259. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2260. cout<<"--------------------------------------------------------------------------------"<<endl;
  2261. cin.get();
  2262. cin.get();
  2263. }
  2264. if(phi == 20)
  2265. {
  2266. cout<<endl;
  2267. cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  2268. cout<<"--------------------------------------------------------------------------------"<<endl;
  2269. cin.get();
  2270. cin.get();
  2271. }
  2272. }
  2273. }
  2274. }while(pi == phi);
  2275. }
  2276. if(o == 3)
  2277. {
  2278. srand(time(0));
  2279. for(ii = 0; ii < 1; ii++)
  2280. {
  2281. cout<<endl;
  2282. cout<<"Random Number: "<<rand()%50<<endl;
  2283. cout<<"--------------------------------------------------------------------------------"<<endl;
  2284. cin.get();
  2285. cin.get();
  2286. }
  2287. }
  2288. if(o == 4)
  2289. {
  2290. pi++;
  2291. srand(time(0));
  2292. for(ii = 0; ii < 1; ii++)
  2293. {
  2294. if(phi == 1)
  2295. {
  2296. cout<<endl;
  2297. cout<<"Random Number: "<<rand()%100<<endl;
  2298. cout<<"--------------------------------------------------------------------------------"<<endl;
  2299. cin.get();
  2300. cin.get();
  2301. }
  2302. if(phi == 2)
  2303. {
  2304. cout<<endl;
  2305. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<endl;
  2306. cout<<"--------------------------------------------------------------------------------"<<endl;
  2307. cin.get();
  2308. cin.get();
  2309. }
  2310. if(phi == 3)
  2311. {
  2312. cout<<endl;
  2313. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2314. cout<<"--------------------------------------------------------------------------------"<<endl;
  2315. cin.get();
  2316. cin.get();
  2317. }
  2318. if(phi == 4)
  2319. {
  2320. cout<<endl;
  2321. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2322. cout<<"--------------------------------------------------------------------------------"<<endl;
  2323. cin.get();
  2324. cin.get();
  2325. }
  2326. if(phi == 5)
  2327. {
  2328. cout<<endl;
  2329. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2330. cout<<"--------------------------------------------------------------------------------"<<endl;
  2331. cin.get();
  2332. cin.get();
  2333. }
  2334. if(phi == 6)
  2335. {
  2336. cout<<endl;
  2337. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2338. cout<<"--------------------------------------------------------------------------------"<<endl;
  2339. cin.get();
  2340. cin.get();
  2341. }
  2342. if(phi == 7)
  2343. {
  2344. cout<<endl;
  2345. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2346. cout<<"--------------------------------------------------------------------------------"<<endl;
  2347. cin.get();
  2348. cin.get();
  2349. }
  2350. if(phi == 8)
  2351. {
  2352. cout<<endl;
  2353. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2354. cout<<"--------------------------------------------------------------------------------"<<endl;
  2355. cin.get();
  2356. cin.get();
  2357. }
  2358. if(phi == 9)
  2359. {
  2360. cout<<endl;
  2361. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2362. cout<<"--------------------------------------------------------------------------------"<<endl;
  2363. cin.get();
  2364. cin.get();
  2365. }
  2366. if(phi == 10)
  2367. {
  2368. cout<<endl;
  2369. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2370. cout<<"--------------------------------------------------------------------------------"<<endl;
  2371. cin.get();
  2372. cin.get();
  2373. }
  2374. if(phi == 11)
  2375. {
  2376. cout<<endl;
  2377. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2378. cout<<"--------------------------------------------------------------------------------"<<endl;
  2379. cin.get();
  2380. cin.get();
  2381. }
  2382. if(phi == 12)
  2383. {
  2384. cout<<endl;
  2385. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2386. cout<<"--------------------------------------------------------------------------------"<<endl;
  2387. cin.get();
  2388. cin.get();
  2389. }
  2390. if(phi == 13)
  2391. {
  2392. cout<<endl;
  2393. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2394. cout<<"--------------------------------------------------------------------------------"<<endl;
  2395. cin.get();
  2396. cin.get();
  2397. }
  2398. if(phi == 14)
  2399. {
  2400. cout<<endl;
  2401. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2402. cout<<"--------------------------------------------------------------------------------"<<endl;
  2403. cin.get();
  2404. cin.get();
  2405. }
  2406. if(phi == 15)
  2407. {
  2408. cout<<endl;
  2409. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2410. cout<<"--------------------------------------------------------------------------------"<<endl;
  2411. cin.get();
  2412. cin.get();
  2413. }
  2414. if(phi == 16)
  2415. {
  2416. cout<<endl;
  2417. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2418. cout<<"--------------------------------------------------------------------------------"<<endl;
  2419. cin.get();
  2420. cin.get();
  2421. }
  2422. if(phi == 17)
  2423. {
  2424. cout<<endl;
  2425. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2426. cout<<"--------------------------------------------------------------------------------"<<endl;
  2427. cin.get();
  2428. cin.get();
  2429. }
  2430. if(phi == 18)
  2431. {
  2432. cout<<endl;
  2433. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2434. cout<<"--------------------------------------------------------------------------------"<<endl;
  2435. cin.get();
  2436. cin.get();
  2437. }
  2438. if(phi == 19)
  2439. {
  2440. cout<<endl;
  2441. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2442. cout<<"--------------------------------------------------------------------------------"<<endl;
  2443. cin.get();
  2444. cin.get();
  2445. }
  2446. if(phi == 20)
  2447. {
  2448. cout<<endl;
  2449. cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  2450. cout<<"--------------------------------------------------------------------------------"<<endl;
  2451. cin.get();
  2452. cin.get();
  2453. }
  2454. }
  2455. }
  2456. cout<<endl;
  2457. cout<<"Menu - 1"<<endl;
  2458. cout<<"Exit - 2"<<endl;
  2459. cin>>xn;
  2460. }while(xn == 1);
  2461. }
  2462. //          AVERAGE DECLARATION
  2463. void Math::Av()
  2464. {
  2465. int vb;
  2466. do
  2467. {
  2468. // new averaging system
  2469. float pp;
  2470. float x;
  2471. float xx;
  2472. float xxx;
  2473. float xxxx;
  2474. float xxxxx;
  2475. float xxxxxx;
  2476. float xxxxxxx;
  2477. float xxxxxxxx;
  2478. float xxxxxxxxx;
  2479. float xxxxxxxxxx;
  2480. float xxxxxxxxxxx;
  2481. float xxxxxxxxxxxx;
  2482. float xxxxxxxxxxxxx;
  2483. float xxxxxxxxxxxxxx;
  2484. float xxxxxxxxxxxxxxx;
  2485. float xxxxxxxxxxxxxxxx;
  2486. float xxxxxxxxxxxxxxxxx;
  2487. float xxxxxxxxxxxxxxxxxx;
  2488. float xxxxxxxxxxxxxxxxxxx;
  2489. float xxxxxxxxxxxxxxxxxxxx;
  2490. cout<<endl;
  2491. cout<<"======="<<endl;
  2492. cout<<"Average"<<endl;
  2493. cout<<"======="<<endl;
  2494. cout<<endl;
  2495. cout<<"how many values are you averaging? (max 20)"<<endl;
  2496. cin>>pp;
  2497. float ppp = pp;
  2498. if(pp == 2)
  2499. {
  2500. cout<<endl;
  2501. cout<<"type in the values and separate them with the enter key"<<endl;
  2502. cin>>x;
  2503. cin>>xx;
  2504. cout<<endl;
  2505. cout<<"Average: "<<(x + xx) / ppp<<endl;
  2506. cout<<"---------------------------------"<<endl;
  2507. cin.get();
  2508. cin.get();
  2509. }
  2510. if(pp == 3)
  2511. {
  2512. cout<<endl;
  2513. cout<<"type in the values and separate them with the enter key"<<endl;
  2514. cin>>x;
  2515. cin>>xx;
  2516. cin>>xxx;
  2517. cout<<endl;
  2518. cout<<"Average: "<<(x + xx + xxx) / ppp<<endl;
  2519. cout<<"---------------------------------"<<endl;
  2520. cin.get();
  2521. cin.get();
  2522. }
  2523. if(pp == 4)
  2524. {
  2525. cout<<endl;
  2526. cout<<"type in the values and separate them with the enter key"<<endl;
  2527. cin>>x;
  2528. cin>>xx;
  2529. cin>>xxx;
  2530. cin>>xxxx;
  2531. cout<<endl;
  2532. cout<<"Average: "<<(x + xx + xxx+ xxxx) / ppp<<endl;
  2533. cout<<"---------------------------------"<<endl;
  2534. cin.get();
  2535. cin.get();
  2536. }
  2537. if(pp == 5)
  2538. {
  2539. cout<<endl;
  2540. cout<<"type in the values and separate them with the enter key"<<endl;
  2541. cin>>x;
  2542. cin>>xx;
  2543. cin>>xxx;
  2544. cin>>xxxx;
  2545. cin>>xxxxx;
  2546. cout<<endl;
  2547. cout<<"Average: "<<(x + xx + xxx+ xxxx + xxxxx) / ppp<<endl;
  2548. cout<<"---------------------------------"<<endl;
  2549. cin.get();
  2550. cin.get();
  2551. }
  2552. if(pp == 6)
  2553. {
  2554. cout<<endl;
  2555. cout<<"type in the values and separate them with the enter key"<<endl;
  2556. cin>>x;
  2557. cin>>xx;
  2558. cin>>xxx;
  2559. cin>>xxxx;
  2560. cin>>xxxxx;
  2561. cin>>xxxxxx;
  2562. cout<<endl;
  2563. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx) / ppp<<endl;
  2564. cout<<"---------------------------------"<<endl;
  2565. cin.get();
  2566. cin.get();
  2567. }
  2568. if(pp == 7)
  2569. {
  2570. cout<<endl;
  2571. cout<<"type in the values and separate them with the enter key"<<endl;
  2572. cin>>x;
  2573. cin>>xx;
  2574. cin>>xxx;
  2575. cin>>xxxx;
  2576. cin>>xxxxx;
  2577. cin>>xxxxxx;
  2578. cin>>xxxxxxx;
  2579. cout<<endl;
  2580. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx) / ppp<<endl;
  2581. cout<<"---------------------------------"<<endl;
  2582. cin.get();
  2583. cin.get();
  2584. }
  2585. if(pp == 8)
  2586. {
  2587. cout<<endl;
  2588. cout<<"type in the values and separate them with the enter key"<<endl;
  2589. cin>>x;
  2590. cin>>xx;
  2591. cin>>xxx;
  2592. cin>>xxxx;
  2593. cin>>xxxxx;
  2594. cin>>xxxxxx;
  2595. cin>>xxxxxxx;
  2596. cin>>xxxxxxxx;
  2597. cout<<endl;
  2598. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx) / ppp<<endl;
  2599. cout<<"---------------------------------"<<endl;
  2600. cin.get();
  2601. cin.get();
  2602. }
  2603. if(pp == 9)
  2604. {
  2605. cout<<endl;
  2606. cout<<"type in your values and separate them with the enter key"<<endl;
  2607. cin>>x;
  2608. cin>>xx;
  2609. cin>>xxx;
  2610. cin>>xxxx;
  2611. cin>>xxxxx;
  2612. cin>>xxxxxx;
  2613. cin>>xxxxxxx;
  2614. cin>>xxxxxxxx;
  2615. cin>>xxxxxxxxx;
  2616. cout<<endl;
  2617. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx) / ppp<<endl;
  2618. cout<<"---------------------------------"<<endl;
  2619. cin.get();
  2620. cin.get();
  2621. }
  2622. if(pp == 10)
  2623. {
  2624. cout<<endl;
  2625. cout<<"type in your values and separate them with the enter key"<<endl;
  2626. cin>>x;
  2627. cin>>xx;
  2628. cin>>xxx;
  2629. cin>>xxxx;
  2630. cin>>xxxxx;
  2631. cin>>xxxxxx;
  2632. cin>>xxxxxxx;
  2633. cin>>xxxxxxxx;
  2634. cin>>xxxxxxxxx;
  2635. cin>>xxxxxxxxxx;
  2636. cout<<endl;
  2637. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx) / ppp<<endl;
  2638. cout<<"---------------------------------"<<endl;
  2639. cin.get();
  2640. cin.get();
  2641. }
  2642. if(pp == 11)
  2643. {
  2644. cout<<endl;
  2645. cout<<"type in your values and separate them with the enter key"<<endl;
  2646. cin>>x;
  2647. cin>>xx;
  2648. cin>>xxx;
  2649. cin>>xxxx;
  2650. cin>>xxxxx;
  2651. cin>>xxxxxx;
  2652. cin>>xxxxxxx;
  2653. cin>>xxxxxxxx;
  2654. cin>>xxxxxxxxx;
  2655. cin>>xxxxxxxxxx;
  2656. cin>>xxxxxxxxxxx;
  2657. cout<<endl;
  2658. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx) / ppp<<endl;
  2659. cout<<"---------------------------------"<<endl;
  2660. cin.get();
  2661. cin.get();
  2662. }
  2663. if(pp == 12)
  2664. {
  2665. cout<<endl;
  2666. cout<<"type in your values and separate them with the enter key"<<endl;
  2667. cin>>x;
  2668. cin>>xx;
  2669. cin>>xxx;
  2670. cin>>xxxx;
  2671. cin>>xxxxx;
  2672. cin>>xxxxxx;
  2673. cin>>xxxxxxx;
  2674. cin>>xxxxxxxx;
  2675. cin>>xxxxxxxxx;
  2676. cin>>xxxxxxxxxx;
  2677. cin>>xxxxxxxxxxx;
  2678. cin>>xxxxxxxxxxxx;
  2679. cout<<endl;
  2680. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx) / ppp<<endl;
  2681. cout<<"---------------------------------"<<endl;
  2682. cin.get();
  2683. cin.get();
  2684. }
  2685. if(pp == 13)
  2686. {
  2687. cout<<endl;
  2688. cout<<"type in your values and separate them with the enter key"<<endl;
  2689. cin>>x;
  2690. cin>>xx;
  2691. cin>>xxx;
  2692. cin>>xxxx;
  2693. cin>>xxxxx;
  2694. cin>>xxxxxx;
  2695. cin>>xxxxxxx;
  2696. cin>>xxxxxxxx;
  2697. cin>>xxxxxxxxx;
  2698. cin>>xxxxxxxxxx;
  2699. cin>>xxxxxxxxxxx;
  2700. cin>>xxxxxxxxxxxx;
  2701. cin>>xxxxxxxxxxxxx;
  2702. cout<<endl;
  2703. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx) / ppp<<endl;
  2704. cout<<"---------------------------------"<<endl;
  2705. cin.get();
  2706. cin.get();
  2707. }
  2708. if(pp == 14)
  2709. {
  2710. cout<<endl;
  2711. cout<<"type in your values and separate them with the enter key"<<endl;
  2712. cin>>x;
  2713. cin>>xx;
  2714. cin>>xxx;
  2715. cin>>xxxx;
  2716. cin>>xxxxx;
  2717. cin>>xxxxxx;
  2718. cin>>xxxxxxx;
  2719. cin>>xxxxxxxx;
  2720. cin>>xxxxxxxxx;
  2721. cin>>xxxxxxxxxx;
  2722. cin>>xxxxxxxxxxx;
  2723. cin>>xxxxxxxxxxxx;
  2724. cin>>xxxxxxxxxxxxx;
  2725. cin>>xxxxxxxxxxxxxx;
  2726. cout<<endl;
  2727. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx) / ppp<<endl;
  2728. cout<<"---------------------------------"<<endl;
  2729. cin.get();
  2730. cin.get();
  2731. }
  2732. if(pp == 15)
  2733. {
  2734. cout<<endl;
  2735. cout<<"type in your values and separate them with the enter key"<<endl;
  2736. cin>>x;
  2737. cin>>xx;
  2738. cin>>xxx;
  2739. cin>>xxxx;
  2740. cin>>xxxxx;
  2741. cin>>xxxxxx;
  2742. cin>>xxxxxxx;
  2743. cin>>xxxxxxxx;
  2744. cin>>xxxxxxxxx;
  2745. cin>>xxxxxxxxxx;
  2746. cin>>xxxxxxxxxxx;
  2747. cin>>xxxxxxxxxxxx;
  2748. cin>>xxxxxxxxxxxxx;
  2749. cin>>xxxxxxxxxxxxxx;
  2750. cin>>xxxxxxxxxxxxxxx;
  2751. cout<<endl;
  2752. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx) / ppp<<endl;
  2753. cout<<"---------------------------------"<<endl;
  2754. cin.get();
  2755. cin.get();
  2756. }
  2757. if(pp == 16)
  2758. {
  2759. cout<<endl;
  2760. cout<<"type in your values and separate them with the enter key"<<endl;
  2761. cin>>x;
  2762. cin>>xx;
  2763. cin>>xxx;
  2764. cin>>xxxx;
  2765. cin>>xxxxx;
  2766. cin>>xxxxxx;
  2767. cin>>xxxxxxx;
  2768. cin>>xxxxxxxx;
  2769. cin>>xxxxxxxxx;
  2770. cin>>xxxxxxxxxx;
  2771. cin>>xxxxxxxxxxx;
  2772. cin>>xxxxxxxxxxxx;
  2773. cin>>xxxxxxxxxxxxx;
  2774. cin>>xxxxxxxxxxxxxx;
  2775. cin>>xxxxxxxxxxxxxxx;
  2776. cin>>xxxxxxxxxxxxxxxx;
  2777. cout<<endl;
  2778. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx) / ppp<<endl;
  2779. cout<<"---------------------------------"<<endl;
  2780. cin.get();
  2781. cin.get();
  2782. }
  2783. if(pp == 17)
  2784. {
  2785. cout<<endl;
  2786. cout<<"type in your values and separate them with the enter key"<<endl;
  2787. cin>>x;
  2788. cin>>xx;
  2789. cin>>xxx;
  2790. cin>>xxxx;
  2791. cin>>xxxxx;
  2792. cin>>xxxxxx;
  2793. cin>>xxxxxxx;
  2794. cin>>xxxxxxxx;
  2795. cin>>xxxxxxxxx;
  2796. cin>>xxxxxxxxxx;
  2797. cin>>xxxxxxxxxxx;
  2798. cin>>xxxxxxxxxxxx;
  2799. cin>>xxxxxxxxxxxxx;
  2800. cin>>xxxxxxxxxxxxxx;
  2801. cin>>xxxxxxxxxxxxxxx;
  2802. cin>>xxxxxxxxxxxxxxxx;
  2803. cin>>xxxxxxxxxxxxxxxxx;
  2804. cout<<endl;
  2805. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx) / ppp<<endl;
  2806. cout<<"---------------------------------"<<endl;
  2807. cin.get();
  2808. cin.get();
  2809. }
  2810. if(pp == 18)
  2811. {
  2812. cout<<endl;
  2813. cout<<"type in your values and separate them with the enter key"<<endl;
  2814. cin>>x;
  2815. cin>>xx;
  2816. cin>>xxx;
  2817. cin>>xxxx;
  2818. cin>>xxxxx;
  2819. cin>>xxxxxx;
  2820. cin>>xxxxxxx;
  2821. cin>>xxxxxxxx;
  2822. cin>>xxxxxxxxx;
  2823. cin>>xxxxxxxxxx;
  2824. cin>>xxxxxxxxxxx;
  2825. cin>>xxxxxxxxxxxx;
  2826. cin>>xxxxxxxxxxxxx;
  2827. cin>>xxxxxxxxxxxxxx;
  2828. cin>>xxxxxxxxxxxxxxx;
  2829. cin>>xxxxxxxxxxxxxxxx;
  2830. cin>>xxxxxxxxxxxxxxxxx;
  2831. cin>>xxxxxxxxxxxxxxxxxx;
  2832. cout<<endl;
  2833. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx) / ppp<<endl;
  2834. cout<<"---------------------------------"<<endl;
  2835. cin.get();
  2836. cin.get();
  2837. }
  2838. if(pp == 19)
  2839. {
  2840. cout<<endl;
  2841. cout<<"type in your values and separate them with the enter key"<<endl;
  2842. cin>>x;
  2843. cin>>xx;
  2844. cin>>xxx;
  2845. cin>>xxxx;
  2846. cin>>xxxxx;
  2847. cin>>xxxxxx;
  2848. cin>>xxxxxxx;
  2849. cin>>xxxxxxxx;
  2850. cin>>xxxxxxxxx;
  2851. cin>>xxxxxxxxxx;
  2852. cin>>xxxxxxxxxxx;
  2853. cin>>xxxxxxxxxxxx;
  2854. cin>>xxxxxxxxxxxxx;
  2855. cin>>xxxxxxxxxxxxxx;
  2856. cin>>xxxxxxxxxxxxxxx;
  2857. cin>>xxxxxxxxxxxxxxxx;
  2858. cin>>xxxxxxxxxxxxxxxxx;
  2859. cin>>xxxxxxxxxxxxxxxxxx;
  2860. cin>>xxxxxxxxxxxxxxxxxxx;
  2861. cout<<endl;
  2862. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxx) / ppp<<endl;
  2863. cout<<"---------------------------------"<<endl;
  2864. cin.get();
  2865. cin.get();
  2866. }
  2867. if(pp == 20)
  2868. {
  2869. cout<<endl;
  2870. cout<<"type in your values and separate them with the enter key"<<endl;
  2871. cin>>x;
  2872. cin>>xx;
  2873. cin>>xxx;
  2874. cin>>xxxx;
  2875. cin>>xxxxx;
  2876. cin>>xxxxxx;
  2877. cin>>xxxxxxx;
  2878. cin>>xxxxxxxx;
  2879. cin>>xxxxxxxxx;
  2880. cin>>xxxxxxxxxx;
  2881. cin>>xxxxxxxxxxx;
  2882. cin>>xxxxxxxxxxxx;
  2883. cin>>xxxxxxxxxxxxx;
  2884. cin>>xxxxxxxxxxxxxx;
  2885. cin>>xxxxxxxxxxxxxxx;
  2886. cin>>xxxxxxxxxxxxxxxx;
  2887. cin>>xxxxxxxxxxxxxxxxx;
  2888. cin>>xxxxxxxxxxxxxxxxxx;
  2889. cin>>xxxxxxxxxxxxxxxxxxx;
  2890. cin>>xxxxxxxxxxxxxxxxxxxx;
  2891. cout<<endl;
  2892. cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxxx) / ppp<<endl;
  2893. cout<<"---------------------------------"<<endl;
  2894. cin.get();
  2895. cin.get();
  2896. }
  2897. cout<<endl;
  2898. cout<<"Do another average - 1"<<endl;
  2899. cout<<"Exit - 2"<<endl;
  2900. cin>>vb;
  2901. }while(vb == 1);
  2902. }
  2903. //          CALCULATOR DECLARATION  
  2904. void Math::Calc()
  2905. {
  2906. int bx;
  2907. do
  2908. {
  2909. cout<<endl;
  2910. cout<<"=========="<<endl;
  2911. cout<<"Calculator"<<endl;
  2912. cout<<"=========="<<endl;
  2913. float num1;
  2914. float num2;
  2915. float general;
  2916. char oper;
  2917. cout<<endl;
  2918. cout<<"Type in your calculation:"; cin>>num1;
  2919. cin>>oper; cin>>num2;
  2920. switch(oper)
  2921. {
  2922. case'+':{cout<<endl;cout<<(num1 + num2)<<endl;break;}
  2923. case'-':{cout<<endl;cout<<(num1 - num2)<<endl;break;}
  2924. case'*':{cout<<endl;cout<<(num1 * num2)<<endl;break;}
  2925. case'/':{cout<<endl;cout<<(num1 / num2)<<endl;break;}
  2926. case'r':{srand (time(0)); for(general = 0; general < 1; general++){
  2927. cout<<endl;
  2928. cout<<rand()%100<<endl;}}
  2929. }
  2930. cout<<"---------------------------------"<<endl;
  2931. cin.get();
  2932. cin.get();
  2933. cout<<endl;
  2934. cout<<"Do another calculation - 1"<<endl;
  2935. cout<<"Exit - 2"<<endl;
  2936. cin>>bx;
  2937. }while(bx == 1);
  2938. }
  2939. class Text
  2940. {
  2941. public:
  2942. void Write();
  2943. int Writer();
  2944. int Ver();
  2945. };
  2946. //              VERSION DECLARATION
  2947. int Text::Ver()
  2948. {
  2949. cout<<"-----------------------"<<endl;
  2950. cout<<"|TSP version 0.9 Beta |"<<endl;
  2951. cout<<"|7th milestone release|"<<endl;
  2952. cout<<"-----------------------"<<endl;
  2953. }
  2954. //              PRINT DECLARATION
  2955. void Text::Write()
  2956. {
  2957. string c;
  2958. cout<<"->";
  2959. getline(cin, c);
  2960. getline(cin, c);
  2961. cout<<endl;
  2962. cout<<endl;
  2963. cout<<"---------|\t\t"<<c<<"\t\t|---------"<<endl;
  2964. cout<<endl;
  2965. cout<<endl;
  2966. }
  2967. //              WRITER DECLARATION
  2968. int Text::Writer()
  2969. {
  2970. string a;
  2971. string cob;
  2972. int vmi;
  2973. string vm;
  2974. string c2;
  2975. string edit;
  2976. int i;
  2977. int y = 1;
  2978. string s1;
  2979. string s2;
  2980. while(y == 1)
  2981. {
  2982. cout<<endl;
  2983. cout<<"==========="<<endl;
  2984. cout<<"Text Writer"<<endl;
  2985. cout<<"==========="<<endl;
  2986. cout<<"-------------------------------------"<<endl;
  2987. cout<<"| New (1) | Open (2) | Settings (3) |"<<endl;
  2988. cout<<"-------------------------------------" <<endl;
  2989. cin>>i;
  2990. //      New
  2991. if(i < 2)
  2992. {
  2993. char d[20];
  2994. stringstream nice;
  2995. cout<<"-----------------------------------------------------"<<endl;
  2996. cout<<"Start typing . . ."<<endl;
  2997. cout<<"====================================================="<<endl;
  2998. getline(cin, a);
  2999. getline(cin, a);
  3000. cout<<"====================================================="<<endl;
  3001. cout<<"(no spaces) Save as:"<<endl;
  3002. cin>>d;
  3003. ofstream file(d);
  3004. file<<a;
  3005. cout<<endl;
  3006. cout<<cob<<endl;
  3007. cout<<"File Size - "<<a.capacity()<<" Bytes"<<endl;
  3008. cin.get();
  3009. cin.get();
  3010. cout<<"====="<<endl;
  3011. cout<<"Saved"<<endl;
  3012. cout<<"====="<<endl;
  3013. cout<<endl;
  3014. cout<<"Menu - 1"<<endl;
  3015. cout<<"Exit - 2"<<endl;
  3016. cin>>y;
  3017. }
  3018. //      Edit
  3019. if(i == 2)
  3020. {
  3021. string c;
  3022. string df;
  3023. string dx;
  3024. char t[20];
  3025. cout<<"Enter filename and path:"<<endl;
  3026. cin>>t;
  3027. ifstream files(t);
  3028. if(! files)
  3029. {
  3030. cout<<"-Error 290-"<<endl;
  3031. cout<<"cannot find file"<<endl;
  3032. return -1;
  3033. }
  3034. if(! files.eof())
  3035. {
  3036. getline(files, c);
  3037. ifstream filesd("/i.txt");
  3038. ifstream filesdx("/ii.txt");
  3039. getline(filesd, df);
  3040. cout<<df<<endl;
  3041. cout<<c;
  3042. getline(cin, c);
  3043. getline(cin, c);
  3044. getline(filesdx, dx);
  3045. cout<<dx<<endl;
  3046. c2 += (c + edit);
  3047. ofstream fileb(t);
  3048. fileb<<c2;
  3049. cout<<endl;
  3050. cout<<"("<<cob<<")"<<endl;
  3051. cin.get();
  3052. cout<<endl;
  3053. cout<<"Menu - 1"<<endl;
  3054. cout<<"Exit - 2"<<endl;
  3055. cin>>y;
  3056. c2 = "";
  3057. }
  3058. if(! files)
  3059. {
  3060. cout<<"-Error 290-"<<endl;
  3061. cout<<"cannot find file"<<endl;
  3062. return -1;
  3063. }
  3064. }
  3065. //      Settings
  3066. if(i == 3)
  3067. {
  3068. int nl;
  3069. cout<<endl;
  3070. cout<<"\t-Settings-\t"<<endl;
  3071. cout<<"| View Mode (1) | Tools (2) |"<<endl;
  3072. cin>>nl;
  3073. if(nl == 1)
  3074. {
  3075. cout<<endl;
  3076. cout<<"                |--||--||--|";cout<<" -3"<<endl;
  3077. cout<<"      |--||--|";cout<<"  |--||--||--|";cout<<" -2"<<endl;
  3078. cout<<"|--|";cout<<"  |--||--|";cout<<"  |--||--||--|";cout<<" -1"<<endl;
  3079. cout<<endl;
  3080. cout<<"Viewing Mode Scale:";
  3081. cin>>vmi;
  3082. if(vmi == 1)
  3083. {
  3084. s1 = "===============\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.|||||||||||||||";
  3085. s2 = "|||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.===============";
  3086. ofstream filej ("i.txt");
  3087. filej<<s1;
  3088. ofstream filejj ("ii.txt");
  3089. filejj<<s2;
  3090. }
  3091. if(vmi == 2)
  3092. {
  3093. s1 = "==================================================\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.||||||||||||||||||||||||||||||||||||||||||||||||||";
  3094. s2 = "||||||||||||||||||||||||||||||||||||||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.==================================================";
  3095. ofstream filej ("i.txt");
  3096. filej<<s1;
  3097. ofstream filejj ("ii.txt");
  3098. filejj<<s2;
  3099. }
  3100. if(vmi == 3)
  3101. {
  3102. s1 = "============================================================\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";
  3103. s2 = "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.============================================================";
  3104. ofstream filej ("i.txt");
  3105. filej<<s1;
  3106. ofstream filejj ("ii.txt");
  3107. filejj<<s2;
  3108. }
  3109. }
  3110. if(nl == 2)
  3111. {
  3112. int nlx;
  3113. cout<<endl;
  3114. cout<<"|Character count toggle (1) | File size display toggle (2)|"<<endl;
  3115. cin>>nlx;
  3116. if(nlx == 1)
  3117. {
  3118. string local;
  3119. string on = "on";
  3120. string off = "off";
  3121. cout<<"Character count - type 'on' or 'off'"<<endl;
  3122. getline(cin, local);
  3123. getline(cin, local);
  3124. if(local == on)
  3125. {
  3126. cob = "Characters - " + a.size();
  3127. cout<<"--"<<endl;
  3128. cout<<"ON"<<endl;
  3129. cout<<"--"<<endl;
  3130. }
  3131. if(local == off)
  3132. {
  3133. cob = "";
  3134. cout<<"---"<<endl;
  3135. cout<<"OFF"<<endl;
  3136. cout<<"---"<<endl;
  3137. }
  3138. }
  3139. if(nlx == 2)
  3140. {
  3141. cout<<"File size display On/Off"<<endl;
  3142. }
  3143. }
  3144. }
  3145. }
  3146. }
  3147. //              WRITER DECLARATION
  3148. //              MAIN FUNCTION
  3149. int main()
  3150. {
  3151. int z = 1;
  3152. string a;
  3153. string b = "print";
  3154. string d = "run_writer";
  3155. string f = "run_calc";
  3156. string e = "run_calc.av";
  3157. string g = "run_rand";
  3158. string h = "help";
  3159. string hh = "run_convert";
  3160. string hx = "run_speed";
  3161. string hxi = "run_distance";
  3162. string hxp = "run_tcalc";
  3163. string nm = "run_grid";
  3164. string zti = "run_timer";
  3165. string hg = "clear";
  3166. string ix = "version";
  3167. string ij = "run_task";
  3168. string ji = "run_contact";
  3169. string lz = "run_cal";
  3170. //              COMMAND LOOP
  3171. cout<<endl;
  3172. cout<<"\t--------------------------------------------------------------"<<endl;
  3173. cout<<"\t-----------------------------TSP 0.9 Beta--------------------------"<<endl;
  3174. cout<<"\t--------------------------------------------------------------"<<endl;
  3175. cout<<"";
  3176. sleep(1);
  3177. cout<<flush;
  3178. cout<<"\t[=";
  3179. sleep(1);
  3180. cout<<flush;
  3181. cout<<"==";
  3182. sleep(1);
  3183. cout<<flush;
  3184. cout<<"==";
  3185. sleep(1);
  3186. cout<<flush;
  3187. cout<<"=";
  3188. sleep(1);
  3189. cout<<flush;
  3190. cout<<"=";
  3191. sleep(1);
  3192. cout<<flush;
  3193. cout<<"\t\t==";
  3194. sleep(1);
  3195. cout<<flush;
  3196. cout<<"=";
  3197. sleep(1);
  3198. cout<<flush;
  3199. cout<<"==";
  3200. sleep(1);
  3201. cout<<flush;
  3202. cout<<"==";
  3203. sleep(1);
  3204. cout<<flush;
  3205. cout<<"\t\t==";
  3206. sleep(1);
  3207. cout<<flush;
  3208. cout<<"==";
  3209. sleep(1);
  3210. cout<<flush;
  3211. cout<<"==";
  3212. sleep(1);
  3213. cout<<flush;
  3214. cout<<"==";
  3215. sleep(1);
  3216. cout<<flush;
  3217. cout<<"\t=";
  3218. sleep(1);
  3219. cout<<flush;
  3220. cout<<"=";
  3221. sleep(1);
  3222. cout<<flush;
  3223. cout<<"==";
  3224. sleep(1);
  3225. cout<<flush;
  3226. cout<<"=]";
  3227. sleep(1);
  3228. cout<<flush;
  3229. cout<<"";
  3230. sleep(1);
  3231. cout<<flush<<endl;
  3232. cout<<"--------------------------------------------------------------------------------"<<endl;
  3233. cout<<endl;
  3234. cout<<endl;
  3235. cout<<endl;
  3236. cout<<endl;
  3237. cout<<endl;
  3238. cout<<endl;
  3239. cout<<endl;
  3240. cout<<endl;
  3241. cout<<endl;
  3242. cout<<endl;
  3243. cout<<endl;
  3244. cout<<endl;
  3245. cout<<endl;
  3246. cout<<endl;
  3247. cout<<endl;
  3248. cout<<endl;
  3249. cout<<endl;
  3250. cout<<endl;
  3251. cout<<endl;
  3252. cout<<endl;
  3253. cout<<endl;
  3254. cout<<endl;
  3255. cout<<endl;
  3256. cout<<endl;
  3257. cout<<endl;
  3258. cout<<endl;
  3259. cout<<endl;
  3260. do{
  3261. cout<<endl;
  3262. cout<<"Command >";
  3263. cin>>a;
  3264. if(a == b)
  3265. {
  3266. Text run;
  3267. run.Write();
  3268. }
  3269. if(a == d)
  3270. {
  3271. Text runa;
  3272. runa.Writer();
  3273. }
  3274. if(a == f)
  3275. {
  3276. Math runb;
  3277. runb.Calc();
  3278. }
  3279. if(a == e)
  3280. {
  3281. Math runc;
  3282. runc.Av();
  3283. }
  3284. if(a == g)
  3285. {
  3286. Math rund;
  3287. rund.Rando();
  3288. }
  3289. if(a == h)
  3290. {
  3291. Read rune;
  3292. rune.helpsh();
  3293. }
  3294. if(a == hh)
  3295. {
  3296. Unit show;
  3297. show.Con();
  3298. }
  3299. if(a == hg)
  3300. {
  3301. Small beos;
  3302. beos.white();
  3303. }
  3304. if(a == hx)
  3305. {
  3306. Sdt showa;
  3307. showa.Speed();
  3308. }
  3309. if(a == nm)
  3310. {
  3311. Math showb;
  3312. showb.Ncell();
  3313. }
  3314. if(a == zti)
  3315. {
  3316. Time showc;
  3317. showc.Timer();
  3318. }
  3319. if(a == ix)
  3320. {
  3321. Text showd;
  3322. showd.Ver();
  3323. }
  3324. if(a == hxi)
  3325. {
  3326. Sdt showe;
  3327. showe.Distance();
  3328. }
  3329. if(a == hxp)
  3330. {
  3331. Sdt showf;
  3332. showf.Time();
  3333. }
  3334. if(a == ij)
  3335. {
  3336. dbase showft;
  3337. base* ppdbase = &showft;
  3338. ppdbase->todo();
  3339. }
  3340. if(a == ji)
  3341. {
  3342. dbase showhn;
  3343. base* pdbase = &showhn;
  3344. pdbase->prod();
  3345. }
  3346. if(a == lz)
  3347. {
  3348. dbase2 togol;
  3349. base* pdbase2 = &togol;
  3350. pdbase2->calendar();
  3351. }
  3352. }while(z == 1);
  3353. return 0;
  3354. }
  3355. Related Article: Interview with Bjarne Stroustrup, Creator of C++
  3356. Authored by jeffcogswell in the C++ forum, this related interview currently has 21 replies,  was last posted to 3 weeks ago by KaeLL and has been tagged with the following keywords: c++, interview, stroustrup. It begins, “ Almost every programmer knows his name. He's a living legend in computers. His name is ...”
  3357. softwaretime
  3358. Newbie Poster
  3359. 5 posts
  3360. since Nov 2012
  3361.  
  3362. 4 Days Ago 0
  3363. Nobody will read four thousand lines of unformatted code to tell you what you did wrong, but judging by the errors I'd wager that formatting it will highlight the error promptly and obviously.
  3364.  
  3365. deceptikon
  3366. Experienced n00b
  3367. Administrator
  3368. 2,067 posts
  3369. since Jan 2012
  3370.  
  3371. 4 Days Ago 0
  3372. What the hell is this:
  3373.  
  3374. // new averaging system
  3375. float pp;
  3376. float x;
  3377. float xx;
  3378. float xxx;
  3379. float xxxx;
  3380. float xxxxx;
  3381. float xxxxxx;
  3382. float xxxxxxx;
  3383. float xxxxxxxx;
  3384. float xxxxxxxxx;
  3385. float xxxxxxxxxx;
  3386. float xxxxxxxxxxx;
  3387. float xxxxxxxxxxxx;
  3388. float xxxxxxxxxxxxx;
  3389. float xxxxxxxxxxxxxx;
  3390. float xxxxxxxxxxxxxxx;
  3391. float xxxxxxxxxxxxxxxx;
  3392. float xxxxxxxxxxxxxxxxx;
  3393. float xxxxxxxxxxxxxxxxxx;
  3394. float xxxxxxxxxxxxxxxxxxx;
  3395. float xxxxxxxxxxxxxxxxxxxx;
  3396. If that is the "new averaging system" then I would hate to see the old one!
  3397.  
  3398. phorce
  3399. Practically a Master Poster
  3400. 623 posts
  3401. since Jul 2011
  3402.  
  3403. 4 Days Ago 0
  3404. Ahem, what is that program supposed to be doing?
  3405.  
  3406. spacebro
  3407. Newbie Poster
  3408. 2 posts
  3409. since Nov 2012
  3410.  
  3411. 4 Days Ago 0
  3412. You can't do this:
  3413.  
  3414. tmm += ("Minutes: " + tmm);
  3415. th += ("Hours: " + th);
  3416. tmm is an int. What would it mean to increment and int with the sum of a character array and an int?. There are probably a bunch of other things wrong with this code too, but this is the first thing that the compiler is complaing about in the messages you posted.
  3417.  
  3418. ravenous
  3419. Posting Pro
  3420. 596 posts
  3421. since Jul 2005
  3422.  
  3423. 4 Days Ago 0
  3424. 5/5 would laugh again
  3425.  
  3426. Ribalimies66
  3427. Newbie Poster
  3428. 1 post
  3429. since Nov 2012
  3430.  
  3431. 3 Days Ago 0
  3432. Congrats, you made it on 4chan!
  3433. A word of advice: Scrap everything. Get a book about how to program, then start over.
  3434. You are a deafmute quadruple amputee when it comes to coding, giving you a crutch wont do any good.
  3435.  
  3436. nnxbtz
  3437. Newbie Poster
  3438. 1 post
  3439. since Nov 2012
  3440.  
  3441. 3 Days Ago Show Comments 2
  3442. OK, now that the necessary roughness is out of the way, we can actually begin helping you.
  3443.  
  3444. I do have to admit that this is terrible code, and most likely cannot be remediated; but it would be remiss of me not to point out why it is bad, or else the OP won't learn from the experience.
  3445.  
  3446. Aside from the formatting issues, the main problem is repetitiveness; you have cut and pasted the same basic code, with only a trivial addition made to it at each step, roughly 20 times, jut in one section of the code alone. This entirely black of code could be replaced with a single for() loop about five lines long. Such repetition is found throughout the code, making it larger and harder to read across the baord.
  3447.  
  3448. Similarly, you have (as Phorce points out) created 20 variables with the name in the form x{nth} for what would normally be a 20 element array. Not only is this an exceedly bad naming convention, it limits how you can use the values compared to the equivalent array. Equally atrocious is the use of the n{letter} for what would again be a single 20-element array normally. In fact, the naming conventions use in the program are uniformly awful.
  3449.  
  3450. Still, as Deceptikon says, it is the completely lack of indentation that is really doing you in here, as it makes it well-nigh impossible to be certain how the braces match to each other. Even if one is disinclined to indent their code themselves, virtually any modern editor will support either auto-indent, or an block-indenting feature, and most provide both. If all else fails, you can use a stand-alone program such as program such as astyle, after the fact. Lack of indentation, and inconsistent indentation, are not excusable given the tools available today.
  3451.  
  3452. As for the specific error that is causing so much trouble, a quick run through AStyle does indeed show it clearly: you are failing to close the function dbase::todo() around line 409
  3453. of the source code (line 430 in your post).
  3454.  
  3455. #include <iostream>
  3456. #include <string>
  3457. #include <fstream>
  3458. #include <ctime>
  3459. #include <sstream>
  3460. using namespace std;
  3461. class base
  3462. {
  3463. public:
  3464.     virtual int prod(){return -1;}
  3465.     virtual int todo(){return -1;}
  3466.     virtual int calendar(){return -1;}
  3467. };
  3468. class dbase2:public base
  3469. {
  3470. public:
  3471.     int calendar();
  3472. };
  3473. int dbase2::calendar()
  3474. {
  3475.     int cme;
  3476.     int cd;
  3477.     string cdd;
  3478.     int cw;
  3479.     string cwd;
  3480.     int cm;
  3481.     string cmd;
  3482.     int cy;
  3483.     string cyd;
  3484.     cout<<endl;
  3485.     cout<<"========"<<endl;
  3486.     cout<<"Calendar"<<endl;
  3487.     cout<<"========"<<endl;
  3488.     cout<<"---------------------------"<<endl;
  3489.     cout<<"| View (1) | Settings (2) | "<<endl;
  3490.     cout<<"---------------------------"<<endl;
  3491.     cin>>cme;
  3492. // calendar display
  3493.     switch(cd)
  3494.     {
  3495.     {case 1:cdd = "-1-"; break;}
  3496.     }
  3497.     cout<<"|"<<cdd<<"|"<<endl;
  3498. // calendar display
  3499. }
  3500. class dbase:public base
  3501. {
  3502. public:
  3503.     int prod();
  3504.     int todo();
  3505. };
  3506. int dbase::prod()
  3507. {
  3508.     char nt[20];
  3509.     string ntw;
  3510.     int me;
  3511.     char ma[5];
  3512.     int cl;
  3513.     string ys = "yes";
  3514.     string dn;
  3515.     string dp;
  3516.     string de;
  3517.     char mp[20];
  3518.     string mpx;
  3519.     string adx;
  3520.     string dex;
  3521.     string ntwx;
  3522.     char mp1[20];
  3523.     string rc;
  3524.     string adr;
  3525.     char lit[20];
  3526.     char nf[20];
  3527.     string fn;
  3528.     string fnk;
  3529.     string fnx;
  3530.     char co[20];
  3531.     string tf;
  3532.     do
  3533.     {
  3534.     cout<<endl;
  3535.     cout<<"========"<<endl;
  3536.     cout<<"Contacts"<<endl;
  3537.     cout<<"========"<<endl;
  3538.     cout<<"--------------------------------------"<<endl;
  3539.     cout<<"| Add Contact (1) | View Contact (2) | "<<endl;
  3540.     cout<<"--------------------------------------"<<endl;
  3541.     cin>>me;
  3542.     if(me == 1)
  3543.     {
  3544.         cout<<"Enter any number (Reference number)"<<endl;
  3545.         cin>>lit;
  3546.         cout<<"Enter Name:";
  3547.         getline(cin, dn);
  3548.         getline(cin, dn);
  3549.         cout<<endl;
  3550.         cout<<"+ Add Phone Number? type 'yes' or 'no'"<<endl;
  3551.         cin>>mp;
  3552.         if(mp == ys)
  3553.         {
  3554.         cout<<"Phone Number:";
  3555.         getline(cin, dp);
  3556.         getline(cin, dp);
  3557.         mpx += ("|Phone Number: " + dp);
  3558.         }
  3559.         else
  3560.         {
  3561.         dp = "";
  3562.         }
  3563.         cout<<endl;
  3564.         cout<<"+ Add Address? type 'yes' or 'no'"<<endl;
  3565.         cin>>ma;
  3566.         if(ma == ys)
  3567.         {
  3568.         cout<<"Address:";
  3569.         getline(cin, adr);
  3570.         getline(cin, adr);
  3571.         adx += ("|Address: " + adr);
  3572.         }
  3573.         else
  3574.         {
  3575.         adr = "";
  3576.         }
  3577.         cout<<endl;
  3578.         cout<<"+ Add Email? type 'yes' or 'no'"<<endl;
  3579.         cin>>mp1;
  3580.         if(mp1 == ys)
  3581.         {
  3582.         cout<<"Email Address:";
  3583.         getline(cin, de);
  3584.         getline(cin, de);
  3585.         dex += ("|Email: " + de);
  3586.         }
  3587.         else
  3588.         {
  3589.         de = "";
  3590.         }
  3591.         cout<<endl;
  3592.         cout<<"+ Add Notes? type 'yes' or 'no'"<<endl;
  3593.         cin>>nt;
  3594.         if(nt == ys)
  3595.         {
  3596.         cout<<"Notes:";
  3597.         getline(cin, ntw);
  3598.         getline(cin, ntw);
  3599.         ntwx += ("|Notes: " + ntw);
  3600.         }
  3601.         cout<<endl;
  3602.         cout<<"+ Add Custom Field? type 'yes' or 'no'"<<endl;
  3603.         cin>>nf;
  3604.         if(nf == ys)
  3605.         {
  3606.         cout<<"Field Name:";
  3607.         getline(cin, fn);
  3608.         getline(cin, fn);
  3609.         cout<<fn<<":";
  3610.         getline(cin, fnk);
  3611.         fnx += ("|" + fn + ": " + fnk);
  3612.         }
  3613. // add ntw
  3614.         rc += ("-" + dn + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + mpx + "" + "\t\t\t\t\t\t\t\t\t\t\t" + adx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + dex + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + ntwx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + fnx);
  3615.         ofstream fileo (lit);
  3616.         fileo<<rc;
  3617.     }
  3618.     if(me == 2)
  3619.     {
  3620.         cout<<endl;
  3621.         cout<<"Enter reference number:";
  3622.         cin>>co;
  3623.         ifstream fileop(co);
  3624.         if(! fileop.eof())
  3625.         {
  3626.         cout<<endl;
  3627.         getline(fileop, tf);
  3628.         cout<<endl;
  3629.         cout<<"====================="<<endl;
  3630.         cout<<tf<<endl;
  3631.         cout<<"====================="<<endl;
  3632.         cin.get();
  3633.         cin.get();
  3634.         }
  3635.     }
  3636.     cout<<endl;
  3637.     cout<<"Back to menu - 1"<<endl;
  3638.     cout<<"Exit - 2"<<endl;
  3639.     cin>>cl;
  3640.     }while(cl == 1);
  3641. }
  3642. int dbase::todo()
  3643. {
  3644.     string yxa = "(Done)";
  3645.     string svi;
  3646.     int tpx;
  3647.     int tkm;
  3648.     int alt;
  3649.     char it[20];
  3650.     string done;
  3651.     string jn;
  3652.     int nj;
  3653.     int tmm;
  3654.     int th;
  3655.     int tmh;
  3656.     do
  3657.     {
  3658.     cout<<endl;
  3659.     cout<<"==========="<<endl;
  3660.     cout<<"Task Center"<<endl;
  3661.     cout<<"==========="<<endl;
  3662.     cout<<"----------------------"<<endl;
  3663.     cout<<"| New (1) | View (2) | "<<endl;
  3664.     cout<<"----------------------"<<endl;
  3665.     cin>>tkm;
  3666.     alt = tkm;
  3667.     if(tkm == 1)
  3668.     {
  3669.         cout<<"Enter any number (task number)"<<endl;
  3670.         cin>>it;
  3671.         int imp;
  3672.         string prt;
  3673.         string ji;
  3674.         string di;
  3675.         string ni;
  3676.         string all;
  3677.         cout<<endl;
  3678.         cout<<"Task Title:";
  3679.         getline(cin, ji);
  3680.         getline(cin, ji);
  3681.         cout<<endl;
  3682.         cout<<"Due:";
  3683.         getline(cin, di);
  3684.         cout<<endl;
  3685.         cout<<"Notes:";
  3686.         getline(cin, ni);
  3687.         cout<<endl;
  3688.         cout<<"Set Priority | 1 | 2 | 3 |"<<endl;
  3689.         cin>>imp;
  3690.         if(imp == 1)
  3691.         {
  3692.         prt = "Low";
  3693.         }
  3694.         if(imp == 2)
  3695.         {
  3696.         prt = "Medium";
  3697.         }
  3698.         if(imp == 3)
  3699.         {
  3700.         prt = "High";
  3701.         }
  3702.         all += ("-" + ji + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Notes: " + ni + "" + "\t\t\t\t\t\t\t\t\t\t\t" + "|Due: " + di + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Priority: " + prt + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");
  3703.         ofstream file(it);
  3704.         file<<all;
  3705.     }
  3706.     if(alt == 1)
  3707.     {
  3708.         string cht;
  3709.         ifstream filest(it);
  3710.         if(! filest.eof())
  3711.         {
  3712.         getline(filest, cht);
  3713.         cout<<endl;
  3714.         cout<<"==========================="<<endl;
  3715.         cout<<cht<<endl;
  3716.         cout<<"==========================="<<endl;
  3717.         cin.get();
  3718.         cin.get();
  3719.         }
  3720.     }
  3721.     if(tkm == 2)
  3722.     {
  3723.         string chs;
  3724.         char dm[20];
  3725.         cout<<"Task number:";
  3726.         cin>>dm;
  3727.         ifstream files(dm);
  3728.         if(! files.eof())
  3729.         {
  3730.         getline(files, chs);
  3731.         cout<<"==========================="<<endl;
  3732.         cout<<chs<<endl;
  3733.         cout<<"==========================="<<endl;
  3734.         cin.get();
  3735.         cin.get();
  3736.         if(chs == yxa)
  3737.         {
  3738.             cout<<"";
  3739.         }
  3740.         cout<<"- Mark as Done (1) - Set Task Time (2) -"<<endl;
  3741.         cin>>nj;
  3742.         if(nj == 1)
  3743.         {
  3744.             done = "(Done)";
  3745.             jn = (done + chs);
  3746.             ofstream dfile (dm);
  3747.             dfile<<jn;
  3748.         }
  3749.         if(nj == 2)
  3750.         {
  3751. // set time code
  3752.             cout<<"Set how much time this task might take"<<endl;
  3753.             cout<<"Minutes: "<<endl;
  3754.             cin>>tmm;
  3755.             cout<<"Hours: "<<endl;
  3756.             cin>>th;
  3757.             tmm += ("Minutes: " + tmm);
  3758.             th += ("Hours: " + th);
  3759.             tmh = (tmm + th);
  3760.         }
  3761.         cout<<endl;
  3762.         cout<<"Back to menu - 1"<<endl;
  3763.         cout<<"Exit - 2"<<endl;
  3764.         cin>>tpx;
  3765.         }while(tpx == 1);
  3766.     }
  3767.     class Time
  3768.     {
  3769.     public:
  3770.         void Timer();
  3771.     };
  3772. //              COUNTDOWN TIMER
  3773.     void Time::Timer()
  3774.     {
  3775.         unsigned int zxi;
  3776.         do
  3777.         {
  3778.         unsigned int zt;
  3779.         unsigned int xt;
  3780.         unsigned int yt;
  3781.         cout<<endl;
  3782.         cout<<"==============="<<endl;
  3783.         cout<<"Countdown Timer"<<endl;
  3784.         cout<<"==============="<<endl;
  3785.         cout<<endl;
  3786.         cout<<"Time in minutes - 1"<<endl;
  3787.         cout<<"Time in seconds - 2"<<endl;
  3788.         cin>>yt;
  3789.         if(yt == 1)
  3790.         {
  3791.             cout<<endl;
  3792.             cout<<"Enter how many minutes to count down from:";
  3793.             cin>>xt;
  3794.             cout<<"-"<<xt<<"-";
  3795.             cout<<flush;
  3796.             for(xt >= 0; xt --;)
  3797.             {
  3798.             cout<<"-"<<xt<<"-";
  3799.             sleep(60);
  3800.             cout<<flush;
  3801.             }
  3802.         }
  3803.         if(yt == 2)
  3804.         {
  3805.             cout<<endl;
  3806.             cout<<"Enter how many seconds to count down from:";
  3807.             cin>>zt;
  3808.             cout<<"-"<<zt<<"-";
  3809.             cout<<flush;
  3810.             for(zt >= 0; zt--;)
  3811.             {
  3812.             cout<<"-"<<zt<<"-";
  3813.             sleep(1);
  3814.             cout<<flush;
  3815.             }
  3816.         }
  3817.         cout<<endl;
  3818.         cout<<"---"<<endl;
  3819.         cout<<"End"<<endl;
  3820.         cout<<"---"<<endl;
  3821.         cout<<"(press enter)"<<endl;
  3822.         cin.get();
  3823.         cin.get();
  3824.         cout<<"Start another countdown - 1"<<endl;
  3825.         cout<<"Exit - 2"<<endl;
  3826.         cin>>zxi;
  3827.         }
  3828.         while(zxi == 1);
  3829.     }
  3830.     class Sdt
  3831.     {
  3832.     public:
  3833.         void Speed();
  3834.         void Distance();
  3835.         void Time();
  3836.     };
  3837.     void Sdt::Time()
  3838.     {
  3839.         float one;
  3840.         float hr;
  3841.         float hr1;
  3842.         float mnt;
  3843.         float scd;
  3844.         float hr2;
  3845.         float hr12;
  3846.         float mnt2;
  3847.         float scd2;
  3848.         do
  3849.         {
  3850.         unsigned int ch;
  3851.         cout<<endl;
  3852.         cout<<"==============="<<endl;
  3853.         cout<<"Time Calculator"<<endl;
  3854.         cout<<"==============="<<endl;
  3855.         cout<<endl;
  3856.         cout<<"Hours - 1"<<endl;
  3857.         cout<<"Hours(MPH) - 2"<<endl;
  3858.         cout<<"Minutes - 3"<<endl;
  3859.         cout<<"Seconds - 4"<<endl;
  3860.         cin>>ch;
  3861.         if(ch == 4)
  3862.         {
  3863.             cout<<"Enter the meters:";
  3864.             cin>>scd;
  3865.             cout<<"Enter speed meters/second:";
  3866.             cin>>scd2;
  3867.             cout<<endl;
  3868.             cout<<(scd / scd2)<<" Seconds"<<endl;
  3869.             cout<<"---------------------------------"<<endl;
  3870.             cin.get();
  3871.             cin.get();
  3872.         }
  3873.         if(ch == 3)
  3874.         {
  3875.             cout<<"Enter the meters:";
  3876.             cin>>mnt;
  3877.             cout<<"Enter speed meters/minute:";
  3878.             cin>>mnt2;
  3879.             cout<<endl;
  3880.             cout<<(mnt / mnt2)<<" Minutes"<<endl;
  3881.             cout<<"---------------------------------"<<endl;
  3882.             cin.get();
  3883.             cin.get();
  3884.         }
  3885.         if(ch == 2)
  3886.         {
  3887.             cout<<"Enter the meters:";
  3888.             cin>>hr1;
  3889.             cout<<"Enter speed MPH:";
  3890.             cin>>hr12;
  3891.             cout<<endl;
  3892.             cout<<(hr1 / hr12)<<" Hours"<<endl;
  3893.             cout<<"---------------------------------"<<endl;
  3894.             cin.get();
  3895.             cin.get();
  3896.         }
  3897.         if(ch == 1)
  3898.         {
  3899.             cout<<"Enter the kilometers:";
  3900.             cin>>hr;
  3901.             cout<<"Enter speed KM/H:";
  3902.             cin>>hr2;
  3903.             cout<<endl;
  3904.             cout<<(hr / hr2)<<" Hours"<<endl;
  3905.             cout<<"---------------------------------"<<endl;
  3906.             cin.get();
  3907.             cin.get();
  3908.         }
  3909.         cout<<endl;
  3910.         cout<<"Do another convertion - 1"<<endl;
  3911.         cout<<"Exit - 2"<<endl;
  3912.         cin>>ch;
  3913.         }while(one == 1);
  3914.     }
  3915. //              DISTANCE CALCULATOR
  3916.     void Sdt::Distance()
  3917.     {
  3918.         int vp;
  3919.         int xpi;
  3920.         float ks;
  3921.         float kt;
  3922.         do
  3923.         {
  3924.         cout<<endl;
  3925.         cout<<"==================="<<endl;
  3926.         cout<<"Distance Calculator"<<endl;
  3927.         cout<<"==================="<<endl;
  3928.         cout<<endl;
  3929.         cout<<"KM - 1"<<endl;
  3930.         cout<<"Miles - 2"<<endl;
  3931.         cout<<"Meters - 3"<<endl;
  3932.         cin>>xpi;
  3933.         if(xpi == 1)
  3934.         {
  3935.             cout<<endl;
  3936.             cout<<"Enter the speed (KM/H):";
  3937.             cin>>ks;
  3938.             cout<<endl;
  3939.             cout<<"Enter the minutes:";
  3940.             cin>>kt;
  3941.             kt = (kt / 60);
  3942.             cout<<endl;
  3943.             cout<<(ks * kt)<<" KM"<<endl;
  3944.             cout<<"---------------------------------"<<endl;
  3945.             cin.get();
  3946.             cin.get();
  3947.         }
  3948.         if(xpi == 2)
  3949.         {
  3950.             cout<<endl;
  3951.             cout<<"Enter the speed (MPH):";
  3952.             cin>>ks;
  3953.             cout<<endl;
  3954.             cout<<"Enter the minutes:";
  3955.             cin>>kt;
  3956.             kt = (kt / 60);
  3957.             cout<<endl;
  3958.             cout<<(ks * kt)<<" Miles"<<endl;
  3959.             cout<<"---------------------------------"<<endl;
  3960.             cin.get();
  3961.             cin.get();
  3962.         }
  3963.         if(xpi == 3)
  3964.         {
  3965.             cout<<endl;
  3966.             cout<<"Enter the speed (Meters/Second):";
  3967.             cin>>ks;
  3968.             cout<<endl;
  3969.             cout<<"Enter the minutes:";
  3970.             cin>>kt;
  3971.             kt = (kt * 60);
  3972.             cout<<endl;
  3973.             cout<<(ks * kt)<<" Meters"<<endl;
  3974.             cout<<"---------------------------------"<<endl;
  3975.             cin.get();
  3976.             cin.get();
  3977.         }
  3978.         cout<<endl;
  3979.         cout<<"Do another convertion - 1"<<endl;
  3980.         cout<<"Exit - 2"<<endl;
  3981.         cin>>vp;
  3982.         }while(vp == 1);
  3983.     }
  3984. //              SPEED CALCULATOR
  3985.     void Sdt::Speed()
  3986.     {
  3987.         float dx;
  3988.         float tx;
  3989.         int xp;
  3990.         int lp;
  3991.         do
  3992.         {
  3993.         cout<<endl;
  3994.         cout<<"================"<<endl;
  3995.         cout<<"Speed Calculator"<<endl;
  3996.         cout<<"================"<<endl;
  3997.         cout<<endl;
  3998.         cout<<"M/S - 1"<<endl;
  3999.         cout<<"KM/H - 2"<<endl;
  4000.         cout<<"MPH - 3"<<endl;
  4001.         cin>>xp;
  4002.         if(xp == 1)
  4003.         {
  4004.             cout<<endl;
  4005.             cout<<"Type in the meters:";
  4006.             cin>>dx;
  4007.             cout<<endl;
  4008.             cout<<"Type in the seconds:";
  4009.             cin>>tx;
  4010.             cout<<endl;
  4011.             cout<<(dx / tx)<<" M/S"<<endl;
  4012.             cout<<"---------------------------------"<<endl;
  4013.             cin.get();
  4014.             cin.get();
  4015.         }
  4016.         if(xp == 2)
  4017.         {
  4018.             cout<<endl;
  4019.             cout<<"Type in the kilometers:";
  4020.             cin>>dx;
  4021.             cout<<endl;
  4022.             cout<<"Type in the mintues:";
  4023.             cin>>tx;
  4024.             tx = (tx / 60);
  4025.             cout<<endl;
  4026.             cout<<(dx / tx)<<" KM/H"<<endl;
  4027.             cout<<"---------------------------------"<<endl;
  4028.             cin.get();
  4029.             cin.get();
  4030.         }
  4031.         if(xp == 3)
  4032.         {
  4033.             cout<<endl;
  4034.             cout<<"Type in the miles:";
  4035.             cin>>dx;
  4036.             cout<<endl;
  4037.             cout<<"Type in the mintues:";
  4038.             cin>>tx;
  4039.             tx = (tx / 60);
  4040.             cout<<endl;
  4041.             cout<<(dx / tx)<<" MPH"<<endl;
  4042.             cout<<"---------------------------------"<<endl;
  4043.             cin.get();
  4044.             cin.get();
  4045.         }
  4046.         cout<<endl;
  4047.         cout<<"Do another conversion - 1"<<endl;
  4048.         cout<<"Exit - 2"<<endl;
  4049.         cin>>lp;
  4050.         }while(lp == 1);
  4051.     }
  4052.     class Unit
  4053.     {
  4054.     public:
  4055.         void Con();
  4056.     };
  4057.     void Unit::Con()
  4058.     {
  4059.         int hh;
  4060.         do
  4061.         {
  4062.         int zx;
  4063.         cout<<endl;
  4064.         cout<<"=============="<<endl;
  4065.         cout<<"Unit Converter"<<endl;
  4066.         cout<<"=============="<<endl;
  4067.         cout<<endl;
  4068.         cout<<"Temperature - 1"<<endl;
  4069.         cout<<"Length - 2"<<endl;
  4070.         cout<<"Time - 3"<<endl;
  4071.         cin>>zx;
  4072.         if(zx == 1)
  4073.         {
  4074.             int v;
  4075.             float vv;
  4076.             cout<<endl;
  4077.             cout<<"==================================================="<<endl;
  4078.             cout<<"Celsius to Fahrenheit - 1"<<endl;
  4079.             cout<<"Fahrenheit to Celsius - 2"<<endl;
  4080.             cout<<endl;
  4081.             cout<<"Celsius to Kelvin - 3"<<endl;
  4082.             cout<<"Fahrenheit to Kelvin - 4"<<endl;
  4083.             cout<<endl;
  4084.             cout<<"Kelvin to Fahenheit - 5"<<endl;
  4085.             cout<<"Kelvin to Celsius - 6"<<endl;
  4086.             cout<<endl;
  4087.             cin>>v;
  4088.             if(v == 1)
  4089.             {
  4090.             cout<<"Type in your Celsius Value:";
  4091.             cin>>vv;
  4092.             cout<<endl;
  4093.             cout<<(vv * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  4094.             cout<<"---------------------------------"<<endl;
  4095.             cin.get();
  4096.             cin.get();
  4097.             }
  4098.             if(v == 2)
  4099.             {
  4100.             cout<<"Type in your Fahrenheit Value:";
  4101.             cin>>vv;
  4102.             cout<<endl;
  4103.             cout<<(vv - 32) * 5/9<<"Degrees Celsius"<<endl;
  4104.             cout<<"---------------------------------"<<endl;
  4105.             cin.get();
  4106.             cin.get();
  4107.             }
  4108.             if(v == 3)
  4109.             {
  4110.             cout<<"Type in your Celsius Value:";
  4111.             cin>>vv;
  4112.             cout<<endl;
  4113.             cout<<(vv + 273.15)<<" Kelvin"<<endl;
  4114.             cin.get();
  4115.             cin.get();
  4116.             }
  4117.             if(v == 4)
  4118.             {
  4119.             cout<<"Type in your Fahrenheit Value:";
  4120.             cin>>vv;
  4121.             cout<<endl;
  4122.             cout<<((vv - 32) * 5/9 + 273.15)<<" Kelvin"<<endl;
  4123.             cout<<"---------------------------------"<<endl;
  4124.             cin.get();
  4125.             cin.get();
  4126.             }
  4127.             if(v == 5)
  4128.             {
  4129.             cout<<"Type in your Kelvin Value:";
  4130.             cin>>vv;
  4131.             cout<<endl;
  4132.             cout<<((vv - 273.15) * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  4133.             cout<<"---------------------------------"<<endl;
  4134.             cin.get();
  4135.             cin.get();
  4136.             }
  4137.             if(v == 6)
  4138.             {
  4139.             cout<<"Type in your Kelvin Value:";
  4140.             cin>>vv;
  4141.             cout<<endl;
  4142.             cout<<(vv - 273.15)<<" Degrees Celsius"<<endl;
  4143.             cout<<"---------------------------------"<<endl;
  4144.             cin.get();
  4145.             cin.get();
  4146.             }
  4147.         }
  4148.         if(zx == 2)
  4149.         {
  4150.             string aa = "mm-m";
  4151.             string ab = "mm-km";
  4152.             string ac = "mm-ft";
  4153.             string ad = "mm-inch";
  4154.             string bb = "m-km";
  4155.             string cc = "ft-inch";
  4156.             string dd = "inch-ft";
  4157.             string dda = "inch-m";
  4158.             string ddb = "inch-mm";
  4159.             string ee = "m-mm";
  4160.             string ff = "km-m";
  4161.             string gg = "ft-m";
  4162.             string ga = "ft-km";
  4163.             string hh = "m-ft";
  4164.             string hha = "km-mm";
  4165.             string ii = "inch-mm";
  4166.             string ib = "m-ft";
  4167.             string ic = "m-inch";
  4168.             string mm = "km-mile";
  4169.             string mma = "mile-km";
  4170.             string mb = "m-mile";
  4171.             string mba = "mile-m";
  4172.             string mc = "ft-mile";
  4173.             string mca = "mile-ft";
  4174.             string xy;
  4175.             float yy;
  4176.             cout<<endl;
  4177.             cout<<"==================================================="<<endl;
  4178.             cout<<"Type in your length to convert from and to:"<<endl;
  4179.             cout<<"(i.e. mm-m, ft-inch, km-mile)"<<endl;
  4180.             cout<<endl;
  4181.             cin>>xy;
  4182. //              MM-M
  4183.             if(xy == aa)
  4184.             {
  4185.             cout<<endl;
  4186.             cout<<"Type in your millimetre value:";
  4187.             cin>>yy;
  4188.             cout<<(yy / 1000)<<" Meters"<<endl;
  4189.             cout<<"---------------------------------"<<endl;
  4190.             cin.get();
  4191.             cin.get();
  4192.             }
  4193. //              MM-KM
  4194.             if(xy == ab)
  4195.             {
  4196.             cout<<endl;
  4197.             cout<<"Type in your millimetre value:";
  4198.             cin>>yy;
  4199.             cout<<(yy / 1000 / 1000)<<" Kilometers"<<endl;
  4200.             cout<<"---------------------------------"<<endl;
  4201.             cin.get();
  4202.             cin.get();
  4203.             }
  4204. //              MM-FT
  4205.             if(xy == ac)
  4206.             {
  4207.             cout<<endl;
  4208.             cout<<"Type in your millimetre value:";
  4209.             cin>>yy;
  4210.             cout<<(yy * 0.03937) / 12<<" Feet"<<endl;
  4211.             cout<<"---------------------------------"<<endl;
  4212.             cin.get();
  4213.             cin.get();
  4214.             }
  4215. //              MM-INCH
  4216.             if(xy == ad)
  4217.             {
  4218.             cout<<endl;
  4219.             cout<<"Type in your millimetre value:";
  4220.             cin>>yy;
  4221.             cout<<(yy * 0.03937)<<" Inches"<<endl;
  4222.             cout<<"---------------------------------"<<endl;
  4223.             cin.get();
  4224.             cin.get();
  4225.             }
  4226. //              M-KM
  4227.             if(xy == bb)
  4228.             {
  4229.             cout<<endl;
  4230.             cout<<"Type in your metre value:";
  4231.             cin>>yy;
  4232.             cout<<(yy / 1000)<<" Kilometers"<<endl;
  4233.             cout<<"---------------------------------"<<endl;
  4234.             cin.get();
  4235.             cin.get();
  4236.             }
  4237. //              FT-INCH
  4238.             if(xy == cc)
  4239.             {
  4240.             cout<<endl;
  4241.             cout<<"Type in your Feet value:";
  4242.             cin>>yy;
  4243.             cout<<(yy * 12)<<" Inches"<<endl;
  4244.             cout<<"---------------------------------"<<endl;
  4245.             cin.get();
  4246.             cin.get();
  4247.             }
  4248. //              INCH-FT
  4249.             if(xy == dd)
  4250.             {
  4251.             cout<<endl;
  4252.             cout<<"Type in your Inch value:";
  4253.             cin>>yy;
  4254.             cout<<(yy / 12)<<" Feet"<<endl;
  4255.             cout<<"---------------------------------"<<endl;
  4256.             cin.get();
  4257.             cin.get();
  4258.             }
  4259.             if(xy == dda)
  4260.             {
  4261.             cout<<endl;
  4262.             cout<<"Type in your Inch value:";
  4263.             cin>>yy;
  4264.             cout<<(yy * 0.3048) / 12<<" Meters"<<endl;
  4265.             cout<<"---------------------------------"<<endl;
  4266.             cin.get();
  4267.             cin.get();
  4268.             }
  4269. //              M-MM
  4270.             if(xy == ee)
  4271.             {
  4272.             cout<<endl;
  4273.             cout<<"Type in your Meter value:";
  4274.             cin>>yy;
  4275.             cout<<(yy * 1000)<<" Millimeters"<<endl;
  4276.             cout<<"---------------------------------"<<endl;
  4277.             cin.get();
  4278.             cin.get();
  4279.             }
  4280. //              KM-M
  4281.             if(xy == ff)
  4282.             {
  4283.             cout<<endl;
  4284.             cout<<"Type in your Kilometer value:";
  4285.             cin>>yy;
  4286.             cout<<(yy * 1000)<<" Meters"<<endl;
  4287.             cout<<"---------------------------------"<<endl;
  4288.             cin.get();
  4289.             cin.get();
  4290.             }
  4291. //              FT-MM
  4292.             if(xy == gg)
  4293.             {
  4294.             cout<<endl;
  4295.             cout<<"Type in your Feet value:";
  4296.             cin>>yy;
  4297.             cout<<(yy * 0.3048)<<" Meters"<<endl;
  4298.             cout<<"---------------------------------"<<endl;
  4299.             cin.get();
  4300.             cin.get();
  4301.             }
  4302.             if(xy == ga)
  4303.             {
  4304.             cout<<endl;
  4305.             cout<<"Type in your Feet value:";
  4306.             cin>>yy;
  4307.             cout<<(yy * 0.0003048)<<" Kilometers"<<endl;
  4308.             cout<<"---------------------------------"<<endl;
  4309.             cin.get();
  4310.             cin.get();
  4311.             }
  4312. //              KM-MM
  4313.             if(xy == hha)
  4314.             {
  4315.             cout<<endl;
  4316.             cout<<"Type in your kilometer value:";
  4317.             cin>>yy;
  4318.             cout<<(yy * 1000 * 1000)<<" Millimeters"<<endl;
  4319.             cout<<"---------------------------------"<<endl;
  4320.             cin.get();
  4321.             cin.get();
  4322.             }
  4323. //              INCH-MM
  4324.             if(xy == ii)
  4325.             {
  4326.             cout<<endl;
  4327.             cout<<"Type in your inch value:";
  4328.             cin>>yy;
  4329.             cout<<(yy / 0.03937)<<" Millimeters"<<endl;
  4330.             cout<<"---------------------------------"<<endl;
  4331.             cin.get();
  4332.             cin.get();
  4333.             }
  4334. //              MM-FT
  4335.             if(xy == ib)
  4336.             {
  4337.             cout<<endl;
  4338.             cout<<"Type in your Meter value:";
  4339.             cin>>yy;
  4340.             cout<<((yy * 39.37) / 12)<<" Feet"<<endl;
  4341.             cout<<"---------------------------------"<<endl;
  4342.             cin.get();
  4343.             cin.get();
  4344.             }
  4345. //              MM-INCH
  4346.             if(xy == ic)
  4347.             {
  4348.             cout<<endl;
  4349.             cout<<"Type in your Meter value:";
  4350.             cin>>yy;
  4351.             cout<<(yy * 39.37)<<" Inches"<<endl;
  4352.             cout<<"---------------------------------"<<endl;
  4353.             cin.get();
  4354.             cin.get();
  4355.             }
  4356. //              KM-Miles
  4357.             if(xy == mm)
  4358.             {
  4359.             cout<<endl;
  4360.             cout<<"Type in your Kilometer value:";
  4361.             cin>>yy;
  4362.             cout<<(yy * 0.6214)<<" Miles"<<endl;
  4363.             cout<<"---------------------------------"<<endl;
  4364.             cin.get();
  4365.             cin.get();
  4366.             }
  4367. //              MILE-KM
  4368.             if(xy == mma)
  4369.             {
  4370.             cout<<endl;
  4371.             cout<<"Type in your Mile value:";
  4372.             cin>>yy;
  4373.             cout<<(yy * 1.609)<<" Kilometers"<<endl;
  4374.             cout<<"---------------------------------"<<endl;
  4375.             cin.get();
  4376.             cin.get();
  4377.             }
  4378. //              M-MILE
  4379.             if(xy == mb)
  4380.             {
  4381.             cout<<endl;
  4382.             cout<<"Type in your Meter value:";
  4383.             cin>>yy;
  4384.             cout<<(yy * 0.0006214)<<" Miles"<<endl;
  4385.             cout<<"---------------------------------"<<endl;
  4386.             cin.get();
  4387.             cin.get();
  4388.             }
  4389.         }
  4390. //              TIME CONVERTER
  4391.         if(zx == 3)
  4392.         {
  4393.             string at = "mins-hours";
  4394.             string ata = "mins-days";
  4395.             string atb = "mins-weeks";
  4396.             string atc = "mins-months";
  4397.             string atd = "mins-years";
  4398.             string bt = "hours-mins";
  4399.             string bta = "hours-days";
  4400.             string btb = "hours-weeks";
  4401.             string btc = "hours-months";
  4402.             string btd = "hours-years";
  4403.             string ct = "days-mins";
  4404.             string cta = "days-hours";
  4405.             string ctb = "days-weeks";
  4406.             string ctc = "days-months";
  4407.             string ctd = "days-years";
  4408.             string dt = "weeks-mins";
  4409.             string dta = "weeks-hours";
  4410.             string dtb = "weeks-days";
  4411.             string dtc = "weeks-months";
  4412.             string dtd = "weeks-years";
  4413.             string et = "months-mins";
  4414.             string eta = "months-hours";
  4415.             string etb = "months-days";
  4416.             string etc = "months-weeks";
  4417.             string etd = "months-years";
  4418.             string ft = "years-mins";
  4419.             string fta = "years-hours";
  4420.             string ftb = "years-days";
  4421.             string ftc = "years-weeks";
  4422.             string ftd = "years-months";
  4423.             string coni;
  4424.             float mt;
  4425.             cout<<endl;
  4426.             cout<<"Type in your time to convert from and to:"<<endl;
  4427.             cout<<"(i.e. mins-hours, months-weeks, days-years)"<<endl;
  4428.             cin>>coni;
  4429.             if(coni == at)
  4430.             {
  4431.             cout<<endl;
  4432.             cout<<"type in your minute value:";
  4433.             cin>>mt;
  4434.             cout<<endl;
  4435.             cout<<(mt / 60)<<" Hours"<<endl;
  4436.             cout<<"---------------------------------"<<endl;
  4437.             cin.get();
  4438.             cin.get();
  4439.             }
  4440.             if(coni == ata)
  4441.             {
  4442.             cout<<endl;
  4443.             cout<<"type in your minute value:";
  4444.             cin>>mt;
  4445.             cout<<endl;
  4446.             cout<<(mt / 60) / 24<<" Days"<<endl;
  4447.             cout<<"---------------------------------"<<endl;
  4448.             cin.get();
  4449.             cin.get();
  4450.             }
  4451.             if(coni == atb)
  4452.             {
  4453.             cout<<endl;
  4454.             cout<<"type in your minute value:";
  4455.             cin>>mt;
  4456.             cout<<endl;
  4457.             cout<<((mt / 60) / 24) / 7<<" Weeks"<<endl;
  4458.             cout<<"---------------------------------"<<endl;
  4459.             cin.get();
  4460.             cin.get();
  4461.             }
  4462.             if(coni == atc)
  4463.             {
  4464.             cout<<endl;
  4465.             cout<<"type in your minute value:";
  4466.             cin>>mt;
  4467.             cout<<endl;
  4468.             cout<<(((mt / 60) / 24) / 7) / 4.3<<" Months"<<endl;
  4469.             cout<<"---------------------------------"<<endl;
  4470.             cin.get();
  4471.             cin.get();
  4472.             }
  4473.             if(coni == atd)
  4474.             {
  4475.             cout<<endl;
  4476.             cout<<"type in your minute value:";
  4477.             cin>>mt;
  4478.             cout<<endl;
  4479.             cout<<((((mt / 60) / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  4480.             cout<<"---------------------------------"<<endl;
  4481.             cin.get();
  4482.             cin.get();
  4483.             }
  4484.             if(coni == bt)
  4485.             {
  4486.             cout<<endl;
  4487.             cout<<"type in your hours value:";
  4488.             cin>>mt;
  4489.             cout<<endl;
  4490.             cout<<(mt * 60)<<" Minutes"<<endl;
  4491.             cout<<"---------------------------------"<<endl;
  4492.             cin.get();
  4493.             cin.get();
  4494.             }
  4495.             if(coni == bta)
  4496.             {
  4497.             cout<<endl;
  4498.             cout<<"type in your hours value:";
  4499.             cin>>mt;
  4500.             cout<<endl;
  4501.             cout<<(mt / 24)<<" Days"<<endl;
  4502.             cout<<"---------------------------------"<<endl;
  4503.             cin.get();
  4504.             cin.get();
  4505.             }
  4506.             if(coni == btb)
  4507.             {
  4508.             cout<<endl;
  4509.             cout<<"type in your hours value:";
  4510.             cin>>mt;
  4511.             cout<<endl;
  4512.             cout<<(mt / 24) / 7<<" Weeks"<<endl;
  4513.             cout<<"---------------------------------"<<endl;
  4514.             cin.get();
  4515.             cin.get();
  4516.             }
  4517.             if(coni == btc)
  4518.             {
  4519.             cout<<endl;
  4520.             cout<<"type in your hours value:";
  4521.             cin>>mt;
  4522.             cout<<endl;
  4523.             cout<<((mt / 24) / 7) / 4.3<<" Months"<<endl;
  4524.             cout<<"---------------------------------"<<endl;
  4525.             cin.get();
  4526.             cin.get();
  4527.             }
  4528.             if(coni == btd)
  4529.             {
  4530.             cout<<endl;
  4531.             cout<<"type in your hours value:";
  4532.             cin>>mt;
  4533.             cout<<endl;
  4534.             cout<<(((mt / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  4535.             cout<<"---------------------------------"<<endl;
  4536.             cin.get();
  4537.             cin.get();
  4538.             }
  4539.             if(coni == ct)
  4540.             {
  4541.             cout<<endl;
  4542.             cout<<"type in your days value:";
  4543.             cin>>mt;
  4544.             cout<<endl;
  4545.             cout<<(mt * 24) * 60<<" Minutes"<<endl;
  4546.             cout<<"---------------------------------"<<endl;
  4547.             cin.get();
  4548.             cin.get();
  4549.             }
  4550.             if(coni == cta)
  4551.             {
  4552.             cout<<endl;
  4553.             cout<<"type in your days value:";
  4554.             cin>>mt;
  4555.             cout<<endl;
  4556.             cout<<(mt * 24)<<" Hours"<<endl;
  4557.             cout<<"---------------------------------"<<endl;
  4558.             cin.get();
  4559.             cin.get();
  4560.             }
  4561.             if(coni == ctb)
  4562.             {
  4563.             cout<<endl;
  4564.             cout<<"type in your days value:";
  4565.             cin>>mt;
  4566.             cout<<endl;
  4567.             cout<<(mt / 7)<<" Weeks"<<endl;
  4568.             cout<<"---------------------------------"<<endl;
  4569.             cin.get();
  4570.             cin.get();
  4571.             }
  4572.             if(coni == ctc)
  4573.             {
  4574.             cout<<endl;
  4575.             cout<<"type in your days value:";
  4576.             cin>>mt;
  4577.             cout<<endl;
  4578.             cout<<(mt / 7) / 4.3<<" Months"<<endl;
  4579.             cout<<"---------------------------------"<<endl;
  4580.             cin.get();
  4581.             cin.get();
  4582.             }
  4583.             if(coni == ctd)
  4584.             {
  4585.             cout<<endl;
  4586.             cout<<"type in your days value:";
  4587.             cin>>mt;
  4588.             cout<<endl;
  4589.             cout<<((mt / 7) / 4.3) / 12<<" Years"<<endl;
  4590.             cout<<"---------------------------------"<<endl;
  4591.             cin.get();
  4592.             cin.get();
  4593.             }
  4594.             if(coni == dt)
  4595.             {
  4596.             cout<<endl;
  4597.             cout<<"type in your weeks value:";
  4598.             cin>>mt;
  4599.             cout<<endl;
  4600.             cout<<((mt * 7) * 24) * 60<<" Minutes"<<endl;
  4601.             cout<<"---------------------------------"<<endl;
  4602.             cin.get();
  4603.             cin.get();
  4604.             }
  4605.             if(coni == dta)
  4606.             {
  4607.             cout<<endl;
  4608.             cout<<"type in your weeks value:";
  4609.             cin>>mt;
  4610.             cout<<endl;
  4611.             cout<<(mt * 7) * 24<<" Hours"<<endl;
  4612.             cout<<"---------------------------------"<<endl;
  4613.             cin.get();
  4614.             cin.get();
  4615.             }
  4616.             if(coni == dtb)
  4617.             {
  4618.             cout<<endl;
  4619.             cout<<"type in your weeks value:";
  4620.             cin>>mt;
  4621.             cout<<endl;
  4622.             cout<<(mt * 7)<<" Days"<<endl;
  4623.             cout<<"---------------------------------"<<endl;
  4624.             cin.get();
  4625.             cin.get();
  4626.             }
  4627.             if(coni == dtc)
  4628.             {
  4629.             cout<<endl;
  4630.             cout<<"type in your weeks value:";
  4631.             cin>>mt;
  4632.             cout<<endl;
  4633.             cout<<(mt / 4.3)<<" Months"<<endl;
  4634.             cout<<"---------------------------------"<<endl;
  4635.             cin.get();
  4636.             cin.get();
  4637.             }
  4638.             if(coni == dtd)
  4639.             {
  4640.             cout<<endl;
  4641.             cout<<"type in your weeks value:";
  4642.             cin>>mt;
  4643.             cout<<endl;
  4644.             cout<<(mt / 4.3) / 12<<" Years"<<endl;
  4645.             cout<<"---------------------------------"<<endl;
  4646.             cin.get();
  4647.             cin.get();
  4648.             }
  4649.             if(coni == et)
  4650.             {
  4651.             cout<<endl;
  4652.             cout<<"type in your months value:";
  4653.             cin>>mt;
  4654.             cout<<endl;
  4655.             cout<<(mt * 4.3 * 7 * 24 * 60)<<" Minutes"<<endl;
  4656.             cout<<"---------------------------------"<<endl;
  4657.             cin.get();
  4658.             cin.get();
  4659.             }
  4660.             if(coni == eta)
  4661.             {
  4662.             cout<<endl;
  4663.             cout<<"type in your months value:";
  4664.             cin>>mt;
  4665.             cout<<endl;
  4666.             cout<<(mt * 4.3 * 7 * 24)<<" Hours"<<endl;
  4667.             cout<<"---------------------------------"<<endl;
  4668.             cin.get();
  4669.             cin.get();
  4670.             }
  4671.             if(coni == etb)
  4672.             {
  4673.             cout<<endl;
  4674.             cout<<"type in your months value:";
  4675.             cin>>mt;
  4676.             cout<<endl;
  4677.             cout<<(mt * 4.3 * 7)<<" Days"<<endl;
  4678.             cout<<"---------------------------------"<<endl;
  4679.             cin.get();
  4680.             cin.get();
  4681.             }
  4682.             if(coni == etc)
  4683.             {
  4684.             cout<<endl;
  4685.             cout<<"type in your months value:";
  4686.             cin>>mt;
  4687.             cout<<endl;
  4688.             cout<<(mt * 4.3 * 7)<<" Weeks"<<endl;
  4689.             cout<<"---------------------------------"<<endl;
  4690.             cin.get();
  4691.             cin.get();
  4692.             }
  4693.             if(coni == etd)
  4694.             {
  4695.             cout<<endl;
  4696.             cout<<"type in your months value:";
  4697.             cin>>mt;
  4698.             cout<<endl;
  4699.             cout<<(mt / 7)<<" Years"<<endl;
  4700.             cout<<"---------------------------------"<<endl;
  4701.             cin.get();
  4702.             cin.get();
  4703.             }
  4704. #include <iostream>
  4705. #include <string>
  4706. #include <fstream>
  4707. #include <ctime>
  4708. #include <sstream>
  4709. using namespace std;
  4710. class base
  4711. {
  4712. public:
  4713.     virtual int prod(){return -1;}
  4714.     virtual int todo(){return -1;}
  4715.     virtual int calendar(){return -1;}
  4716. };
  4717. class dbase2:public base
  4718. {
  4719. public:
  4720.     int calendar();
  4721. };
  4722. int dbase2::calendar()
  4723. {
  4724.     int cme;
  4725.     int cd;
  4726.     string cdd;
  4727.     int cw;
  4728.     string cwd;
  4729.     int cm;
  4730.     string cmd;
  4731.     int cy;
  4732.     string cyd;
  4733.     cout<<endl;
  4734.     cout<<"========"<<endl;
  4735.     cout<<"Calendar"<<endl;
  4736.     cout<<"========"<<endl;
  4737.     cout<<"---------------------------"<<endl;
  4738.     cout<<"| View (1) | Settings (2) | "<<endl;
  4739.     cout<<"---------------------------"<<endl;
  4740.     cin>>cme;
  4741. // calendar display
  4742.     switch(cd)
  4743.     {
  4744.     {case 1:cdd = "-1-"; break;}
  4745.     }
  4746.     cout<<"|"<<cdd<<"|"<<endl;
  4747. // calendar display
  4748. }
  4749. class dbase:public base
  4750. {
  4751. public:
  4752.     int prod();
  4753.     int todo();
  4754. };
  4755. int dbase::prod()
  4756. {
  4757.     char nt[20];
  4758.     string ntw;
  4759.     int me;
  4760.     char ma[5];
  4761.     int cl;
  4762.     string ys = "yes";
  4763.     string dn;
  4764.     string dp;
  4765.     string de;
  4766.     char mp[20];
  4767.     string mpx;
  4768.     string adx;
  4769.     string dex;
  4770.     string ntwx;
  4771.     char mp1[20];
  4772.     string rc;
  4773.     string adr;
  4774.     char lit[20];
  4775.     char nf[20];
  4776.     string fn;
  4777.     string fnk;
  4778.     string fnx;
  4779.     char co[20];
  4780.     string tf;
  4781.     do
  4782.     {
  4783.     cout<<endl;
  4784.     cout<<"========"<<endl;
  4785.     cout<<"Contacts"<<endl;
  4786.     cout<<"========"<<endl;
  4787.     cout<<"--------------------------------------"<<endl;
  4788.     cout<<"| Add Contact (1) | View Contact (2) | "<<endl;
  4789.     cout<<"--------------------------------------"<<endl;
  4790.     cin>>me;
  4791.     if(me == 1)
  4792.     {
  4793.         cout<<"Enter any number (Reference number)"<<endl;
  4794.         cin>>lit;
  4795.         cout<<"Enter Name:";
  4796.         getline(cin, dn);
  4797.         getline(cin, dn);
  4798.         cout<<endl;
  4799.         cout<<"+ Add Phone Number? type 'yes' or 'no'"<<endl;
  4800.         cin>>mp;
  4801.         if(mp == ys)
  4802.         {
  4803.         cout<<"Phone Number:";
  4804.         getline(cin, dp);
  4805.         getline(cin, dp);
  4806.         mpx += ("|Phone Number: " + dp);
  4807.         }
  4808.         else
  4809.         {
  4810.         dp = "";
  4811.         }
  4812.         cout<<endl;
  4813.         cout<<"+ Add Address? type 'yes' or 'no'"<<endl;
  4814.         cin>>ma;
  4815.         if(ma == ys)
  4816.         {
  4817.         cout<<"Address:";
  4818.         getline(cin, adr);
  4819.         getline(cin, adr);
  4820.         adx += ("|Address: " + adr);
  4821.         }
  4822.         else
  4823.         {
  4824.         adr = "";
  4825.         }
  4826.         cout<<endl;
  4827.         cout<<"+ Add Email? type 'yes' or 'no'"<<endl;
  4828.         cin>>mp1;
  4829.         if(mp1 == ys)
  4830.         {
  4831.         cout<<"Email Address:";
  4832.         getline(cin, de);
  4833.         getline(cin, de);
  4834.         dex += ("|Email: " + de);
  4835.         }
  4836.         else
  4837.         {
  4838.         de = "";
  4839.         }
  4840.         cout<<endl;
  4841.         cout<<"+ Add Notes? type 'yes' or 'no'"<<endl;
  4842.         cin>>nt;
  4843.         if(nt == ys)
  4844.         {
  4845.         cout<<"Notes:";
  4846.         getline(cin, ntw);
  4847.         getline(cin, ntw);
  4848.         ntwx += ("|Notes: " + ntw);
  4849.         }
  4850.         cout<<endl;
  4851.         cout<<"+ Add Custom Field? type 'yes' or 'no'"<<endl;
  4852.         cin>>nf;
  4853.         if(nf == ys)
  4854.         {
  4855.         cout<<"Field Name:";
  4856.         getline(cin, fn);
  4857.         getline(cin, fn);
  4858.         cout<<fn<<":";
  4859.         getline(cin, fnk);
  4860.         fnx += ("|" + fn + ": " + fnk);
  4861.         }
  4862. // add ntw
  4863.         rc += ("-" + dn + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + mpx + "" + "\t\t\t\t\t\t\t\t\t\t\t" + adx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + dex + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + ntwx + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + fnx);
  4864.         ofstream fileo (lit);
  4865.         fileo<<rc;
  4866.     }
  4867.     if(me == 2)
  4868.     {
  4869.         cout<<endl;
  4870.         cout<<"Enter reference number:";
  4871.         cin>>co;
  4872.         ifstream fileop(co);
  4873.         if(! fileop.eof())
  4874.         {
  4875.         cout<<endl;
  4876.         getline(fileop, tf);
  4877.         cout<<endl;
  4878.         cout<<"====================="<<endl;
  4879.         cout<<tf<<endl;
  4880.         cout<<"====================="<<endl;
  4881.         cin.get();
  4882.         cin.get();
  4883.         }
  4884.     }
  4885.     cout<<endl;
  4886.     cout<<"Back to menu - 1"<<endl;
  4887.     cout<<"Exit - 2"<<endl;
  4888.     cin>>cl;
  4889.     }while(cl == 1);
  4890. }
  4891. int dbase::todo()
  4892. {
  4893.     string yxa = "(Done)";
  4894.     string svi;
  4895.     int tpx;
  4896.     int tkm;
  4897.     int alt;
  4898.     char it[20];
  4899.     string done;
  4900.     string jn;
  4901.     int nj;
  4902.     int tmm;
  4903.     int th;
  4904.     int tmh;
  4905.     do
  4906.     {
  4907.     cout<<endl;
  4908.     cout<<"==========="<<endl;
  4909.     cout<<"Task Center"<<endl;
  4910.     cout<<"==========="<<endl;
  4911.     cout<<"----------------------"<<endl;
  4912.     cout<<"| New (1) | View (2) | "<<endl;
  4913.     cout<<"----------------------"<<endl;
  4914.     cin>>tkm;
  4915.     alt = tkm;
  4916.     if(tkm == 1)
  4917.     {
  4918.         cout<<"Enter any number (task number)"<<endl;
  4919.         cin>>it;
  4920.         int imp;
  4921.         string prt;
  4922.         string ji;
  4923.         string di;
  4924.         string ni;
  4925.         string all;
  4926.         cout<<endl;
  4927.         cout<<"Task Title:";
  4928.         getline(cin, ji);
  4929.         getline(cin, ji);
  4930.         cout<<endl;
  4931.         cout<<"Due:";
  4932.         getline(cin, di);
  4933.         cout<<endl;
  4934.         cout<<"Notes:";
  4935.         getline(cin, ni);
  4936.         cout<<endl;
  4937.         cout<<"Set Priority | 1 | 2 | 3 |"<<endl;
  4938.         cin>>imp;
  4939.         if(imp == 1)
  4940.         {
  4941.         prt = "Low";
  4942.         }
  4943.         if(imp == 2)
  4944.         {
  4945.         prt = "Medium";
  4946.         }
  4947.         if(imp == 3)
  4948.         {
  4949.         prt = "High";
  4950.         }
  4951.         all += ("-" + ji + "-" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|----------------------" +  "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Notes: " + ni + "" + "\t\t\t\t\t\t\t\t\t\t\t" + "|Due: " + di + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "|Priority: " + prt + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");
  4952.         ofstream file(it);
  4953.         file<<all;
  4954.     }
  4955.     if(alt == 1)
  4956.     {
  4957.         string cht;
  4958.         ifstream filest(it);
  4959.         if(! filest.eof())
  4960.         {
  4961.         getline(filest, cht);
  4962.         cout<<endl;
  4963.         cout<<"==========================="<<endl;
  4964.         cout<<cht<<endl;
  4965.         cout<<"==========================="<<endl;
  4966.         cin.get();
  4967.         cin.get();
  4968.         }
  4969.     }
  4970.     if(tkm == 2)
  4971.     {
  4972.         string chs;
  4973.         char dm[20];
  4974.         cout<<"Task number:";
  4975.         cin>>dm;
  4976.         ifstream files(dm);
  4977.         if(! files.eof())
  4978.         {
  4979.         getline(files, chs);
  4980.         cout<<"==========================="<<endl;
  4981.         cout<<chs<<endl;
  4982.         cout<<"==========================="<<endl;
  4983.         cin.get();
  4984.         cin.get();
  4985.         if(chs == yxa)
  4986.         {
  4987.             cout<<"";
  4988.         }
  4989.         cout<<"- Mark as Done (1) - Set Task Time (2) -"<<endl;
  4990.         cin>>nj;
  4991.         if(nj == 1)
  4992.         {
  4993.             done = "(Done)";
  4994.             jn = (done + chs);
  4995.             ofstream dfile (dm);
  4996.             dfile<<jn;
  4997.         }
  4998.         if(nj == 2)
  4999.         {
  5000. // set time code
  5001.             cout<<"Set how much time this task might take"<<endl;
  5002.             cout<<"Minutes: "<<endl;
  5003.             cin>>tmm;
  5004.             cout<<"Hours: "<<endl;
  5005.             cin>>th;
  5006.             tmm += ("Minutes: " + tmm);
  5007.             th += ("Hours: " + th);
  5008.             tmh = (tmm + th);
  5009.         }
  5010.         cout<<endl;
  5011.         cout<<"Back to menu - 1"<<endl;
  5012.         cout<<"Exit - 2"<<endl;
  5013.         cin>>tpx;
  5014.         }while(tpx == 1);
  5015.     }
  5016.     class Time
  5017.     {
  5018.     public:
  5019.         void Timer();
  5020.     };
  5021. //              COUNTDOWN TIMER
  5022.     void Time::Timer()
  5023.     {
  5024.         unsigned int zxi;
  5025.         do
  5026.         {
  5027.         unsigned int zt;
  5028.         unsigned int xt;
  5029.         unsigned int yt;
  5030.         cout<<endl;
  5031.         cout<<"==============="<<endl;
  5032.         cout<<"Countdown Timer"<<endl;
  5033.         cout<<"==============="<<endl;
  5034.         cout<<endl;
  5035.         cout<<"Time in minutes - 1"<<endl;
  5036.         cout<<"Time in seconds - 2"<<endl;
  5037.         cin>>yt;
  5038.         if(yt == 1)
  5039.         {
  5040.             cout<<endl;
  5041.             cout<<"Enter how many minutes to count down from:";
  5042.             cin>>xt;
  5043.             cout<<"-"<<xt<<"-";
  5044.             cout<<flush;
  5045.             for(xt >= 0; xt --;)
  5046.             {
  5047.             cout<<"-"<<xt<<"-";
  5048.             sleep(60);
  5049.             cout<<flush;
  5050.             }
  5051.         }
  5052.         if(yt == 2)
  5053.         {
  5054.             cout<<endl;
  5055.             cout<<"Enter how many seconds to count down from:";
  5056.             cin>>zt;
  5057.             cout<<"-"<<zt<<"-";
  5058.             cout<<flush;
  5059.             for(zt >= 0; zt--;)
  5060.             {
  5061.             cout<<"-"<<zt<<"-";
  5062.             sleep(1);
  5063.             cout<<flush;
  5064.             }
  5065.         }
  5066.         cout<<endl;
  5067.         cout<<"---"<<endl;
  5068.         cout<<"End"<<endl;
  5069.         cout<<"---"<<endl;
  5070.         cout<<"(press enter)"<<endl;
  5071.         cin.get();
  5072.         cin.get();
  5073.         cout<<"Start another countdown - 1"<<endl;
  5074.         cout<<"Exit - 2"<<endl;
  5075.         cin>>zxi;
  5076.         }
  5077.         while(zxi == 1);
  5078.     }
  5079.     class Sdt
  5080.     {
  5081.     public:
  5082.         void Speed();
  5083.         void Distance();
  5084.         void Time();
  5085.     };
  5086.     void Sdt::Time()
  5087.     {
  5088.         float one;
  5089.         float hr;
  5090.         float hr1;
  5091.         float mnt;
  5092.         float scd;
  5093.         float hr2;
  5094.         float hr12;
  5095.         float mnt2;
  5096.         float scd2;
  5097.         do
  5098.         {
  5099.         unsigned int ch;
  5100.         cout<<endl;
  5101.         cout<<"==============="<<endl;
  5102.         cout<<"Time Calculator"<<endl;
  5103.         cout<<"==============="<<endl;
  5104.         cout<<endl;
  5105.         cout<<"Hours - 1"<<endl;
  5106.         cout<<"Hours(MPH) - 2"<<endl;
  5107.         cout<<"Minutes - 3"<<endl;
  5108.         cout<<"Seconds - 4"<<endl;
  5109.         cin>>ch;
  5110.         if(ch == 4)
  5111.         {
  5112.             cout<<"Enter the meters:";
  5113.             cin>>scd;
  5114.             cout<<"Enter speed meters/second:";
  5115.             cin>>scd2;
  5116.             cout<<endl;
  5117.             cout<<(scd / scd2)<<" Seconds"<<endl;
  5118.             cout<<"---------------------------------"<<endl;
  5119.             cin.get();
  5120.             cin.get();
  5121.         }
  5122.         if(ch == 3)
  5123.         {
  5124.             cout<<"Enter the meters:";
  5125.             cin>>mnt;
  5126.             cout<<"Enter speed meters/minute:";
  5127.             cin>>mnt2;
  5128.             cout<<endl;
  5129.             cout<<(mnt / mnt2)<<" Minutes"<<endl;
  5130.             cout<<"---------------------------------"<<endl;
  5131.             cin.get();
  5132.             cin.get();
  5133.         }
  5134.         if(ch == 2)
  5135.         {
  5136.             cout<<"Enter the meters:";
  5137.             cin>>hr1;
  5138.             cout<<"Enter speed MPH:";
  5139.             cin>>hr12;
  5140.             cout<<endl;
  5141.             cout<<(hr1 / hr12)<<" Hours"<<endl;
  5142.             cout<<"---------------------------------"<<endl;
  5143.             cin.get();
  5144.             cin.get();
  5145.         }
  5146.         if(ch == 1)
  5147.         {
  5148.             cout<<"Enter the kilometers:";
  5149.             cin>>hr;
  5150.             cout<<"Enter speed KM/H:";
  5151.             cin>>hr2;
  5152.             cout<<endl;
  5153.             cout<<(hr / hr2)<<" Hours"<<endl;
  5154.             cout<<"---------------------------------"<<endl;
  5155.             cin.get();
  5156.             cin.get();
  5157.         }
  5158.         cout<<endl;
  5159.         cout<<"Do another convertion - 1"<<endl;
  5160.         cout<<"Exit - 2"<<endl;
  5161.         cin>>ch;
  5162.         }while(one == 1);
  5163.     }
  5164. //              DISTANCE CALCULATOR
  5165.     void Sdt::Distance()
  5166.     {
  5167.         int vp;
  5168.         int xpi;
  5169.         float ks;
  5170.         float kt;
  5171.         do
  5172.         {
  5173.         cout<<endl;
  5174.         cout<<"==================="<<endl;
  5175.         cout<<"Distance Calculator"<<endl;
  5176.         cout<<"==================="<<endl;
  5177.         cout<<endl;
  5178.         cout<<"KM - 1"<<endl;
  5179.         cout<<"Miles - 2"<<endl;
  5180.         cout<<"Meters - 3"<<endl;
  5181.         cin>>xpi;
  5182.         if(xpi == 1)
  5183.         {
  5184.             cout<<endl;
  5185.             cout<<"Enter the speed (KM/H):";
  5186.             cin>>ks;
  5187.             cout<<endl;
  5188.             cout<<"Enter the minutes:";
  5189.             cin>>kt;
  5190.             kt = (kt / 60);
  5191.             cout<<endl;
  5192.             cout<<(ks * kt)<<" KM"<<endl;
  5193.             cout<<"---------------------------------"<<endl;
  5194.             cin.get();
  5195.             cin.get();
  5196.         }
  5197.         if(xpi == 2)
  5198.         {
  5199.             cout<<endl;
  5200.             cout<<"Enter the speed (MPH):";
  5201.             cin>>ks;
  5202.             cout<<endl;
  5203.             cout<<"Enter the minutes:";
  5204.             cin>>kt;
  5205.             kt = (kt / 60);
  5206.             cout<<endl;
  5207.             cout<<(ks * kt)<<" Miles"<<endl;
  5208.             cout<<"---------------------------------"<<endl;
  5209.             cin.get();
  5210.             cin.get();
  5211.         }
  5212.         if(xpi == 3)
  5213.         {
  5214.             cout<<endl;
  5215.             cout<<"Enter the speed (Meters/Second):";
  5216.             cin>>ks;
  5217.             cout<<endl;
  5218.             cout<<"Enter the minutes:";
  5219.             cin>>kt;
  5220.             kt = (kt * 60);
  5221.             cout<<endl;
  5222.             cout<<(ks * kt)<<" Meters"<<endl;
  5223.             cout<<"---------------------------------"<<endl;
  5224.             cin.get();
  5225.             cin.get();
  5226.         }
  5227.         cout<<endl;
  5228.         cout<<"Do another convertion - 1"<<endl;
  5229.         cout<<"Exit - 2"<<endl;
  5230.         cin>>vp;
  5231.         }while(vp == 1);
  5232.     }
  5233. //              SPEED CALCULATOR
  5234.     void Sdt::Speed()
  5235.     {
  5236.         float dx;
  5237.         float tx;
  5238.         int xp;
  5239.         int lp;
  5240.         do
  5241.         {
  5242.         cout<<endl;
  5243.         cout<<"================"<<endl;
  5244.         cout<<"Speed Calculator"<<endl;
  5245.         cout<<"================"<<endl;
  5246.         cout<<endl;
  5247.         cout<<"M/S - 1"<<endl;
  5248.         cout<<"KM/H - 2"<<endl;
  5249.         cout<<"MPH - 3"<<endl;
  5250.         cin>>xp;
  5251.         if(xp == 1)
  5252.         {
  5253.             cout<<endl;
  5254.             cout<<"Type in the meters:";
  5255.             cin>>dx;
  5256.             cout<<endl;
  5257.             cout<<"Type in the seconds:";
  5258.             cin>>tx;
  5259.             cout<<endl;
  5260.             cout<<(dx / tx)<<" M/S"<<endl;
  5261.             cout<<"---------------------------------"<<endl;
  5262.             cin.get();
  5263.             cin.get();
  5264.         }
  5265.         if(xp == 2)
  5266.         {
  5267.             cout<<endl;
  5268.             cout<<"Type in the kilometers:";
  5269.             cin>>dx;
  5270.             cout<<endl;
  5271.             cout<<"Type in the mintues:";
  5272.             cin>>tx;
  5273.             tx = (tx / 60);
  5274.             cout<<endl;
  5275.             cout<<(dx / tx)<<" KM/H"<<endl;
  5276.             cout<<"---------------------------------"<<endl;
  5277.             cin.get();
  5278.             cin.get();
  5279.         }
  5280.         if(xp == 3)
  5281.         {
  5282.             cout<<endl;
  5283.             cout<<"Type in the miles:";
  5284.             cin>>dx;
  5285.             cout<<endl;
  5286.             cout<<"Type in the mintues:";
  5287.             cin>>tx;
  5288.             tx = (tx / 60);
  5289.             cout<<endl;
  5290.             cout<<(dx / tx)<<" MPH"<<endl;
  5291.             cout<<"---------------------------------"<<endl;
  5292.             cin.get();
  5293.             cin.get();
  5294.         }
  5295.         cout<<endl;
  5296.         cout<<"Do another conversion - 1"<<endl;
  5297.         cout<<"Exit - 2"<<endl;
  5298.         cin>>lp;
  5299.         }while(lp == 1);
  5300.     }
  5301.     class Unit
  5302.     {
  5303.     public:
  5304.         void Con();
  5305.     };
  5306.     void Unit::Con()
  5307.     {
  5308.         int hh;
  5309.         do
  5310.         {
  5311.         int zx;
  5312.         cout<<endl;
  5313.         cout<<"=============="<<endl;
  5314.         cout<<"Unit Converter"<<endl;
  5315.         cout<<"=============="<<endl;
  5316.         cout<<endl;
  5317.         cout<<"Temperature - 1"<<endl;
  5318.         cout<<"Length - 2"<<endl;
  5319.         cout<<"Time - 3"<<endl;
  5320.         cin>>zx;
  5321.         if(zx == 1)
  5322.         {
  5323.             int v;
  5324.             float vv;
  5325.             cout<<endl;
  5326.             cout<<"==================================================="<<endl;
  5327.             cout<<"Celsius to Fahrenheit - 1"<<endl;
  5328.             cout<<"Fahrenheit to Celsius - 2"<<endl;
  5329.             cout<<endl;
  5330.             cout<<"Celsius to Kelvin - 3"<<endl;
  5331.             cout<<"Fahrenheit to Kelvin - 4"<<endl;
  5332.             cout<<endl;
  5333.             cout<<"Kelvin to Fahenheit - 5"<<endl;
  5334.             cout<<"Kelvin to Celsius - 6"<<endl;
  5335.             cout<<endl;
  5336.             cin>>v;
  5337.             if(v == 1)
  5338.             {
  5339.             cout<<"Type in your Celsius Value:";
  5340.             cin>>vv;
  5341.             cout<<endl;
  5342.             cout<<(vv * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  5343.             cout<<"---------------------------------"<<endl;
  5344.             cin.get();
  5345.             cin.get();
  5346.             }
  5347.             if(v == 2)
  5348.             {
  5349.             cout<<"Type in your Fahrenheit Value:";
  5350.             cin>>vv;
  5351.             cout<<endl;
  5352.             cout<<(vv - 32) * 5/9<<"Degrees Celsius"<<endl;
  5353.             cout<<"---------------------------------"<<endl;
  5354.             cin.get();
  5355.             cin.get();
  5356.             }
  5357.             if(v == 3)
  5358.             {
  5359.             cout<<"Type in your Celsius Value:";
  5360.             cin>>vv;
  5361.             cout<<endl;
  5362.             cout<<(vv + 273.15)<<" Kelvin"<<endl;
  5363.             cin.get();
  5364.             cin.get();
  5365.             }
  5366.             if(v == 4)
  5367.             {
  5368.             cout<<"Type in your Fahrenheit Value:";
  5369.             cin>>vv;
  5370.             cout<<endl;
  5371.             cout<<((vv - 32) * 5/9 + 273.15)<<" Kelvin"<<endl;
  5372.             cout<<"---------------------------------"<<endl;
  5373.             cin.get();
  5374.             cin.get();
  5375.             }
  5376.             if(v == 5)
  5377.             {
  5378.             cout<<"Type in your Kelvin Value:";
  5379.             cin>>vv;
  5380.             cout<<endl;
  5381.             cout<<((vv - 273.15) * 9/5 + 32)<<" Degrees Fahrenheit"<<endl;
  5382.             cout<<"---------------------------------"<<endl;
  5383.             cin.get();
  5384.             cin.get();
  5385.             }
  5386.             if(v == 6)
  5387.             {
  5388.             cout<<"Type in your Kelvin Value:";
  5389.             cin>>vv;
  5390.             cout<<endl;
  5391.             cout<<(vv - 273.15)<<" Degrees Celsius"<<endl;
  5392.             cout<<"---------------------------------"<<endl;
  5393.             cin.get();
  5394.             cin.get();
  5395.             }
  5396.         }
  5397.         if(zx == 2)
  5398.         {
  5399.             string aa = "mm-m";
  5400.             string ab = "mm-km";
  5401.             string ac = "mm-ft";
  5402.             string ad = "mm-inch";
  5403.             string bb = "m-km";
  5404.             string cc = "ft-inch";
  5405.             string dd = "inch-ft";
  5406.             string dda = "inch-m";
  5407.             string ddb = "inch-mm";
  5408.             string ee = "m-mm";
  5409.             string ff = "km-m";
  5410.             string gg = "ft-m";
  5411.             string ga = "ft-km";
  5412.             string hh = "m-ft";
  5413.             string hha = "km-mm";
  5414.             string ii = "inch-mm";
  5415.             string ib = "m-ft";
  5416.             string ic = "m-inch";
  5417.             string mm = "km-mile";
  5418.             string mma = "mile-km";
  5419.             string mb = "m-mile";
  5420.             string mba = "mile-m";
  5421.             string mc = "ft-mile";
  5422.             string mca = "mile-ft";
  5423.             string xy;
  5424.             float yy;
  5425.             cout<<endl;
  5426.             cout<<"==================================================="<<endl;
  5427.             cout<<"Type in your length to convert from and to:"<<endl;
  5428.             cout<<"(i.e. mm-m, ft-inch, km-mile)"<<endl;
  5429.             cout<<endl;
  5430.             cin>>xy;
  5431. //              MM-M
  5432.             if(xy == aa)
  5433.             {
  5434.             cout<<endl;
  5435.             cout<<"Type in your millimetre value:";
  5436.             cin>>yy;
  5437.             cout<<(yy / 1000)<<" Meters"<<endl;
  5438.             cout<<"---------------------------------"<<endl;
  5439.             cin.get();
  5440.             cin.get();
  5441.             }
  5442. //              MM-KM
  5443.             if(xy == ab)
  5444.             {
  5445.             cout<<endl;
  5446.             cout<<"Type in your millimetre value:";
  5447.             cin>>yy;
  5448.             cout<<(yy / 1000 / 1000)<<" Kilometers"<<endl;
  5449.             cout<<"---------------------------------"<<endl;
  5450.             cin.get();
  5451.             cin.get();
  5452.             }
  5453. //              MM-FT
  5454.             if(xy == ac)
  5455.             {
  5456.             cout<<endl;
  5457.             cout<<"Type in your millimetre value:";
  5458.             cin>>yy;
  5459.             cout<<(yy * 0.03937) / 12<<" Feet"<<endl;
  5460.             cout<<"---------------------------------"<<endl;
  5461.             cin.get();
  5462.             cin.get();
  5463.             }
  5464. //              MM-INCH
  5465.             if(xy == ad)
  5466.             {
  5467.             cout<<endl;
  5468.             cout<<"Type in your millimetre value:";
  5469.             cin>>yy;
  5470.             cout<<(yy * 0.03937)<<" Inches"<<endl;
  5471.             cout<<"---------------------------------"<<endl;
  5472.             cin.get();
  5473.             cin.get();
  5474.             }
  5475. //              M-KM
  5476.             if(xy == bb)
  5477.             {
  5478.             cout<<endl;
  5479.             cout<<"Type in your metre value:";
  5480.             cin>>yy;
  5481.             cout<<(yy / 1000)<<" Kilometers"<<endl;
  5482.             cout<<"---------------------------------"<<endl;
  5483.             cin.get();
  5484.             cin.get();
  5485.             }
  5486. //              FT-INCH
  5487.             if(xy == cc)
  5488.             {
  5489.             cout<<endl;
  5490.             cout<<"Type in your Feet value:";
  5491.             cin>>yy;
  5492.             cout<<(yy * 12)<<" Inches"<<endl;
  5493.             cout<<"---------------------------------"<<endl;
  5494.             cin.get();
  5495.             cin.get();
  5496.             }
  5497. //              INCH-FT
  5498.             if(xy == dd)
  5499.             {
  5500.             cout<<endl;
  5501.             cout<<"Type in your Inch value:";
  5502.             cin>>yy;
  5503.             cout<<(yy / 12)<<" Feet"<<endl;
  5504.             cout<<"---------------------------------"<<endl;
  5505.             cin.get();
  5506.             cin.get();
  5507.             }
  5508.             if(xy == dda)
  5509.             {
  5510.             cout<<endl;
  5511.             cout<<"Type in your Inch value:";
  5512.             cin>>yy;
  5513.             cout<<(yy * 0.3048) / 12<<" Meters"<<endl;
  5514.             cout<<"---------------------------------"<<endl;
  5515.             cin.get();
  5516.             cin.get();
  5517.             }
  5518. //              M-MM
  5519.             if(xy == ee)
  5520.             {
  5521.             cout<<endl;
  5522.             cout<<"Type in your Meter value:";
  5523.             cin>>yy;
  5524.             cout<<(yy * 1000)<<" Millimeters"<<endl;
  5525.             cout<<"---------------------------------"<<endl;
  5526.             cin.get();
  5527.             cin.get();
  5528.             }
  5529. //              KM-M
  5530.             if(xy == ff)
  5531.             {
  5532.             cout<<endl;
  5533.             cout<<"Type in your Kilometer value:";
  5534.             cin>>yy;
  5535.             cout<<(yy * 1000)<<" Meters"<<endl;
  5536.             cout<<"---------------------------------"<<endl;
  5537.             cin.get();
  5538.             cin.get();
  5539.             }
  5540. //              FT-MM
  5541.             if(xy == gg)
  5542.             {
  5543.             cout<<endl;
  5544.             cout<<"Type in your Feet value:";
  5545.             cin>>yy;
  5546.             cout<<(yy * 0.3048)<<" Meters"<<endl;
  5547.             cout<<"---------------------------------"<<endl;
  5548.             cin.get();
  5549.             cin.get();
  5550.             }
  5551.             if(xy == ga)
  5552.             {
  5553.             cout<<endl;
  5554.             cout<<"Type in your Feet value:";
  5555.             cin>>yy;
  5556.             cout<<(yy * 0.0003048)<<" Kilometers"<<endl;
  5557.             cout<<"---------------------------------"<<endl;
  5558.             cin.get();
  5559.             cin.get();
  5560.             }
  5561. //              KM-MM
  5562.             if(xy == hha)
  5563.             {
  5564.             cout<<endl;
  5565.             cout<<"Type in your kilometer value:";
  5566.             cin>>yy;
  5567.             cout<<(yy * 1000 * 1000)<<" Millimeters"<<endl;
  5568.             cout<<"---------------------------------"<<endl;
  5569.             cin.get();
  5570.             cin.get();
  5571.             }
  5572. //              INCH-MM
  5573.             if(xy == ii)
  5574.             {
  5575.             cout<<endl;
  5576.             cout<<"Type in your inch value:";
  5577.             cin>>yy;
  5578.             cout<<(yy / 0.03937)<<" Millimeters"<<endl;
  5579.             cout<<"---------------------------------"<<endl;
  5580.             cin.get();
  5581.             cin.get();
  5582.             }
  5583. //              MM-FT
  5584.             if(xy == ib)
  5585.             {
  5586.             cout<<endl;
  5587.             cout<<"Type in your Meter value:";
  5588.             cin>>yy;
  5589.             cout<<((yy * 39.37) / 12)<<" Feet"<<endl;
  5590.             cout<<"---------------------------------"<<endl;
  5591.             cin.get();
  5592.             cin.get();
  5593.             }
  5594. //              MM-INCH
  5595.             if(xy == ic)
  5596.             {
  5597.             cout<<endl;
  5598.             cout<<"Type in your Meter value:";
  5599.             cin>>yy;
  5600.             cout<<(yy * 39.37)<<" Inches"<<endl;
  5601.             cout<<"---------------------------------"<<endl;
  5602.             cin.get();
  5603.             cin.get();
  5604.             }
  5605. //              KM-Miles
  5606.             if(xy == mm)
  5607.             {
  5608.             cout<<endl;
  5609.             cout<<"Type in your Kilometer value:";
  5610.             cin>>yy;
  5611.             cout<<(yy * 0.6214)<<" Miles"<<endl;
  5612.             cout<<"---------------------------------"<<endl;
  5613.             cin.get();
  5614.             cin.get();
  5615.             }
  5616. //              MILE-KM
  5617.             if(xy == mma)
  5618.             {
  5619.             cout<<endl;
  5620.             cout<<"Type in your Mile value:";
  5621.             cin>>yy;
  5622.             cout<<(yy * 1.609)<<" Kilometers"<<endl;
  5623.             cout<<"---------------------------------"<<endl;
  5624.             cin.get();
  5625.             cin.get();
  5626.             }
  5627. //              M-MILE
  5628.             if(xy == mb)
  5629.             {
  5630.             cout<<endl;
  5631.             cout<<"Type in your Meter value:";
  5632.             cin>>yy;
  5633.             cout<<(yy * 0.0006214)<<" Miles"<<endl;
  5634.             cout<<"---------------------------------"<<endl;
  5635.             cin.get();
  5636.             cin.get();
  5637.             }
  5638.         }
  5639. //              TIME CONVERTER
  5640.         if(zx == 3)
  5641.         {
  5642.             string at = "mins-hours";
  5643.             string ata = "mins-days";
  5644.             string atb = "mins-weeks";
  5645.             string atc = "mins-months";
  5646.             string atd = "mins-years";
  5647.             string bt = "hours-mins";
  5648.             string bta = "hours-days";
  5649.             string btb = "hours-weeks";
  5650.             string btc = "hours-months";
  5651.             string btd = "hours-years";
  5652.             string ct = "days-mins";
  5653.             string cta = "days-hours";
  5654.             string ctb = "days-weeks";
  5655.             string ctc = "days-months";
  5656.             string ctd = "days-years";
  5657.             string dt = "weeks-mins";
  5658.             string dta = "weeks-hours";
  5659.             string dtb = "weeks-days";
  5660.             string dtc = "weeks-months";
  5661.             string dtd = "weeks-years";
  5662.             string et = "months-mins";
  5663.             string eta = "months-hours";
  5664.             string etb = "months-days";
  5665.             string etc = "months-weeks";
  5666.             string etd = "months-years";
  5667.             string ft = "years-mins";
  5668.             string fta = "years-hours";
  5669.             string ftb = "years-days";
  5670.             string ftc = "years-weeks";
  5671.             string ftd = "years-months";
  5672.             string coni;
  5673.             float mt;
  5674.             cout<<endl;
  5675.             cout<<"Type in your time to convert from and to:"<<endl;
  5676.             cout<<"(i.e. mins-hours, months-weeks, days-years)"<<endl;
  5677.             cin>>coni;
  5678.             if(coni == at)
  5679.             {
  5680.             cout<<endl;
  5681.             cout<<"type in your minute value:";
  5682.             cin>>mt;
  5683.             cout<<endl;
  5684.             cout<<(mt / 60)<<" Hours"<<endl;
  5685.             cout<<"---------------------------------"<<endl;
  5686.             cin.get();
  5687.             cin.get();
  5688.             }
  5689.             if(coni == ata)
  5690.             {
  5691.             cout<<endl;
  5692.             cout<<"type in your minute value:";
  5693.             cin>>mt;
  5694.             cout<<endl;
  5695.             cout<<(mt / 60) / 24<<" Days"<<endl;
  5696.             cout<<"---------------------------------"<<endl;
  5697.             cin.get();
  5698.             cin.get();
  5699.             }
  5700.             if(coni == atb)
  5701.             {
  5702.             cout<<endl;
  5703.             cout<<"type in your minute value:";
  5704.             cin>>mt;
  5705.             cout<<endl;
  5706.             cout<<((mt / 60) / 24) / 7<<" Weeks"<<endl;
  5707.             cout<<"---------------------------------"<<endl;
  5708.             cin.get();
  5709.             cin.get();
  5710.             }
  5711.             if(coni == atc)
  5712.             {
  5713.             cout<<endl;
  5714.             cout<<"type in your minute value:";
  5715.             cin>>mt;
  5716.             cout<<endl;
  5717.             cout<<(((mt / 60) / 24) / 7) / 4.3<<" Months"<<endl;
  5718.             cout<<"---------------------------------"<<endl;
  5719.             cin.get();
  5720.             cin.get();
  5721.             }
  5722.             if(coni == atd)
  5723.             {
  5724.             cout<<endl;
  5725.             cout<<"type in your minute value:";
  5726.             cin>>mt;
  5727.             cout<<endl;
  5728.             cout<<((((mt / 60) / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  5729.             cout<<"---------------------------------"<<endl;
  5730.             cin.get();
  5731.             cin.get();
  5732.             }
  5733.             if(coni == bt)
  5734.             {
  5735.             cout<<endl;
  5736.             cout<<"type in your hours value:";
  5737.             cin>>mt;
  5738.             cout<<endl;
  5739.             cout<<(mt * 60)<<" Minutes"<<endl;
  5740.             cout<<"---------------------------------"<<endl;
  5741.             cin.get();
  5742.             cin.get();
  5743.             }
  5744.             if(coni == bta)
  5745.             {
  5746.             cout<<endl;
  5747.             cout<<"type in your hours value:";
  5748.             cin>>mt;
  5749.             cout<<endl;
  5750.             cout<<(mt / 24)<<" Days"<<endl;
  5751.             cout<<"---------------------------------"<<endl;
  5752.             cin.get();
  5753.             cin.get();
  5754.             }
  5755.             if(coni == btb)
  5756.             {
  5757.             cout<<endl;
  5758.             cout<<"type in your hours value:";
  5759.             cin>>mt;
  5760.             cout<<endl;
  5761.             cout<<(mt / 24) / 7<<" Weeks"<<endl;
  5762.             cout<<"---------------------------------"<<endl;
  5763.             cin.get();
  5764.             cin.get();
  5765.             }
  5766.             if(coni == btc)
  5767.             {
  5768.             cout<<endl;
  5769.             cout<<"type in your hours value:";
  5770.             cin>>mt;
  5771.             cout<<endl;
  5772.             cout<<((mt / 24) / 7) / 4.3<<" Months"<<endl;
  5773.             cout<<"---------------------------------"<<endl;
  5774.             cin.get();
  5775.             cin.get();
  5776.             }
  5777.             if(coni == btd)
  5778.             {
  5779.             cout<<endl;
  5780.             cout<<"type in your hours value:";
  5781.             cin>>mt;
  5782.             cout<<endl;
  5783.             cout<<(((mt / 24) / 7) / 4.3) / 12<<" Years"<<endl;
  5784.             cout<<"---------------------------------"<<endl;
  5785.             cin.get();
  5786.             cin.get();
  5787.             }
  5788.             if(coni == ct)
  5789.             {
  5790.             cout<<endl;
  5791.             cout<<"type in your days value:";
  5792.             cin>>mt;
  5793.             cout<<endl;
  5794.             cout<<(mt * 24) * 60<<" Minutes"<<endl;
  5795.             cout<<"---------------------------------"<<endl;
  5796.             cin.get();
  5797.             cin.get();
  5798.             }
  5799.             if(coni == cta)
  5800.             {
  5801.             cout<<endl;
  5802.             cout<<"type in your days value:";
  5803.             cin>>mt;
  5804.             cout<<endl;
  5805.             cout<<(mt * 24)<<" Hours"<<endl;
  5806.             cout<<"---------------------------------"<<endl;
  5807.             cin.get();
  5808.             cin.get();
  5809.             }
  5810.             if(coni == ctb)
  5811.             {
  5812.             cout<<endl;
  5813.             cout<<"type in your days value:";
  5814.             cin>>mt;
  5815.             cout<<endl;
  5816.             cout<<(mt / 7)<<" Weeks"<<endl;
  5817.             cout<<"---------------------------------"<<endl;
  5818.             cin.get();
  5819.             cin.get();
  5820.             }
  5821.             if(coni == ctc)
  5822.             {
  5823.             cout<<endl;
  5824.             cout<<"type in your days value:";
  5825.             cin>>mt;
  5826.             cout<<endl;
  5827.             cout<<(mt / 7) / 4.3<<" Months"<<endl;
  5828.             cout<<"---------------------------------"<<endl;
  5829.             cin.get();
  5830.             cin.get();
  5831.             }
  5832.             if(coni == ctd)
  5833.             {
  5834.             cout<<endl;
  5835.             cout<<"type in your days value:";
  5836.             cin>>mt;
  5837.             cout<<endl;
  5838.             cout<<((mt / 7) / 4.3) / 12<<" Years"<<endl;
  5839.             cout<<"---------------------------------"<<endl;
  5840.             cin.get();
  5841.             cin.get();
  5842.             }
  5843.             if(coni == dt)
  5844.             {
  5845.             cout<<endl;
  5846.             cout<<"type in your weeks value:";
  5847.             cin>>mt;
  5848.             cout<<endl;
  5849.             cout<<((mt * 7) * 24) * 60<<" Minutes"<<endl;
  5850.             cout<<"---------------------------------"<<endl;
  5851.             cin.get();
  5852.             cin.get();
  5853.             }
  5854.             if(coni == dta)
  5855.             {
  5856.             cout<<endl;
  5857.             cout<<"type in your weeks value:";
  5858.             cin>>mt;
  5859.             cout<<endl;
  5860.             cout<<(mt * 7) * 24<<" Hours"<<endl;
  5861.             cout<<"---------------------------------"<<endl;
  5862.             cin.get();
  5863.             cin.get();
  5864.             }
  5865.             if(coni == dtb)
  5866.             {
  5867.             cout<<endl;
  5868.             cout<<"type in your weeks value:";
  5869.             cin>>mt;
  5870.             cout<<endl;
  5871.             cout<<(mt * 7)<<" Days"<<endl;
  5872.             cout<<"---------------------------------"<<endl;
  5873.             cin.get();
  5874.             cin.get();
  5875.             }
  5876.             if(coni == dtc)
  5877.             {
  5878.             cout<<endl;
  5879.             cout<<"type in your weeks value:";
  5880.             cin>>mt;
  5881.             cout<<endl;
  5882.             cout<<(mt / 4.3)<<" Months"<<endl;
  5883.             cout<<"---------------------------------"<<endl;
  5884.             cin.get();
  5885.             cin.get();
  5886.             }
  5887.             if(coni == dtd)
  5888.             {
  5889.             cout<<endl;
  5890.             cout<<"type in your weeks value:";
  5891.             cin>>mt;
  5892.             cout<<endl;
  5893.             cout<<(mt / 4.3) / 12<<" Years"<<endl;
  5894.             cout<<"---------------------------------"<<endl;
  5895.             cin.get();
  5896.             cin.get();
  5897.             }
  5898.             if(coni == et)
  5899.             {
  5900.             cout<<endl;
  5901.             cout<<"type in your months value:";
  5902.             cin>>mt;
  5903.             cout<<endl;
  5904.             cout<<(mt * 4.3 * 7 * 24 * 60)<<" Minutes"<<endl;
  5905.             cout<<"---------------------------------"<<endl;
  5906.             cin.get();
  5907.             cin.get();
  5908.             }
  5909.             if(coni == eta)
  5910.             {
  5911.             cout<<endl;
  5912.             cout<<"type in your months value:";
  5913.             cin>>mt;
  5914.             cout<<endl;
  5915.             cout<<(mt * 4.3 * 7 * 24)<<" Hours"<<endl;
  5916.             cout<<"---------------------------------"<<endl;
  5917.             cin.get();
  5918.             cin.get();
  5919.             }
  5920.             if(coni == etb)
  5921.             {
  5922.             cout<<endl;
  5923.             cout<<"type in your months value:";
  5924.             cin>>mt;
  5925.             cout<<endl;
  5926.             cout<<(mt * 4.3 * 7)<<" Days"<<endl;
  5927.             cout<<"---------------------------------"<<endl;
  5928.             cin.get();
  5929.             cin.get();
  5930.             }
  5931.             if(coni == etc)
  5932.             {
  5933.             cout<<endl;
  5934.             cout<<"type in your months value:";
  5935.             cin>>mt;
  5936.             cout<<endl;
  5937.             cout<<(mt * 4.3 * 7)<<" Weeks"<<endl;
  5938.             cout<<"---------------------------------"<<endl;
  5939.             cin.get();
  5940.             cin.get();
  5941.             }
  5942.             if(coni == etd)
  5943.             {
  5944.             cout<<endl;
  5945.             cout<<"type in your months value:";
  5946.             cin>>mt;
  5947.             cout<<endl;
  5948.             cout<<(mt / 7)<<" Years"<<endl;
  5949.             cout<<"---------------------------------"<<endl;
  5950.             cin.get();
  5951.             cin.get();
  5952.             }
  5953.             if(coni == ft)
  5954.             {
  5955.             cout<<endl;
  5956.             cout<<"type in your years value:";
  5957.             cin>>mt;
  5958.             cout<<endl;
  5959.             cout<<(mt * 12 * 4.3 * 7 * 24 * 60)<<" Minutes"<<endl;
  5960.             cout<<"---------------------------------"<<endl;
  5961.             cin.get();
  5962.             cin.get();
  5963.             }
  5964.             if(coni == fta)
  5965.             {
  5966.             cout<<endl;
  5967.             cout<<"type in your years value:";
  5968.             cin>>mt;
  5969.             cout<<endl;
  5970.             cout<<(mt * 12 * 4.3 * 7 * 24)<<" Hours"<<endl;
  5971.             cout<<"---------------------------------"<<endl;
  5972.             cin.get();
  5973.             cin.get();
  5974.             }
  5975.             if(coni == fta)
  5976.             {
  5977.             cout<<endl;
  5978.             cout<<"type in your years value:";
  5979.             cin>>mt;
  5980.             cout<<endl;
  5981.             cout<<(mt * 12 * 4.3 * 7)<<" Days"<<endl;
  5982.             cout<<"---------------------------------"<<endl;
  5983.             cin.get();
  5984.             cin.get();
  5985.             }
  5986.             if(coni == ftb)
  5987.             {
  5988.             cout<<endl;
  5989.             cout<<"type in your years value:";
  5990.             cin>>mt;
  5991.             cout<<endl;
  5992.             cout<<(mt * 12 * 4.3)<<" Weeks"<<endl;
  5993.             cout<<"---------------------------------"<<endl;
  5994.             cin.get();
  5995.             cin.get();
  5996.             }
  5997.             if(coni == ftc)
  5998.             {
  5999.             cout<<endl;
  6000.             cout<<"type in your years value:";
  6001.             cin>>mt;
  6002.             cout<<endl;
  6003.             cout<<(mt * 12)<<" Months"<<endl;
  6004.             cout<<"---------------------------------"<<endl;
  6005.             cin.get();
  6006.             cin.get();
  6007.             }
  6008.         }
  6009.         cout<<endl;
  6010.         cout<<"Do another conversion - press 1"<<endl;
  6011.         cout<<"Exit - Press 2"<<endl;
  6012.         cin>>hh;
  6013.         }
  6014.         while(hh == 1);
  6015.     }
  6016. //
  6017.     class Small
  6018.     {
  6019.     public:
  6020.         void white();
  6021.     };
  6022.     void Small::white()
  6023.     {
  6024.         cout<<endl;
  6025.         cout<<endl;
  6026.         cout<<endl;
  6027.         cout<<endl;
  6028.         cout<<endl;
  6029.         cout<<endl;
  6030.         cout<<endl;
  6031.         cout<<endl;
  6032.         cout<<endl;
  6033.         cout<<endl;
  6034.         cout<<endl;
  6035.         cout<<endl;
  6036.         cout<<endl;
  6037.         cout<<endl;
  6038.         cout<<endl;
  6039.         cout<<endl;
  6040.         cout<<endl;
  6041.         cout<<endl;
  6042.         cout<<endl;
  6043.         cout<<endl;
  6044.         cout<<endl;
  6045.         cout<<endl;
  6046.     }
  6047.     class Read
  6048.     {
  6049.     public:
  6050.         void helpsh();
  6051.     };
  6052.     void Read::helpsh()
  6053.     {
  6054.         cout<<endl;
  6055.         cout<<"print - this will let the you input text and it will print this text in a comfortable reading format"<<endl;
  6056.         cout<<endl;
  6057.         cout<<"run_writer - this will launch the writer application"<<endl;
  6058.         cout<<endl;
  6059.         cout<<"run_calc - this will launch the calculator application"<<endl;
  6060.         cout<<endl;
  6061.         cout<<"run_calc.av - this will launch the average calculator application"<<endl;
  6062.         cout<<endl;
  6063.         cout<<"run_rand - this will launch the random number generator application"<<endl;
  6064.         cout<<endl;
  6065.         cout<<"run_grid - runs the table application, which lets you display numbers in a table format"<<endl;
  6066.         cout<<endl;
  6067.         cout<<"run_convert - opens the unit converter application"<<endl;
  6068.         cout<<endl;
  6069.         cout<<"run_speed - opens the speed calculator"<<endl;
  6070.         cout<<endl;
  6071.         cout<<"run_distance - this will launch the distance calculator"<<endl;
  6072.         cout<<endl;
  6073.         cout<<"version - this will present information about the version of this software"<<endl;
  6074.         cout<<endl;
  6075.         cout<<"clear - clears all the contents off the window"<<endl;
  6076.         cout<<endl;
  6077.         cout<<"help - defines all commands (how you got here)"<<endl;
  6078.     }
  6079.     class Math
  6080.     {
  6081.     private:
  6082.         float aa, bb, cc, dd, ee;
  6083.     public:
  6084.         void Calc();
  6085.         void Av();
  6086.         void Rando();
  6087.         void Ncell();
  6088.     };
  6089. //              NCELL DECRLARATION
  6090.     void Math::Ncell()
  6091.     {
  6092.         int nap;
  6093.         float na;
  6094.         float nb;
  6095.         float nc;
  6096.         float nd;
  6097.         float ne;
  6098.         float nf;
  6099.         float ng;
  6100.         float nh;
  6101.         float ni;
  6102.         float nj;
  6103.         float nk;
  6104.         float nl;
  6105.         float nm;
  6106.         float nn;
  6107.         float no;
  6108.         float np;
  6109.         float nq;
  6110.         float nr;
  6111.         float ns;
  6112.         string ch;
  6113.         int cy;
  6114.         do
  6115.         {
  6116.         cout<<endl;
  6117.         cout<<"============="<<endl;
  6118.         cout<<"Number Grider"<<endl;
  6119.         cout<<"============="<<endl;
  6120.         cout<<endl;
  6121.         cout<<"How many cells are you working with (max 20)"<<endl;
  6122.         cin>>cy;
  6123.         if(cy == 2)
  6124.         {
  6125.             cout<<"Enter cell 1:";
  6126.             cin>>na;
  6127.             cout<<"Enter cell 2:";
  6128.             cin>>nb;
  6129.             cout<<"------"<<"------"<<endl;
  6130.             cout<<"|-"<<na<<"-|-"<<nb<<"-|"<<endl;
  6131.             cout<<"------"<<"------"<<endl;
  6132.             cin.get();
  6133.             cin.get();
  6134.         }
  6135.         if(cy == 3)
  6136.         {
  6137.             cout<<"Enter cell 1:";
  6138.             cin>>na;
  6139.             cout<<endl;
  6140.             cout<<"Enter cell 2:";
  6141.             cin>>nb;
  6142.             cout<<"Enter cell 3:";
  6143.             cin>>nc;
  6144.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6145.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6146.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6147.             cin.get();
  6148.             cin.get();
  6149.         }
  6150.         if(cy == 4)
  6151.         {
  6152.             cout<<"Enter cell 1:";
  6153.             cin>>na;
  6154.             cout<<"Enter cell 2:";
  6155.             cin>>nb;
  6156.             cout<<endl;
  6157.             cout<<"Enter cell 3:";
  6158.             cin>>nc;
  6159.             cout<<"Enter cell 4:";
  6160.             cin>>nd;
  6161.             cout<<"------"<<"------"<<"------"<<endl;
  6162.             cout<<"|-"<<na<<"-|-"<<nb<<"-|"<<endl;
  6163.             cout<<"------"<<"------"<<"------"<<endl;
  6164.             cout<<"------"<<"------"<<"------"<<endl;
  6165.             cout<<"|-"<<nc<<"-|-"<<nd<<"-|"<<endl;
  6166.             cout<<"------"<<"------"<<"------"<<endl;
  6167.             cin.get();
  6168.             cin.get();
  6169.         }
  6170.         if(cy == 5)
  6171.         {
  6172.             cout<<"Enter cell 1:";
  6173.             cin>>na;
  6174.             cout<<endl;
  6175.             cout<<"Enter cell 2:";
  6176.             cin>>nb;
  6177.             cout<<"Enter cell 3:";
  6178.             cin>>nc;
  6179.             cout<<endl;
  6180.             cout<<"Enter cell 4:";
  6181.             cin>>nd;
  6182.             cout<<"Enter cell 5:";
  6183.             cin>>ne;
  6184.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6185.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6186.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6187.             cout<<"------"<<"------"<<"------"<<endl;
  6188.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|"<<endl;
  6189.             cout<<"------"<<"------"<<"------"<<endl;
  6190.             cin.get();
  6191.             cin.get();
  6192.         }
  6193.         if(cy == 6)
  6194.         {
  6195.             cout<<"Enter cell 1:";
  6196.             cin>>na;
  6197.             cout<<"Enter cell 2:";
  6198.             cin>>nb;
  6199.             cout<<endl;
  6200.             cout<<"Enter cell 3:";
  6201.             cin>>nc;
  6202.             cout<<"Enter cell 4:";
  6203.             cin>>nd;
  6204.             cout<<endl;
  6205.             cout<<"Enter cell 5:";
  6206.             cin>>ne;
  6207.             cout<<"Enter cell 6:";
  6208.             cin>>nf;
  6209.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6210.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6211.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6212.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6213.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6214.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6215.             cin.get();
  6216.             cin.get();
  6217.         }
  6218.         if(cy == 7)
  6219.         {
  6220.             cout<<"Enter cell 1:";
  6221.             cin>>na;
  6222.             cout<<endl;
  6223.             cout<<"Enter cell 2:";
  6224.             cin>>nb;
  6225.             cout<<"Enter cell 3:";
  6226.             cin>>nc;
  6227.             cout<<endl;
  6228.             cout<<"Enter cell 4:";
  6229.             cin>>nd;
  6230.             cout<<"Enter cell 5:";
  6231.             cin>>ne;
  6232.             cout<<endl;
  6233.             cout<<"Enter cell 6:";
  6234.             cin>>nf;
  6235.             cout<<"Enter cell 7:";
  6236.             cin>>ng;
  6237.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6238.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6239.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6240.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6241.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6242.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6243.             cout<<"------"<<endl;
  6244.             cout<<"|-"<<ng<<"-|"<<endl;
  6245.             cout<<"------"<<endl;
  6246.             cin.get();
  6247.             cin.get();
  6248.         }
  6249.         if(cy == 8)
  6250.         {
  6251.             cout<<"Enter cell 1:";
  6252.             cin>>na;
  6253.             cout<<"Enter cell 2:";
  6254.             cin>>nb;
  6255.             cout<<endl;
  6256.             cout<<"Enter cell 3:";
  6257.             cin>>nc;
  6258.             cout<<"Enter cell 4:";
  6259.             cin>>nd;
  6260.             cout<<endl;
  6261.             cout<<"Enter cell 5:";
  6262.             cin>>ne;
  6263.             cout<<"Enter cell 6:";
  6264.             cin>>nf;
  6265.             cout<<endl;
  6266.             cout<<"Enter cell 7:";
  6267.             cin>>ng;
  6268.             cout<<"Enter cell 8";
  6269.             cin>>nh;
  6270.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6271.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6272.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6273.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6274.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6275.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6276.             cout<<"------"<<"------"<<endl;
  6277.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|"<<endl;
  6278.             cout<<"------"<<"------"<<endl;
  6279.             cin.get();
  6280.             cin.get();
  6281.         }
  6282.         if(cy == 9)
  6283.         {
  6284.             cout<<"Enter cell 1:";
  6285.             cin>>na;
  6286.             cout<<"Enter cell 2:";
  6287.             cin>>nb;
  6288.             cout<<endl;
  6289.             cout<<"Enter cell 3:";
  6290.             cin>>nc;
  6291.             cout<<"Enter cell 4:";
  6292.             cin>>nd;
  6293.             cout<<endl;
  6294.             cout<<"Enter cell 5:";
  6295.             cin>>ne;
  6296.             cout<<"Enter cell 6:";
  6297.             cin>>nf;
  6298.             cout<<endl;
  6299.             cout<<"Enter cell 7:";
  6300.             cin>>ng;
  6301.             cout<<"Enter cell 8:";
  6302.             cin>>nh;
  6303.             cout<<endl;
  6304.             cout<<"Enter cell 9:";
  6305.             cin>>ni;
  6306.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6307.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6308.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6309.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6310.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6311.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6312.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6313.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  6314.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6315.             cin.get();
  6316.             cin.get();
  6317.         }
  6318.         if(cy == 10)
  6319.         {
  6320.             cout<<"Enter cell 1:";
  6321.             cin>>na;
  6322.             cout<<"Enter cell 2:";
  6323.             cin>>nb;
  6324.             cout<<endl;
  6325.             cout<<"Enter cell 3:";
  6326.             cin>>nc;
  6327.             cout<<"Enter cell 4:";
  6328.             cin>>nd;
  6329.             cout<<endl;
  6330.             cout<<"Enter cell 5:";
  6331.             cin>>ne;
  6332.             cout<<"Enter cell 6:";
  6333.             cin>>nf;
  6334.             cout<<endl;
  6335.             cout<<"Enter cell 7:";
  6336.             cin>>ng;
  6337.             cout<<"Enter cell 8:";
  6338.             cin>>nh;
  6339.             cout<<endl;
  6340.             cout<<"Enter cell 9:";
  6341.             cin>>ni;
  6342.             cout<<"Enter cell 10:";
  6343.             cin>>nj;
  6344.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6345.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6346.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6347.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6348.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6349.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6350.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6351.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  6352.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6353.             cout<<"------"<<endl;
  6354.             cout<<"|-"<<nj<<"-|"<<endl;
  6355.             cout<<"------"<<endl;
  6356.             cin.get();
  6357.             cin.get();
  6358.         }
  6359.         if(cy == 11)
  6360.         {
  6361.             cout<<"Enter cell 1:";
  6362.             cin>>na;
  6363.             cout<<"Enter cell 2:";
  6364.             cin>>nb;
  6365.             cout<<endl;
  6366.             cout<<"Enter cell 3:";
  6367.             cin>>nc;
  6368.             cout<<"Enter cell 4:";
  6369.             cin>>nd;
  6370.             cout<<endl;
  6371.             cout<<"Enter cell 5:";
  6372.             cin>>ne;
  6373.             cout<<"Enter cell 6:";
  6374.             cin>>nf;
  6375.             cout<<endl;
  6376.             cout<<"Enter cell 7:";
  6377.             cin>>ng;
  6378.             cout<<"Enter cell 8:";
  6379.             cin>>nh;
  6380.             cout<<endl;
  6381.             cout<<"Enter cell 9:";
  6382.             cin>>ni;
  6383.             cout<<"Enter cell 10:";
  6384.             cin>>nj;
  6385.             cout<<endl;
  6386.             cout<<"Enter cell 11:";
  6387.             cin>>nk;
  6388.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6389.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6390.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6391.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6392.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6393.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6394.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6395.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  6396.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6397.             cout<<"------"<<"------"<<endl;
  6398.             cout<<"|-"<<nj<<"-|-"<<nk<<"-|"<<endl;
  6399.             cout<<"------"<<"------"<<endl;
  6400.             cin.get();
  6401.             cin.get();
  6402.         }
  6403.         if(cy == 12)
  6404.         {
  6405.             cout<<"Enter cell 1:";
  6406.             cin>>na;
  6407.             cout<<"Enter cell 2:";
  6408.             cin>>nb;
  6409.             cout<<endl;
  6410.             cout<<"Enter cell 3:";
  6411.             cin>>nc;
  6412.             cout<<"Enter cell 4:";
  6413.             cin>>nd;
  6414.             cout<<endl;
  6415.             cout<<"Enter cell 5:";
  6416.             cin>>ne;
  6417.             cout<<"Enter cell 6:";
  6418.             cin>>nf;
  6419.             cout<<endl;
  6420.             cout<<"Enter cell 7:";
  6421.             cin>>ng;
  6422.             cout<<"Enter cell 8:";
  6423.             cin>>nh;
  6424.             cout<<endl;
  6425.             cout<<"Enter cell 9:";
  6426.             cin>>ni;
  6427.             cout<<"Enter cell 10:";
  6428.             cin>>nj;
  6429.             cout<<endl;
  6430.             cout<<"Enter cell 11:";
  6431.             cin>>nk;
  6432.             cout<<"Enter cell 12:";
  6433.             cin>>nl;
  6434.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6435.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-|"<<endl;
  6436.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6437.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6438.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6439.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6440.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6441.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  6442.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6443.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6444.             cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  6445.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6446.             cin.get();
  6447.             cin.get();
  6448.         }
  6449.         if(cy == 13)
  6450.         {
  6451.             cout<<"Enter cell 1:";
  6452.             cin>>na;
  6453.             cout<<"Enter cell 2:";
  6454.             cin>>nb;
  6455.             cout<<endl;
  6456.             cout<<"Enter cell 3:";
  6457.             cin>>nc;
  6458.             cout<<"Enter cell 4:";
  6459.             cin>>nd;
  6460.             cout<<endl;
  6461.             cout<<"Enter cell 5:";
  6462.             cin>>ne;
  6463.             cout<<"Enter cell 6:";
  6464.             cin>>nf;
  6465.             cout<<endl;
  6466.             cout<<"Enter cell 7:";
  6467.             cin>>ng;
  6468.             cout<<"Enter cell 8:";
  6469.             cin>>nh;
  6470.             cout<<endl;
  6471.             cout<<"Enter cell 9:";
  6472.             cin>>ni;
  6473.             cout<<"Enter cell 10:";
  6474.             cin>>nj;
  6475.             cout<<"Enter cell 11:";
  6476.             cin>>nk;
  6477.             cout<<"Enter cell 12:";
  6478.             cin>>nl;
  6479.             cout<<"Enter cell 13:";
  6480.             cin>>nm;
  6481.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6482.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<nm<<"-|"<<endl;
  6483.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6484.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6485.             cout<<"|-"<<nd<<"-|-"<<ne<<"-|-"<<nf<<"-|"<<endl;
  6486.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6487.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6488.             cout<<"|-"<<ng<<"-|-"<<nh<<"-|-"<<ni<<"-|"<<endl;
  6489.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6490.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6491.             cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  6492.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6493.             cin.get();
  6494.             cin.get();
  6495.         }
  6496.         if(cy == 14)
  6497.         {
  6498.             cout<<"Enter cell 1:";
  6499.             cin>>na;
  6500.             cout<<"Enter cell 2:";
  6501.             cin>>nb;
  6502.             cout<<endl;
  6503.             cout<<"Enter cell 3:";
  6504.             cin>>nc;
  6505.             cout<<"Enter cell 4:";
  6506.             cin>>nd;
  6507.             cout<<endl;
  6508.             cout<<"Enter cell 5:";
  6509.             cin>>ne;
  6510.             cout<<"Enter cell 6:";
  6511.             cin>>nf;
  6512.             cout<<endl;
  6513.             cout<<"Enter cell 7:";
  6514.             cin>>ng;
  6515.             cout<<"Enter cell 8:";
  6516.             cin>>nh;
  6517.             cout<<endl;
  6518.             cout<<"Enter cell 9:";
  6519.             cin>>ni;
  6520.             cout<<"Enter cell 10:";
  6521.             cin>>nj;
  6522.             cout<<"Enter cell 11:";
  6523.             cin>>nk;
  6524.             cout<<"Enter cell 12:";
  6525.             cin>>nl;
  6526.             cout<<"Enter cell 13:";
  6527.             cin>>nm;
  6528.             cout<<endl;
  6529.             cout<<"Enter cell 14:";
  6530.             cin>>nn;
  6531.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6532.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<ne<<"-|"<<endl;
  6533.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6534.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6535.             cout<<"|-"<<nf<<"-|-"<<ng<<"-|-"<<nh<<"-"<<ni<<"-|"<<endl;
  6536.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6537.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6538.             cout<<"|-"<<nj<<"-|-"<<nk<<"-|-"<<nl<<"-|"<<endl;
  6539.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6540.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6541.             cout<<"|-"<<nm<<"-|-"<<nn<<"-|-"<<no<<"-|"<<endl;
  6542.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6543.             cin.get();
  6544.             cin.get();
  6545.         }
  6546.         if(cy == 15)
  6547.         {
  6548.             cout<<"Enter cell 1:";
  6549.             cin>>na;
  6550.             cout<<"Enter cell 2:";
  6551.             cin>>nb;
  6552.             cout<<endl;
  6553.             cout<<"Enter cell 3:";
  6554.             cin>>nc;
  6555.             cout<<"Enter cell 4:";
  6556.             cin>>nd;
  6557.             cout<<endl;
  6558.             cout<<"Enter cell 5:";
  6559.             cin>>ne;
  6560.             cout<<"Enter cell 6:";
  6561.             cin>>nf;
  6562.             cout<<endl;
  6563.             cout<<"Enter cell 7:";
  6564.             cin>>ng;
  6565.             cout<<"Enter cell 8:";
  6566.             cin>>nh;
  6567.             cout<<endl;
  6568.             cout<<"Enter cell 9:";
  6569.             cin>>ni;
  6570.             cout<<"Enter cell 10:";
  6571.             cin>>nj;
  6572.             cout<<"Enter cell 11:";
  6573.             cin>>nk;
  6574.             cout<<"Enter cell 12:";
  6575.             cin>>nl;
  6576.             cout<<"Enter cell 13:";
  6577.             cin>>nm;
  6578.             cout<<endl;
  6579.             cout<<"Enter cell 14:";
  6580.             cin>>nn;
  6581.             cout<<"Enter cell 15:";
  6582.             cin>>no;
  6583.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6584.             cout<<"|-"<<na<<"-|-"<<nb<<"-|-"<<nc<<"-"<<nd<<"-|"<<endl;
  6585.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6586.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6587.             cout<<"|-"<<ne<<"-|-"<<nf<<"-|-"<<ng<<"-"<<nh<<"-|"<<endl;
  6588.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6589.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6590.             cout<<"|-"<<ni<<"-|-"<<nj<<"-|-"<<nk<<"-"<<nl<<"-|"<<endl;
  6591.             cout<<"------"<<"------"<<"------"<<"------"<<"------"<<endl;
  6592.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6593.             cout<<"|-"<<nm<<"-|-"<<nn<<"-|-"<<no<<"-|"<<endl;
  6594.             cout<<"------"<<"------"<<"------"<<"------"<<endl;
  6595.             cin.get();
  6596.             cin.get();
  6597.         }
  6598.         cout<<endl;
  6599.         cout<<"Make another grid - 1"<<endl;
  6600.         cout<<"Exit - 2"<<endl;
  6601.         cin>>nap;
  6602.         }while(nap == 1);
  6603.     }
  6604. //          RANDOM NUMBER DECLARATION
  6605.     void Math::Rando()
  6606.     {
  6607.         int xn;
  6608.         do
  6609.         {
  6610.         int pi;
  6611.         int phi;
  6612.         int o;
  6613.         int ii;
  6614.         int ddd;
  6615.         cout<<endl;
  6616.         cout<<"======================="<<endl;
  6617.         cout<<"Random Number Genorator"<<endl;
  6618.         cout<<"======================="<<endl;
  6619.         cout<<endl;
  6620.         cout<<"|Custom - Press 1 | ";
  6621.         cout<<"1 to 10 - Press 2 | ";
  6622.         cout<<"1 to 50 - Press 3 | ";
  6623.         cout<<"1 to 100 - Press 4|";
  6624.         cin>>o;
  6625.         cout<<endl;
  6626.         cout<<"Amount of numbers (20 max):";
  6627.         cin>>phi;
  6628.         do
  6629.         {
  6630.             if(o == 1)
  6631.             {
  6632.             pi++;
  6633.             cout<<endl;
  6634.             cout<<"From 1 to : ";
  6635.             cin>>ddd;
  6636.             srand(time(0));
  6637.             for(ii = 0; ii < 1; ii++)
  6638.             {
  6639.                 if(phi == 1)
  6640.                 {
  6641.                 cout<<endl;
  6642.                 cout<<"Random Number: "<<rand()%ddd<<endl;
  6643.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6644.                 cin.get();
  6645.                 cin.get();
  6646.                 }
  6647.                 if(phi == 2)
  6648.                 {
  6649.                 cout<<endl;
  6650.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6651.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6652.                 cin.get();
  6653.                 cin.get();
  6654.                 }
  6655.                 if(phi == 3)
  6656.                 {
  6657.                 cout<<endl;
  6658.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6659.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6660.                 cin.get();
  6661.                 cin.get();
  6662.                 }
  6663.                 if(phi == 4)
  6664.                 {
  6665.                 cout<<endl;
  6666.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6667.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6668.                 cin.get();
  6669.                 cin.get();
  6670.                 }
  6671.                 if(phi == 5)
  6672.                 {
  6673.                 cout<<endl;
  6674.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6675.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6676.                 cin.get();
  6677.                 cin.get();
  6678.                 }
  6679.                 if(phi == 6)
  6680.                 {
  6681.                 cout<<endl;
  6682.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6683.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6684.                 cin.get();
  6685.                 cin.get();
  6686.                 }
  6687.                 if(phi == 7)
  6688.                 {
  6689.                 cout<<endl;
  6690.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6691.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6692.                 cin.get();
  6693.                 cin.get();
  6694.                 }
  6695.                 if(phi == 8)
  6696.                 {
  6697.                 cout<<endl;
  6698.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6699.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6700.                 cin.get();
  6701.                 cin.get();
  6702.                 }
  6703.                 if(phi == 9)
  6704.                 {
  6705.                 cout<<endl;
  6706.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6707.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6708.                 cin.get();
  6709.                 cin.get();
  6710.                 }
  6711.                 if(phi == 10)
  6712.                 {
  6713.                 cout<<endl;
  6714.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6715.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6716.                 cin.get();
  6717.                 cin.get();
  6718.                 }
  6719.                 if(phi == 11)
  6720.                 {
  6721.                 cout<<endl;
  6722.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6723.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6724.                 cin.get();
  6725.                 cin.get();
  6726.                 }
  6727.                 if(phi == 12)
  6728.                 {
  6729.                 cout<<endl;
  6730.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6731.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6732.                 cin.get();
  6733.                 cin.get();
  6734.                 }
  6735.                 if(phi == 13)
  6736.                 {
  6737.                 cout<<endl;
  6738.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6739.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6740.                 cin.get();
  6741.                 cin.get();
  6742.                 }
  6743.                 if(phi == 14)
  6744.                 {
  6745.                 cout<<endl;
  6746.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6747.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6748.                 cin.get();
  6749.                 cin.get();
  6750.                 }
  6751.                 if(phi == 15)
  6752.                 {
  6753.                 cout<<endl;
  6754.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6755.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6756.                 cin.get();
  6757.                 cin.get();
  6758.                 }
  6759.                 if(phi == 16)
  6760.                 {
  6761.                 cout<<endl;
  6762.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6763.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6764.                 cin.get();
  6765.                 cin.get();
  6766.                 }
  6767.                 if(phi == 17)
  6768.                 {
  6769.                 cout<<endl;
  6770.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6771.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6772.                 cin.get();
  6773.                 cin.get();
  6774.                 }
  6775.                 if(phi == 18)
  6776.                 {
  6777.                 cout<<endl;
  6778.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6779.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6780.                 cin.get();
  6781.                 cin.get();
  6782.                 }
  6783.                 if(phi == 19)
  6784.                 {
  6785.                 cout<<endl;
  6786.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6787.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6788.                 cin.get();
  6789.                 cin.get();
  6790.                 }
  6791.                 if(phi == 20)
  6792.                 {
  6793.                 cout<<endl;
  6794.                 cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6795.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  6796.                 cin.get();
  6797.                 cin.get();
  6798.                 }
  6799.             }
  6800.             }
  6801.         }while(pi == phi);
  6802.         if(o == 2)
  6803.         {
  6804.             do
  6805.             {
  6806.             if(o == 1)
  6807.             {
  6808.                 pi++;
  6809.                 cout<<endl;
  6810.                 cout<<"From 1 to : ";
  6811.                 cin>>ddd;
  6812.                 srand(time(0));
  6813.                 for(ii = 0; ii < 1; ii++)
  6814.                 {
  6815.                 if(phi == 1)
  6816.                 {
  6817.                     cout<<endl;
  6818.                     cout<<"Random Number: "<<rand()%ddd<<endl;
  6819.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6820.                     cin.get();
  6821.                     cin.get();
  6822.                 }
  6823.                 if(phi == 2)
  6824.                 {
  6825.                     cout<<endl;
  6826.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6827.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6828.                     cin.get();
  6829.                     cin.get();
  6830.                 }
  6831.                 if(phi == 3)
  6832.                 {
  6833.                     cout<<endl;
  6834.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6835.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6836.                     cin.get();
  6837.                     cin.get();
  6838.                 }
  6839.                 if(phi == 4)
  6840.                 {
  6841.                     cout<<endl;
  6842.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6843.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6844.                     cin.get();
  6845.                     cin.get();
  6846.                 }
  6847.                 if(phi == 5)
  6848.                 {
  6849.                     cout<<endl;
  6850.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6851.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6852.                     cin.get();
  6853.                     cin.get();
  6854.                 }
  6855.                 if(phi == 6)
  6856.                 {
  6857.                     cout<<endl;
  6858.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6859.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6860.                     cin.get();
  6861.                     cin.get();
  6862.                 }
  6863.                 if(phi == 7)
  6864.                 {
  6865.                     cout<<endl;
  6866.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6867.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6868.                     cin.get();
  6869.                     cin.get();
  6870.                 }
  6871.                 if(phi == 8)
  6872.                 {
  6873.                     cout<<endl;
  6874.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6875.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6876.                     cin.get();
  6877.                     cin.get();
  6878.                 }
  6879.                 if(phi == 9)
  6880.                 {
  6881.                     cout<<endl;
  6882.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6883.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6884.                     cin.get();
  6885.                     cin.get();
  6886.                 }
  6887.                 if(phi == 10)
  6888.                 {
  6889.                     cout<<endl;
  6890.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6891.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6892.                     cin.get();
  6893.                     cin.get();
  6894.                 }
  6895.                 if(phi == 11)
  6896.                 {
  6897.                     cout<<endl;
  6898.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6899.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6900.                     cin.get();
  6901.                     cin.get();
  6902.                 }
  6903.                 if(phi == 12)
  6904.                 {
  6905.                     cout<<endl;
  6906.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6907.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6908.                     cin.get();
  6909.                     cin.get();
  6910.                 }
  6911.                 if(phi == 13)
  6912.                 {
  6913.                     cout<<endl;
  6914.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6915.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6916.                     cin.get();
  6917.                     cin.get();
  6918.                 }
  6919.                 if(phi == 14)
  6920.                 {
  6921.                     cout<<endl;
  6922.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6923.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6924.                     cin.get();
  6925.                     cin.get();
  6926.                 }
  6927.                 if(phi == 15)
  6928.                 {
  6929.                     cout<<endl;
  6930.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6931.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6932.                     cin.get();
  6933.                     cin.get();
  6934.                 }
  6935.                 if(phi == 16)
  6936.                 {
  6937.                     cout<<endl;
  6938.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6939.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6940.                     cin.get();
  6941.                     cin.get();
  6942.                 }
  6943.                 if(phi == 17)
  6944.                 {
  6945.                     cout<<endl;
  6946.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6947.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6948.                     cin.get();
  6949.                     cin.get();
  6950.                 }
  6951.                 if(phi == 18)
  6952.                 {
  6953.                     cout<<endl;
  6954.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6955.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6956.                     cin.get();
  6957.                     cin.get();
  6958.                 }
  6959.                 if(phi == 19)
  6960.                 {
  6961.                     cout<<endl;
  6962.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6963.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6964.                     cin.get();
  6965.                     cin.get();
  6966.                 }
  6967.                 if(phi == 20)
  6968.                 {
  6969.                     cout<<endl;
  6970.                     cout<<"Random Numbers: "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<", "<<rand()%ddd<<endl;
  6971.                     cout<<"--------------------------------------------------------------------------------"<<endl;
  6972.                     cin.get();
  6973.                     cin.get();
  6974.                 }
  6975.                 }
  6976.             }
  6977.             }while(pi == phi);
  6978.         }
  6979.         if(o == 3)
  6980.         {
  6981.             srand(time(0));
  6982.             for(ii = 0; ii < 1; ii++)
  6983.             {
  6984.             cout<<endl;
  6985.             cout<<"Random Number: "<<rand()%50<<endl;
  6986.             cout<<"--------------------------------------------------------------------------------"<<endl;
  6987.             cin.get();
  6988.             cin.get();
  6989.             }
  6990.         }
  6991.         if(o == 4)
  6992.         {
  6993.             pi++;
  6994.             srand(time(0));
  6995.             for(ii = 0; ii < 1; ii++)
  6996.             {
  6997.             if(phi == 1)
  6998.             {
  6999.                 cout<<endl;
  7000.                 cout<<"Random Number: "<<rand()%100<<endl;
  7001.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7002.                 cin.get();
  7003.                 cin.get();
  7004.             }
  7005.             if(phi == 2)
  7006.             {
  7007.                 cout<<endl;
  7008.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<endl;
  7009.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7010.                 cin.get();
  7011.                 cin.get();
  7012.             }
  7013.             if(phi == 3)
  7014.             {
  7015.                 cout<<endl;
  7016.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7017.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7018.                 cin.get();
  7019.                 cin.get();
  7020.             }
  7021.             if(phi == 4)
  7022.             {
  7023.                 cout<<endl;
  7024.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7025.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7026.                 cin.get();
  7027.                 cin.get();
  7028.             }
  7029.             if(phi == 5)
  7030.             {
  7031.                 cout<<endl;
  7032.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7033.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7034.                 cin.get();
  7035.                 cin.get();
  7036.             }
  7037.             if(phi == 6)
  7038.             {
  7039.                 cout<<endl;
  7040.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7041.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7042.                 cin.get();
  7043.                 cin.get();
  7044.             }
  7045.             if(phi == 7)
  7046.             {
  7047.                 cout<<endl;
  7048.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7049.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7050.                 cin.get();
  7051.                 cin.get();
  7052.             }
  7053.             if(phi == 8)
  7054.             {
  7055.                 cout<<endl;
  7056.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7057.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7058.                 cin.get();
  7059.                 cin.get();
  7060.             }
  7061.             if(phi == 9)
  7062.             {
  7063.                 cout<<endl;
  7064.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7065.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7066.                 cin.get();
  7067.                 cin.get();
  7068.             }
  7069.             if(phi == 10)
  7070.             {
  7071.                 cout<<endl;
  7072.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7073.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7074.                 cin.get();
  7075.                 cin.get();
  7076.             }
  7077.             if(phi == 11)
  7078.             {
  7079.                 cout<<endl;
  7080.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7081.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7082.                 cin.get();
  7083.                 cin.get();
  7084.             }
  7085.             if(phi == 12)
  7086.             {
  7087.                 cout<<endl;
  7088.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7089.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7090.                 cin.get();
  7091.                 cin.get();
  7092.             }
  7093.             if(phi == 13)
  7094.             {
  7095.                 cout<<endl;
  7096.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7097.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7098.                 cin.get();
  7099.                 cin.get();
  7100.             }
  7101.             if(phi == 14)
  7102.             {
  7103.                 cout<<endl;
  7104.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7105.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7106.                 cin.get();
  7107.                 cin.get();
  7108.             }
  7109.             if(phi == 15)
  7110.             {
  7111.                 cout<<endl;
  7112.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7113.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7114.                 cin.get();
  7115.                 cin.get();
  7116.             }
  7117.             if(phi == 16)
  7118.             {
  7119.                 cout<<endl;
  7120.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7121.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7122.                 cin.get();
  7123.                 cin.get();
  7124.             }
  7125.             if(phi == 17)
  7126.             {
  7127.                 cout<<endl;
  7128.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7129.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7130.                 cin.get();
  7131.                 cin.get();
  7132.             }
  7133.             if(phi == 18)
  7134.             {
  7135.                 cout<<endl;
  7136.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7137.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7138.                 cin.get();
  7139.                 cin.get();
  7140.             }
  7141.             if(phi == 19)
  7142.             {
  7143.                 cout<<endl;
  7144.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7145.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7146.                 cin.get();
  7147.                 cin.get();
  7148.             }
  7149.             if(phi == 20)
  7150.             {
  7151.                 cout<<endl;
  7152.                 cout<<"Random Numbers: "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<", "<<rand()%100<<endl;
  7153.                 cout<<"--------------------------------------------------------------------------------"<<endl;
  7154.                 cin.get();
  7155.                 cin.get();
  7156.             }
  7157.             }
  7158.         }
  7159.         cout<<endl;
  7160.         cout<<"Menu - 1"<<endl;
  7161.         cout<<"Exit - 2"<<endl;
  7162.         cin>>xn;
  7163.         }while(xn == 1);
  7164.     }
  7165. //          AVERAGE DECLARATION
  7166.     void Math::Av()
  7167.     {
  7168.         int vb;
  7169.         do
  7170.         {
  7171. // new averaging system
  7172.         float pp;
  7173.         float x;
  7174.         float xx;
  7175.         float xxx;
  7176.         float xxxx;
  7177.         float xxxxx;
  7178.         float xxxxxx;
  7179.         float xxxxxxx;
  7180.         float xxxxxxxx;
  7181.         float xxxxxxxxx;
  7182.         float xxxxxxxxxx;
  7183.         float xxxxxxxxxxx;
  7184.         float xxxxxxxxxxxx;
  7185.         float xxxxxxxxxxxxx;
  7186.         float xxxxxxxxxxxxxx;
  7187.         float xxxxxxxxxxxxxxx;
  7188.         float xxxxxxxxxxxxxxxx;
  7189.         float xxxxxxxxxxxxxxxxx;
  7190.         float xxxxxxxxxxxxxxxxxx;
  7191.         float xxxxxxxxxxxxxxxxxxx;
  7192.         float xxxxxxxxxxxxxxxxxxxx;
  7193.         cout<<endl;
  7194.         cout<<"======="<<endl;
  7195.         cout<<"Average"<<endl;
  7196.         cout<<"======="<<endl;
  7197.         cout<<endl;
  7198.         cout<<"how many values are you averaging? (max 20)"<<endl;
  7199.         cin>>pp;
  7200.         float ppp = pp;
  7201.         if(pp == 2)
  7202.         {
  7203.             cout<<endl;
  7204.             cout<<"type in the values and separate them with the enter key"<<endl;
  7205.             cin>>x;
  7206.             cin>>xx;
  7207.             cout<<endl;
  7208.             cout<<"Average: "<<(x + xx) / ppp<<endl;
  7209.             cout<<"---------------------------------"<<endl;
  7210.             cin.get();
  7211.             cin.get();
  7212.         }
  7213.         if(pp == 3)
  7214.         {
  7215.             cout<<endl;
  7216.             cout<<"type in the values and separate them with the enter key"<<endl;
  7217.             cin>>x;
  7218.             cin>>xx;
  7219.             cin>>xxx;
  7220.             cout<<endl;
  7221.             cout<<"Average: "<<(x + xx + xxx) / ppp<<endl;
  7222.             cout<<"---------------------------------"<<endl;
  7223.             cin.get();
  7224.             cin.get();
  7225.         }
  7226.         if(pp == 4)
  7227.         {
  7228.             cout<<endl;
  7229.             cout<<"type in the values and separate them with the enter key"<<endl;
  7230.             cin>>x;
  7231.             cin>>xx;
  7232.             cin>>xxx;
  7233.             cin>>xxxx;
  7234.             cout<<endl;
  7235.             cout<<"Average: "<<(x + xx + xxx+ xxxx) / ppp<<endl;
  7236.             cout<<"---------------------------------"<<endl;
  7237.             cin.get();
  7238.             cin.get();
  7239.         }
  7240.         if(pp == 5)
  7241.         {
  7242.             cout<<endl;
  7243.             cout<<"type in the values and separate them with the enter key"<<endl;
  7244.             cin>>x;
  7245.             cin>>xx;
  7246.             cin>>xxx;
  7247.             cin>>xxxx;
  7248.             cin>>xxxxx;
  7249.             cout<<endl;
  7250.             cout<<"Average: "<<(x + xx + xxx+ xxxx + xxxxx) / ppp<<endl;
  7251.             cout<<"---------------------------------"<<endl;
  7252.             cin.get();
  7253.             cin.get();
  7254.         }
  7255.         if(pp == 6)
  7256.         {
  7257.             cout<<endl;
  7258.             cout<<"type in the values and separate them with the enter key"<<endl;
  7259.             cin>>x;
  7260.             cin>>xx;
  7261.             cin>>xxx;
  7262.             cin>>xxxx;
  7263.             cin>>xxxxx;
  7264.             cin>>xxxxxx;
  7265.             cout<<endl;
  7266.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx) / ppp<<endl;
  7267.             cout<<"---------------------------------"<<endl;
  7268.             cin.get();
  7269.             cin.get();
  7270.         }
  7271.         if(pp == 7)
  7272.         {
  7273.             cout<<endl;
  7274.             cout<<"type in the values and separate them with the enter key"<<endl;
  7275.             cin>>x;
  7276.             cin>>xx;
  7277.             cin>>xxx;
  7278.             cin>>xxxx;
  7279.             cin>>xxxxx;
  7280.             cin>>xxxxxx;
  7281.             cin>>xxxxxxx;
  7282.             cout<<endl;
  7283.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx) / ppp<<endl;
  7284.             cout<<"---------------------------------"<<endl;
  7285.             cin.get();
  7286.             cin.get();
  7287.         }
  7288.         if(pp == 8)
  7289.         {
  7290.             cout<<endl;
  7291.             cout<<"type in the values and separate them with the enter key"<<endl;
  7292.             cin>>x;
  7293.             cin>>xx;
  7294.             cin>>xxx;
  7295.             cin>>xxxx;
  7296.             cin>>xxxxx;
  7297.             cin>>xxxxxx;
  7298.             cin>>xxxxxxx;
  7299.             cin>>xxxxxxxx;
  7300.             cout<<endl;
  7301.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx) / ppp<<endl;
  7302.             cout<<"---------------------------------"<<endl;
  7303.             cin.get();
  7304.             cin.get();
  7305.         }
  7306.         if(pp == 9)
  7307.         {
  7308.             cout<<endl;
  7309.             cout<<"type in your values and separate them with the enter key"<<endl;
  7310.             cin>>x;
  7311.             cin>>xx;
  7312.             cin>>xxx;
  7313.             cin>>xxxx;
  7314.             cin>>xxxxx;
  7315.             cin>>xxxxxx;
  7316.             cin>>xxxxxxx;
  7317.             cin>>xxxxxxxx;
  7318.             cin>>xxxxxxxxx;
  7319.             cout<<endl;
  7320.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx) / ppp<<endl;
  7321.             cout<<"---------------------------------"<<endl;
  7322.             cin.get();
  7323.             cin.get();
  7324.         }
  7325.         if(pp == 10)
  7326.         {
  7327.             cout<<endl;
  7328.             cout<<"type in your values and separate them with the enter key"<<endl;
  7329.             cin>>x;
  7330.             cin>>xx;
  7331.             cin>>xxx;
  7332.             cin>>xxxx;
  7333.             cin>>xxxxx;
  7334.             cin>>xxxxxx;
  7335.             cin>>xxxxxxx;
  7336.             cin>>xxxxxxxx;
  7337.             cin>>xxxxxxxxx;
  7338.             cin>>xxxxxxxxxx;
  7339.             cout<<endl;
  7340.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx) / ppp<<endl;
  7341.             cout<<"---------------------------------"<<endl;
  7342.             cin.get();
  7343.             cin.get();
  7344.         }
  7345.         if(pp == 11)
  7346.         {
  7347.             cout<<endl;
  7348.             cout<<"type in your values and separate them with the enter key"<<endl;
  7349.             cin>>x;
  7350.             cin>>xx;
  7351.             cin>>xxx;
  7352.             cin>>xxxx;
  7353.             cin>>xxxxx;
  7354.             cin>>xxxxxx;
  7355.             cin>>xxxxxxx;
  7356.             cin>>xxxxxxxx;
  7357.             cin>>xxxxxxxxx;
  7358.             cin>>xxxxxxxxxx;
  7359.             cin>>xxxxxxxxxxx;
  7360.             cout<<endl;
  7361.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx) / ppp<<endl;
  7362.             cout<<"---------------------------------"<<endl;
  7363.             cin.get();
  7364.             cin.get();
  7365.         }
  7366.         if(pp == 12)
  7367.         {
  7368.             cout<<endl;
  7369.             cout<<"type in your values and separate them with the enter key"<<endl;
  7370.             cin>>x;
  7371.             cin>>xx;
  7372.             cin>>xxx;
  7373.             cin>>xxxx;
  7374.             cin>>xxxxx;
  7375.             cin>>xxxxxx;
  7376.             cin>>xxxxxxx;
  7377.             cin>>xxxxxxxx;
  7378.             cin>>xxxxxxxxx;
  7379.             cin>>xxxxxxxxxx;
  7380.             cin>>xxxxxxxxxxx;
  7381.             cin>>xxxxxxxxxxxx;
  7382.             cout<<endl;
  7383.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx) / ppp<<endl;
  7384.             cout<<"---------------------------------"<<endl;
  7385.             cin.get();
  7386.             cin.get();
  7387.         }
  7388.         if(pp == 13)
  7389.         {
  7390.             cout<<endl;
  7391.             cout<<"type in your values and separate them with the enter key"<<endl;
  7392.             cin>>x;
  7393.             cin>>xx;
  7394.             cin>>xxx;
  7395.             cin>>xxxx;
  7396.             cin>>xxxxx;
  7397.             cin>>xxxxxx;
  7398.             cin>>xxxxxxx;
  7399.             cin>>xxxxxxxx;
  7400.             cin>>xxxxxxxxx;
  7401.             cin>>xxxxxxxxxx;
  7402.             cin>>xxxxxxxxxxx;
  7403.             cin>>xxxxxxxxxxxx;
  7404.             cin>>xxxxxxxxxxxxx;
  7405.             cout<<endl;
  7406.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx) / ppp<<endl;
  7407.             cout<<"---------------------------------"<<endl;
  7408.             cin.get();
  7409.             cin.get();
  7410.         }
  7411.         if(pp == 14)
  7412.         {
  7413.             cout<<endl;
  7414.             cout<<"type in your values and separate them with the enter key"<<endl;
  7415.             cin>>x;
  7416.             cin>>xx;
  7417.             cin>>xxx;
  7418.             cin>>xxxx;
  7419.             cin>>xxxxx;
  7420.             cin>>xxxxxx;
  7421.             cin>>xxxxxxx;
  7422.             cin>>xxxxxxxx;
  7423.             cin>>xxxxxxxxx;
  7424.             cin>>xxxxxxxxxx;
  7425.             cin>>xxxxxxxxxxx;
  7426.             cin>>xxxxxxxxxxxx;
  7427.             cin>>xxxxxxxxxxxxx;
  7428.             cin>>xxxxxxxxxxxxxx;
  7429.             cout<<endl;
  7430.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx) / ppp<<endl;
  7431.             cout<<"---------------------------------"<<endl;
  7432.             cin.get();
  7433.             cin.get();
  7434.         }
  7435.         if(pp == 15)
  7436.         {
  7437.             cout<<endl;
  7438.             cout<<"type in your values and separate them with the enter key"<<endl;
  7439.             cin>>x;
  7440.             cin>>xx;
  7441.             cin>>xxx;
  7442.             cin>>xxxx;
  7443.             cin>>xxxxx;
  7444.             cin>>xxxxxx;
  7445.             cin>>xxxxxxx;
  7446.             cin>>xxxxxxxx;
  7447.             cin>>xxxxxxxxx;
  7448.             cin>>xxxxxxxxxx;
  7449.             cin>>xxxxxxxxxxx;
  7450.             cin>>xxxxxxxxxxxx;
  7451.             cin>>xxxxxxxxxxxxx;
  7452.             cin>>xxxxxxxxxxxxxx;
  7453.             cin>>xxxxxxxxxxxxxxx;
  7454.             cout<<endl;
  7455.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx) / ppp<<endl;
  7456.             cout<<"---------------------------------"<<endl;
  7457.             cin.get();
  7458.             cin.get();
  7459.         }
  7460.         if(pp == 16)
  7461.         {
  7462.             cout<<endl;
  7463.             cout<<"type in your values and separate them with the enter key"<<endl;
  7464.             cin>>x;
  7465.             cin>>xx;
  7466.             cin>>xxx;
  7467.             cin>>xxxx;
  7468.             cin>>xxxxx;
  7469.             cin>>xxxxxx;
  7470.             cin>>xxxxxxx;
  7471.             cin>>xxxxxxxx;
  7472.             cin>>xxxxxxxxx;
  7473.             cin>>xxxxxxxxxx;
  7474.             cin>>xxxxxxxxxxx;
  7475.             cin>>xxxxxxxxxxxx;
  7476.             cin>>xxxxxxxxxxxxx;
  7477.             cin>>xxxxxxxxxxxxxx;
  7478.             cin>>xxxxxxxxxxxxxxx;
  7479.             cin>>xxxxxxxxxxxxxxxx;
  7480.             cout<<endl;
  7481.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx) / ppp<<endl;
  7482.             cout<<"---------------------------------"<<endl;
  7483.             cin.get();
  7484.             cin.get();
  7485.         }
  7486.         if(pp == 17)
  7487.         {
  7488.             cout<<endl;
  7489.             cout<<"type in your values and separate them with the enter key"<<endl;
  7490.             cin>>x;
  7491.             cin>>xx;
  7492.             cin>>xxx;
  7493.             cin>>xxxx;
  7494.             cin>>xxxxx;
  7495.             cin>>xxxxxx;
  7496.             cin>>xxxxxxx;
  7497.             cin>>xxxxxxxx;
  7498.             cin>>xxxxxxxxx;
  7499.             cin>>xxxxxxxxxx;
  7500.             cin>>xxxxxxxxxxx;
  7501.             cin>>xxxxxxxxxxxx;
  7502.             cin>>xxxxxxxxxxxxx;
  7503.             cin>>xxxxxxxxxxxxxx;
  7504.             cin>>xxxxxxxxxxxxxxx;
  7505.             cin>>xxxxxxxxxxxxxxxx;
  7506.             cin>>xxxxxxxxxxxxxxxxx;
  7507.             cout<<endl;
  7508.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx) / ppp<<endl;
  7509.             cout<<"---------------------------------"<<endl;
  7510.             cin.get();
  7511.             cin.get();
  7512.         }
  7513.         if(pp == 18)
  7514.         {
  7515.             cout<<endl;
  7516.             cout<<"type in your values and separate them with the enter key"<<endl;
  7517.             cin>>x;
  7518.             cin>>xx;
  7519.             cin>>xxx;
  7520.             cin>>xxxx;
  7521.             cin>>xxxxx;
  7522.             cin>>xxxxxx;
  7523.             cin>>xxxxxxx;
  7524.             cin>>xxxxxxxx;
  7525.             cin>>xxxxxxxxx;
  7526.             cin>>xxxxxxxxxx;
  7527.             cin>>xxxxxxxxxxx;
  7528.             cin>>xxxxxxxxxxxx;
  7529.             cin>>xxxxxxxxxxxxx;
  7530.             cin>>xxxxxxxxxxxxxx;
  7531.             cin>>xxxxxxxxxxxxxxx;
  7532.             cin>>xxxxxxxxxxxxxxxx;
  7533.             cin>>xxxxxxxxxxxxxxxxx;
  7534.             cin>>xxxxxxxxxxxxxxxxxx;
  7535.             cout<<endl;
  7536.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx) / ppp<<endl;
  7537.             cout<<"---------------------------------"<<endl;
  7538.             cin.get();
  7539.             cin.get();
  7540.         }
  7541.         if(pp == 19)
  7542.         {
  7543.             cout<<endl;
  7544.             cout<<"type in your values and separate them with the enter key"<<endl;
  7545.             cin>>x;
  7546.             cin>>xx;
  7547.             cin>>xxx;
  7548.             cin>>xxxx;
  7549.             cin>>xxxxx;
  7550.             cin>>xxxxxx;
  7551.             cin>>xxxxxxx;
  7552.             cin>>xxxxxxxx;
  7553.             cin>>xxxxxxxxx;
  7554.             cin>>xxxxxxxxxx;
  7555.             cin>>xxxxxxxxxxx;
  7556.             cin>>xxxxxxxxxxxx;
  7557.             cin>>xxxxxxxxxxxxx;
  7558.             cin>>xxxxxxxxxxxxxx;
  7559.             cin>>xxxxxxxxxxxxxxx;
  7560.             cin>>xxxxxxxxxxxxxxxx;
  7561.             cin>>xxxxxxxxxxxxxxxxx;
  7562.             cin>>xxxxxxxxxxxxxxxxxx;
  7563.             cin>>xxxxxxxxxxxxxxxxxxx;
  7564.             cout<<endl;
  7565.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxx) / ppp<<endl;
  7566.             cout<<"---------------------------------"<<endl;
  7567.             cin.get();
  7568.             cin.get();
  7569.         }
  7570.         if(pp == 20)
  7571.         {
  7572.             cout<<endl;
  7573.             cout<<"type in your values and separate them with the enter key"<<endl;
  7574.             cin>>x;
  7575.             cin>>xx;
  7576.             cin>>xxx;
  7577.             cin>>xxxx;
  7578.             cin>>xxxxx;
  7579.             cin>>xxxxxx;
  7580.             cin>>xxxxxxx;
  7581.             cin>>xxxxxxxx;
  7582.             cin>>xxxxxxxxx;
  7583.             cin>>xxxxxxxxxx;
  7584.             cin>>xxxxxxxxxxx;
  7585.             cin>>xxxxxxxxxxxx;
  7586.             cin>>xxxxxxxxxxxxx;
  7587.             cin>>xxxxxxxxxxxxxx;
  7588.             cin>>xxxxxxxxxxxxxxx;
  7589.             cin>>xxxxxxxxxxxxxxxx;
  7590.             cin>>xxxxxxxxxxxxxxxxx;
  7591.             cin>>xxxxxxxxxxxxxxxxxx;
  7592.             cin>>xxxxxxxxxxxxxxxxxxx;
  7593.             cin>>xxxxxxxxxxxxxxxxxxxx;
  7594.             cout<<endl;
  7595.             cout<<"Average: "<<(x + xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx + xxxxxxxxxx + xxxxxxxxxxx + xxxxxxxxxxxx + xxxxxxxxxxxxx + xxxxxxxxxxxxxx + xxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxxx) / ppp<<endl;
  7596.             cout<<"---------------------------------"<<endl;
  7597.             cin.get();
  7598.             cin.get();
  7599.         }
  7600.         cout<<endl;
  7601.         cout<<"Do another average - 1"<<endl;
  7602.         cout<<"Exit - 2"<<endl;
  7603.         cin>>vb;
  7604.         }while(vb == 1);
  7605.     }
  7606. //          CALCULATOR DECLARATION  
  7607.     void Math::Calc()
  7608.     {
  7609.         int bx;
  7610.         do
  7611.         {
  7612.         cout<<endl;
  7613.         cout<<"=========="<<endl;
  7614.         cout<<"Calculator"<<endl;
  7615.         cout<<"=========="<<endl;
  7616.         float num1;
  7617.         float num2;
  7618.         float general;
  7619.         char oper;
  7620.         cout<<endl;
  7621.         cout<<"Type in your calculation:"; cin>>num1;
  7622.         cin>>oper; cin>>num2;
  7623.         switch(oper)
  7624.         {
  7625.         case'+':{cout<<endl;cout<<(num1 + num2)<<endl;break;}
  7626.         case'-':{cout<<endl;cout<<(num1 - num2)<<endl;break;}
  7627.         case'*':{cout<<endl;cout<<(num1 * num2)<<endl;break;}
  7628.         case'/':{cout<<endl;cout<<(num1 / num2)<<endl;break;}
  7629.         case'r':{srand (time(0)); for(general = 0; general < 1; general++){
  7630.                 cout<<endl;
  7631.                 cout<<rand()%100<<endl;}}
  7632.         }
  7633.         cout<<"---------------------------------"<<endl;
  7634.         cin.get();
  7635.         cin.get();
  7636.         cout<<endl;
  7637.         cout<<"Do another calculation - 1"<<endl;
  7638.         cout<<"Exit - 2"<<endl;
  7639.         cin>>bx;
  7640.         }while(bx == 1);
  7641.     }
  7642.     class Text
  7643.     {
  7644.     public:
  7645.         void Write();
  7646.         int Writer();
  7647.         int Ver();
  7648.     };
  7649. //              VERSION DECLARATION
  7650.     int Text::Ver()
  7651.     {
  7652.         cout<<"-----------------------"<<endl;
  7653.         cout<<"|TSP version 0.9 Beta |"<<endl;
  7654.         cout<<"|7th milestone release|"<<endl;
  7655.         cout<<"-----------------------"<<endl;
  7656.     }
  7657. //              PRINT DECLARATION
  7658.     void Text::Write()
  7659.     {
  7660.         string c;
  7661.         cout<<"->";
  7662.         getline(cin, c);
  7663.         getline(cin, c);
  7664.         cout<<endl;
  7665.         cout<<endl;
  7666.         cout<<"---------|\t\t"<<c<<"\t\t|---------"<<endl;
  7667.         cout<<endl;
  7668.         cout<<endl;
  7669.     }
  7670. //              WRITER DECLARATION
  7671.     int Text::Writer()
  7672.     {
  7673.         string a;
  7674.         string cob;
  7675.         int vmi;
  7676.         string vm;
  7677.         string c2;
  7678.         string edit;
  7679.         int i;
  7680.         int y = 1;
  7681.         string s1;
  7682.         string s2;
  7683.         while(y == 1)
  7684.         {
  7685.         cout<<endl;
  7686.         cout<<"==========="<<endl;
  7687.         cout<<"Text Writer"<<endl;
  7688.         cout<<"==========="<<endl;
  7689.         cout<<"-------------------------------------"<<endl;
  7690.         cout<<"| New (1) | Open (2) | Settings (3) |"<<endl;
  7691.         cout<<"-------------------------------------" <<endl;
  7692.         cin>>i;
  7693. //      New
  7694.         if(i < 2)
  7695.         {
  7696.             char d[20];
  7697.             stringstream nice;
  7698.             cout<<"-----------------------------------------------------"<<endl;
  7699.             cout<<"Start typing . . ."<<endl;
  7700.             cout<<"====================================================="<<endl;
  7701.             getline(cin, a);
  7702.             getline(cin, a);
  7703.             cout<<"====================================================="<<endl;
  7704.             cout<<"(no spaces) Save as:"<<endl;
  7705.             cin>>d;
  7706.             ofstream file(d);
  7707.             file<<a;
  7708.             cout<<endl;
  7709.             cout<<cob<<endl;
  7710.             cout<<"File Size - "<<a.capacity()<<" Bytes"<<endl;
  7711.             cin.get();
  7712.             cin.get();
  7713.             cout<<"====="<<endl;
  7714.             cout<<"Saved"<<endl;
  7715.             cout<<"====="<<endl;
  7716.             cout<<endl;
  7717.             cout<<"Menu - 1"<<endl;
  7718.             cout<<"Exit - 2"<<endl;
  7719.             cin>>y;
  7720.         }
  7721. //      Edit
  7722.         if(i == 2)
  7723.         {
  7724.             string c;
  7725.             string df;
  7726.             string dx;
  7727.             char t[20];
  7728.             cout<<"Enter filename and path:"<<endl;
  7729.             cin>>t;
  7730.             ifstream files(t);
  7731.             if(! files)
  7732.             {
  7733.             cout<<"-Error 290-"<<endl;
  7734.             cout<<"cannot find file"<<endl;
  7735.             return -1;
  7736.             }
  7737.             if(! files.eof())
  7738.             {
  7739.             getline(files, c);
  7740.             ifstream filesd("/i.txt");
  7741.             ifstream filesdx("/ii.txt");
  7742.             getline(filesd, df);
  7743.             cout<<df<<endl;
  7744.             cout<<c;
  7745.             getline(cin, c);
  7746.             getline(cin, c);
  7747.             getline(filesdx, dx);
  7748.             cout<<dx<<endl;
  7749.             c2 += (c + edit);
  7750.             ofstream fileb(t);
  7751.             fileb<<c2;
  7752.             cout<<endl;
  7753.             cout<<"("<<cob<<")"<<endl;
  7754.             cin.get();
  7755.             cout<<endl;
  7756.             cout<<"Menu - 1"<<endl;
  7757.             cout<<"Exit - 2"<<endl;
  7758.             cin>>y;
  7759.             c2 = "";
  7760.             }
  7761.             if(! files)
  7762.             {
  7763.             cout<<"-Error 290-"<<endl;
  7764.             cout<<"cannot find file"<<endl;
  7765.             return -1;
  7766.             }
  7767.         }
  7768. //      Settings
  7769.         if(i == 3)
  7770.         {
  7771.             int nl;
  7772.             cout<<endl;
  7773.             cout<<"\t-Settings-\t"<<endl;
  7774.             cout<<"| View Mode (1) | Tools (2) |"<<endl;
  7775.             cin>>nl;
  7776.             if(nl == 1)
  7777.             {
  7778.             cout<<endl;
  7779.             cout<<"                |--||--||--|";cout<<" -3"<<endl;
  7780.             cout<<"      |--||--|";cout<<"  |--||--||--|";cout<<" -2"<<endl;
  7781.             cout<<"|--|";cout<<"  |--||--|";cout<<"  |--||--||--|";cout<<" -1"<<endl;
  7782.             cout<<endl;
  7783.             cout<<"Viewing Mode Scale:";
  7784.             cin>>vmi;
  7785.             if(vmi == 1)
  7786.             {
  7787.                 s1 = "===============\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.|||||||||||||||";
  7788.                 s2 = "|||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.===============";
  7789.                 ofstream filej ("i.txt");
  7790.                 filej<<s1;
  7791.                 ofstream filejj ("ii.txt");
  7792.                 filejj<<s2;
  7793.             }
  7794.             if(vmi == 2)
  7795.             {
  7796.                 s1 = "==================================================\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.||||||||||||||||||||||||||||||||||||||||||||||||||";
  7797.                 s2 = "||||||||||||||||||||||||||||||||||||||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.==================================================";
  7798.                 ofstream filej ("i.txt");
  7799.                 filej<<s1;
  7800.                 ofstream filejj ("ii.txt");
  7801.                 filejj<<s2;
  7802.             }
  7803.             if(vmi == 3)
  7804.             {
  7805.                 s1 = "============================================================\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";
  7806.                 s2 = "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.============================================================";
  7807.                 ofstream filej ("i.txt");
  7808.                 filej<<s1;
  7809.                 ofstream filejj ("ii.txt");
  7810.                 filejj<<s2;
  7811.             }
  7812.             }
  7813.             if(nl == 2)
  7814.             {
  7815.             int nlx;
  7816.             cout<<endl;
  7817.             cout<<"|Character count toggle (1) | File size display toggle (2)|"<<endl;
  7818.             cin>>nlx;
  7819.             if(nlx == 1)
  7820.             {
  7821.                 string local;
  7822.                 string on = "on";
  7823.                 string off = "off";
  7824.                 cout<<"Character count - type 'on' or 'off'"<<endl;
  7825.                 getline(cin, local);
  7826.                 getline(cin, local);
  7827.                 if(local == on)
  7828.                 {
  7829.                 cob = "Characters - " + a.size();
  7830.                 cout<<"--"<<endl;
  7831.                 cout<<"ON"<<endl;
  7832.                 cout<<"--"<<endl;
  7833.                 }
  7834.                 if(local == off)
  7835.                 {
  7836.                 cob = "";
  7837.                 cout<<"---"<<endl;
  7838.                 cout<<"OFF"<<endl;
  7839.                 cout<<"---"<<endl;
  7840.                 }
  7841.             }
  7842.             if(nlx == 2)
  7843.             {
  7844.                 cout<<"File size display On/Off"<<endl;
  7845.             }
  7846.             }
  7847.         }
  7848.         }
  7849.     }
  7850. //              WRITER DECLARATION
  7851. //              MAIN FUNCTION
  7852.     int main()
  7853.     {
  7854.         int z = 1;
  7855.         string a;
  7856.         string b = "print";
  7857.         string d = "run_writer";
  7858.         string f = "run_calc";
  7859.         string e = "run_calc.av";
  7860.         string g = "run_rand";
  7861.         string h = "help";
  7862.         string hh = "run_convert";
  7863.         string hx = "run_speed";
  7864.         string hxi = "run_distance";
  7865.         string hxp = "run_tcalc";
  7866.         string nm = "run_grid";
  7867.         string zti = "run_timer";
  7868.         string hg = "clear";
  7869.         string ix = "version";
  7870.         string ij = "run_task";
  7871.         string ji = "run_contact";
  7872.         string lz = "run_cal";
  7873. //              COMMAND LOOP
  7874.         cout<<endl;
  7875.         cout<<"\t--------------------------------------------------------------"<<endl;
  7876.         cout<<"\t-----------------------------TSP 0.9 Beta--------------------------"<<endl;
  7877.         cout<<"\t--------------------------------------------------------------"<<endl;
  7878.         cout<<"";
  7879.         sleep(1);
  7880.         cout<<flush;
  7881.         cout<<"\t[=";
  7882.         sleep(1);
  7883.         cout<<flush;
  7884.         cout<<"==";
  7885.         sleep(1);
  7886.         cout<<flush;
  7887.         cout<<"==";
  7888.         sleep(1);
  7889.         cout<<flush;
  7890.         cout<<"=";
  7891.         sleep(1);
  7892.         cout<<flush;
  7893.         cout<<"=";
  7894.         sleep(1);
  7895.         cout<<flush;
  7896.         cout<<"\t\t==";
  7897.         sleep(1);
  7898.         cout<<flush;
  7899.         cout<<"=";
  7900.         sleep(1);
  7901.         cout<<flush;
  7902.         cout<<"==";
  7903.         sleep(1);
  7904.         cout<<flush;
  7905.         cout<<"==";
  7906.         sleep(1);
  7907.         cout<<flush;
  7908.         cout<<"\t\t==";
  7909.         sleep(1);
  7910.         cout<<flush;
  7911.         cout<<"==";
  7912.         sleep(1);
  7913.         cout<<flush;
  7914.         cout<<"==";
  7915.         sleep(1);
  7916.         cout<<flush;
  7917.         cout<<"==";
  7918.         sleep(1);
  7919.         cout<<flush;
  7920.         cout<<"\t=";
  7921.         sleep(1);
  7922.         cout<<flush;
  7923.         cout<<"=";
  7924.         sleep(1);
  7925.         cout<<flush;
  7926.         cout<<"==";
  7927.         sleep(1);
  7928.         cout<<flush;
  7929.         cout<<"=]";
  7930.         sleep(1);
  7931.         cout<<flush;
  7932.         cout<<"";
  7933.         sleep(1);
  7934.         cout<<flush<<endl;
  7935.         cout<<"--------------------------------------------------------------------------------"<<endl;
  7936.         cout<<endl;
  7937.         cout<<endl;
  7938.         cout<<endl;
  7939.         cout<<endl;
  7940.         cout<<endl;
  7941.         cout<<endl;
  7942.         cout<<endl;
  7943.         cout<<endl;
  7944.         cout<<endl;
  7945.         cout<<endl;
  7946.         cout<<endl;
  7947.         cout<<endl;
  7948.         cout<<endl;
  7949.         cout<<endl;
  7950.         cout<<endl;
  7951.         cout<<endl;
  7952.         cout<<endl;
  7953.         cout<<endl;
  7954.         cout<<endl;
  7955.         cout<<endl;
  7956.         cout<<endl;
  7957.         cout<<endl;
  7958.         cout<<endl;
  7959.         cout<<endl;
  7960.         cout<<endl;
  7961.         cout<<endl;
  7962.         cout<<endl;
  7963.         do{
  7964.         cout<<endl;
  7965.         cout<<"Command >";
  7966.         cin>>a;
  7967.         if(a == b)
  7968.         {
  7969.             Text run;
  7970.             run.Write();
  7971.         }
  7972.         if(a == d)
  7973.         {
  7974.             Text runa;
  7975.             runa.Writer();
  7976.         }
  7977.         if(a == f)
  7978.         {
  7979.             Math runb;
  7980.             runb.Calc();
  7981.         }
  7982.         if(a == e)
  7983.         {
  7984.             Math runc;
  7985.             runc.Av();
  7986.         }
  7987.         if(a == g)
  7988.         {
  7989.             Math rund;
  7990.             rund.Rando();
  7991.         }
  7992.         if(a == h)
  7993.         {
  7994.             Read rune;
  7995.             rune.helpsh();
  7996.         }
  7997.         if(a == hh)
  7998.         {
  7999.             Unit show;
  8000.             show.Con();
  8001.         }
  8002.         if(a == hg)
  8003.         {
  8004.             Small beos;
  8005.             beos.white();
  8006.         }
  8007.         if(a == hx)
  8008.         {
  8009.             Sdt showa;
  8010.             showa.Speed();
  8011.         }
  8012.         if(a == nm)
  8013.         {
  8014.             Math showb;
  8015.             showb.Ncell();
  8016.         }
  8017.         if(a == zti)
  8018.         {
  8019.             Time showc;
  8020.             showc.Timer();
  8021.         }
  8022.         if(a == ix)
  8023.         {
  8024.             Text showd;
  8025.             showd.Ver();
  8026.         }
  8027.         if(a == hxi)
  8028.         {
  8029.             Sdt showe;
  8030.             showe.Distance();
  8031.         }
  8032.         if(a == hxp)
  8033.         {
  8034.             Sdt showf;
  8035.             showf.Time();
  8036.         }
  8037.         if(a == ij)
  8038.         {
  8039.             dbase showft;
  8040.             base* ppdbase = &showft;
  8041.             ppdbase->todo();
  8042.         }
  8043.         if(a == ji)
  8044.         {
  8045.             dbase showhn;
  8046.             base* pdbase = &showhn;
  8047.             pdbase->prod();
  8048.         }
  8049.         if(a == lz)
  8050.         {
  8051.             dbase2 togol;
  8052.             base* pdbase2 = &togol;
  8053.             pdbase2->calendar();
  8054.         }
  8055.         }while(z == 1);
  8056.         return 0;
  8057.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement