[Command For Lost Forum]

May 29, 2013 at 9:17pm
closed account (jyU4izwU)
Some One Asked For a Simple Command Code For TurboC++ Sor Here. Part1/5

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#include <iostream.h>
#include <conio.h>

int main()
{
    int com001,com002,com003,com004,com005,com006,com007,com008,com009;
    int com010,com020,com030,com040,com050,com060,com070,com080,com090;
    int com100,com200,com300,com400,com500,com600,com700,com800,com900;
    int num001,num002,num003,num004,num005,num006,num007,num008,num009;
    int end,ans;                                                      ;
    
    clrscr();
    cout << "\n --------[Type Com for Command list]---------- ";
    cout << "\n --------------------------------------------- ";
    cout << "\n Welcom To Commads Net! Pleas Enter A Command: ";
    cin >> com001                                              ;
    if (com001 == Com )
    {
               clrscr();
               cout << "\n ----------[Welcom To The Commands]----------- ";
               cout << "\n --------------------------------------------- ";
               cout << "\n - Type Cal For Calculator...                  ";
               cout << "\n --- For Multiplication Type: Mlt              ";
               cout << "\n --- For Division Type: Dev                    ";
               cout << "\n --- For Addition Type: Add                    ";
               cout << "\n --- For Substraction Type: Sub                ";
               cout << "\n - Type [Your Code] For [Your Program]...      ";
//-----------------------------------------[Calculator Command:]--------------------------[Start]----------------------------------------
    }
    if (com001 == Cal )
    {
               clrscr();
               cout << "\n ---------[Welcom To The Calculator]---------- ";
               cout << "\n --------------------------------------------- ";
               cout << "\n ############################################# ";
               cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
               cout << "\n #|                                         |# ";
               cout << "\n #|                                         |# ";
               cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
               cout << "\n ############################################# ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n ############################################# ";
               cout << "\n Pleas Enter a Number: ";
               cin >> num001;
               clrscr();
               cout << "\n ---------[Welcom To The Calculator]---------- ";
               cout << "\n --------------------------------------------- ";
               cout << "\n ############################################# ";
               cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
               cout << "\n #| "<<num001<<"                            |# ";
               cout << "\n #|                                         |# ";
               cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
               cout << "\n ############################################# ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
               cout << "\n #   #      #      #      #      #      #    # ";
               cout << "\n #   ########      ########      ########    # ";
               cout << "\n #                                           # ";
               cout << "\n ############################################# ";
               cout << "\n Pleas Enter a Calculation Command: ";
               cin >> com002
               if (com002 == Add )
               {
                          
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"+                           |# ";
                          cout << "\n #|                       
Last edited on May 29, 2013 at 9:22pm
May 29, 2013 at 9:22pm
closed account (jyU4izwU)
Some One Asked For a Simple Command Code For TurboC++ Sor Here. Part2/5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cout << "\n Pleas Enter a Number: ";
                          cin >> num002;
                          num001+num002=num003
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"+"<<num002<<"=              |# ";
                          cout << "\n #| "<<num003<<"                            |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cin >> end;
               }
               if (com002 == Sub )
               {
                          
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"-                           |# ";
                          cout << "\n #|                                         |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
Last edited on May 29, 2013 at 9:22pm
May 29, 2013 at 9:23pm
closed account (jyU4izwU)
Some One Asked For a Simple Command Code For TurboC++ Sor Here. Part3/5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cout << "\n Pleas Enter a Number: ";
                          cin >> num002;
                          num001-num002=num003
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"-"<<num002<<"=              |# ";
                          cout << "\n #| "<<num003<<"                            |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cin >> end;
               }
               if (com002 == Mlt )
               {
                          
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"*                           |# ";
                          cout << "\n #|                                         |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cout << "\n Pleas Enter a Number: ";
                          cin >> num002;
                          num001*num002=num003
May 29, 2013 at 9:24pm
closed account (jyU4izwU)
Some One Asked For a Simple Command Code For TurboC++ Sor Here. Part4/5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"*"<<num002<<"=              |# ";
                          cout << "\n #| "<<num003<<"                            |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cin >> end;
               }
               if (com002 == Dev )
               {
                          
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"/                           |# ";
                          cout << "\n #|                                         |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cout << "\n Pleas Enter a Number: ";
                          cin >> num002;
                          num001/num002=num003
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"/"<<num002<<"=              |# ";
                          cout << "\n #| "<<num003<<"                            |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cin >> end;
May 29, 2013 at 9:25pm
closed account (jyU4izwU)
Some One Asked For a Simple Command Code For TurboC++ Sor Here. Part5/5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
               }
               if (com002 == Mlt )
               {
                          
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"/                           |# ";
                          cout << "\n #|                                         |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cout << "\n Pleas Enter a Number: ";
                          cin >> num002;
                          num001*num002=num003
                          clrscr();
                          cout << "\n ---------[Welcom To The Calculator]---------- ";
                          cout << "\n --------------------------------------------- ";
                          cout << "\n ############################################# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n #| "<<num001<<"*"<<num002<<"=              |# ";
                          cout << "\n #| "<<num003<<"                            |# ";
                          cout << "\n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ";
                          cout << "\n ############################################# ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   7  #      #   8  #      #   9  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #   4  #      #   5  #      #   6  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   #  1   #      #   2  #      #   3  #    # ";
                          cout << "\n #   #      #      #      #      #      #    # ";
                          cout << "\n #   ########      ########      ########    # ";
                          cout << "\n #                                           # ";
                          cout << "\n ############################################# ";
                          cin >> end;
               }
//-----------------------------------------[Calculator Command:]--------------------------[End]------------------------------------------
}
Last edited on May 29, 2013 at 9:30pm
May 29, 2013 at 9:27pm
closed account (jyU4izwU)
Comment If You See A Bug...
May 29, 2013 at 9:37pm
1) Don't use iostream.h; use the standard <iostream> library.
2) Don't use conio.h; you can refer to http://www.cplusplus.com/articles/4z18T05o/ for information on how to correctly clear the screen on a consolethe pinned thread "Console Closing Down" for information on how to correctly pause the program.
3) You could use switch-cases to make things clear and handle bad input
4) Store the calculator image in an array, container, or class, so you don't have to copy/paste all of this.
5) Why are there so many variables?
5) There is a random semi-colon on line 10.
6) What the heck are Cal, Mlt, etc. supposed to be? They are not declared anywhere in your program.
7) You ask the user to enter in a command without telling him/her what commands are available.
8) What is the point of the block after if(com001 == Com)?

