code blocks users

when i first started using code blocks i pressed the down arrow to get rid of the box at the bottom of the screen that tells you the errors in your code when you compile it.how do i get it back?
i guess no one uses code blocks.should i switch to something else
No a lot of people do use Code Blocks , have you tried restarting Code Blocks?
Last edited on
Try pressing the F2 function key.
ok f2 worked but i have a question.why when i compile this program on dev c++ it works fin but when i compile it on code::blocks it says line 12 and 70 "system not declared in scope"...why?

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
#include <iostream>

using namespace std;

int main()
{
    double a, b, answer;
    int choice;
    char again;
    
    do{
    system("CLS");
    cout << "here are your options" << endl << endl;
    cout << "1.Addition" << endl;
    cout << "2.subtraction" << endl;
    cout << "3.multiplication" << endl;
    cout << "4.divison" << endl;
    cout << "5.average calculator" << endl;
    cout << "6.to quit" << endl;
    cin >> choice;     
    

    switch(choice){
        case 1:
        cout << "enter two numbers you want to use(press enter after you enter each number): ";
        cout << endl;
        cin >> a >> b;
        answer = a + b;
        cout << "the answer is: " << a << " + " << b << " = " << answer << endl;
        break;
        case 2:
        cout << "enter two numbers you want to use(press enter after you enter each number): ";
        cout << endl;
        cin >> a >> b;
        answer = a - b;
        cout << "the answer is: " << a << " - " << b << " = " << answer << endl;
        break;
        case 3:
        cout << "enter two numbers you want to use(press enter after you enter each number): ";
        cout << endl;
        cin >> a >> b;
        answer = a * b;
        cout << "the answer is: " << a << " * " << b << " = " << answer << endl;
        break;
        case 4:
        cout << "enter two numbers you want to use(press enter after you enter each number): ";
        cout << endl;
        cin >> a >> b;
        answer = a / b;
        cout << "the answer is: " << a << " / " << b << " = " << answer << endl;
        break;
        case 5:
        cout << "please enter two numbers you want to find the average of" << endl;
        cout << "be sure to press enter after each number" << endl;
        cin >> a >> b;
        answer = (a + b) /2;
        cout << "the average of " << a << " and " << b << " is " << answer << endl;
        break;
        case 6:
        cout << "thanks for using this calculator!" << endl;
        system("pause");
        return 0;
        break;

    }
    cout << "would you like to restart(y or n)";
    cin >> again;
    }while(again == 'y' ||again == 'Y');

    system("pause");
    return 0;
}
#include <cstdlib>

Also read this http://www.cplusplus.com/forum/articles/11153/
Last edited on
okay thanks and can you please help me figure out a way to let the user in this program to enter however many numbers he wants to use.i want to do this by a loop but i cant figure that out.
Topic archived. No new replies allowed.