Not able to comply

Hello,

I get this message when I try to comply can't create output directory
bin\debug\. What sould I do next? Below is the code.

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

int main()

{
    float salaries[10], temp; // all the 10 salaries

        for(int chr = 0; chr < sizeof(salaries)/sizeof(float); chr++)
        {
            cout << endl << "Enter Salary of Employee number E00"
                 << chr + 1 << ": ";
            cin  >> salaries[chr];
        }
        // sort the array
        for (int K = 0; K < sizeof(salaries)/sizeof(float); K++)
        {
            for(int j = K + 1; j < sizeof(salaries)/sizeof(float); K++)
            {

            if (salaries[K] < salaries[j]);
            {
                temp = salaries[K];
                salaries[K] = salaries[j];
                salaries[j] = temp;
            }
        }
}
// display the comtent of the sorted array
        cout << "the sorted salaries are " << endl;
        for (int m = 0; m < sizeof(salaries)/sizeof(float); m++)
        {
            cout << salaries[m] << endl;
        }
        return 0;
}
It sounds like a problem with the installation or configuration of your compiler. Which compiler are you using? Are you able to successfully compile a simple "hello world" program?
1
2
3
4
5
6
#include <iostream>

int main()
{
    std::cout << "Hello World!";
}
Last edited on
I was able to complie the simple "Hello world program" first. But after I have installed MS Visuall C++ express along side Code::Blocks compilation has become a challenge.


Hey I have been able to retify this complilation problem. I had to do reinstallation of Code::blocks again after I instal MS Visual C++.
Thanks for the concern.
Topic archived. No new replies allowed.