9) This program can only be used once per run. There is no loop to allow the user to reuse your calculator(?).
Last edited on May 29, 2013 at 9:40pm
May 29, 2013 at 9:56pm
closed account (jyU4izwU)
a Simple Command Code For TurboC++
May 29, 2013 at 11:25pm
I wonder how can a user enter Cal as command if you show only one possible command Com?

clrscr();
cout << "\n --------[Type Com for Command list]---------- ";
cout << "\n --------------------------------------------- ";
cout << "\n Welcom To Commads Net! Pleas Enter A Command: ";
cin >> com001

if (com001 == Cal )

And what are Cal and Com? Where are they defined?
Last edited on May 30, 2013 at 3:58am
May 29, 2013 at 11:54pm
closed account (jyU4izwU)
Cal Dose Not Have To Be Defined And com001 is defined at the top:
1
2
3
4
5
6
7
8
9
10
#include <iostream.h>//or only iostream no .h
#include <conio.h>

int main()
{
    int com001,com002,com003,com004,com005,com006,com007,com008,com009;
    int com010,com020,com030,com040,com050,com060,com070,com080,com090;
    int com100,com200,com300,com400,com500,com600,com700,com800,com900;
    int num001,num002,num003,num004,num005,num006,num007,num008,num009;
    int end,ans;    
Last edited on May 29, 2013 at 11:54pm
May 30, 2013 at 4:00am
@ibranext
Cal Dose Not Have To Be Defined And com001 is defined at the top


I have not understood why Cal does not have to be defined. What is Cal in this case?
May 30, 2013 at 8:29am
ibranext wrote:
for TurboC++

Please explain. Websearch finds only references to ancient IDE and compiler, that nobody needs to use any more.
May 30, 2013 at 8:48am
Calculator drawing appears 12 times. What do you will do whaen you need to add several more operations? Draw it another 12 times? And if you want to change graphics? Change every entry?

May 30, 2013 at 10:10am
closed account (jyU4izwU)
@MiiNiPaa
Nope There are ways To Draw The Calculator One Time And Make It Show 12 Times. I Made It Like This To Show The Answer at The Top Of The Calculator Screen.

@keskiverto
Well I User DevC++, But I Read A Question On One Of The Forums Saying Somthing About TurboC++.

@vlad from moscow
Cal is The Calculator Command.

Enymore Questions?
May 30, 2013 at 10:38am
Comments or questions, depending on how you interpret them.

First, regular words on regular sentences do not start with uppercase character.
ibranext wrote:
I Made It Like This To Show The Answer at The Top Of The Calculator Screen.

You imply that this is the only way to show "answer" on top of "screen". Are you sure?

ibranext wrote:
I Read A Question On One Of The Forums Saying Somthing

Someone wrote something somewhere. Are they supposed to know that you answer here? Are you sure that your answer is correct, considering that you are not using TurboC++ (whatever that is)?

ibranext wrote:
Cal is The Calculator Command.

No, it is not. According to the code that you have shown, Cal is an undefined identifier.
May 30, 2013 at 10:48am
closed account (jyU4izwU)
@keskiverto
Q1~No It Is Not The Only Way to show the answer...
Q2~Yes I Used TurboC++ And Now im Using DevC++ I Know About Turbo Verrywell It Was My First Compiler
Q3~Cal Dose not have to be defined
May 30, 2013 at 1:11pm
Cal Dose not have to be defined

Then it has no known type or value and cannot be compared to in C++.
May 31, 2013 at 12:57am
closed account (jyU4izwU)
Ok Lest Make it simple:

If A Person Types Cal It will take the word Cal as the com001
May 31, 2013 at 1:04am
Two issues:
1) The way you typed "Cal" in your code presumes that Cal is a variable or object. If you meant a string, type "Cal" with the quotation marks.
2) You want the user to enter in characters but attempt to store that input in ints. This will cause cin to fail, and since you do not handling of bad input, the rest of the cin calls will be ignored.
May 31, 2013 at 1:51am
closed account (jyU4izwU)
@Daleth
nice going you noticed. i can simply put a else or a loop if it fails
Topic archived. No new replies allowed.