re:chill index,什么都没发生

时间:2013-01-28 03:32:21

标签: c++ mingw32

我之前发布了一个关于我在使用此程序时遇到的错误的问题,但它在昨天仍有效,尽管它今天不再有效。我不确定发生了什么。这是我的代码。

#include <iostream>
#include <cmath>

using namespace std;

float eqfunction(float, float);

int main() {
    float temperature;
    float windspeed;
    float returnchillindex;
    cout << "What is the temperature?"
    << "Must be in degrees fahrenheit";
    cin >> temperature;
    cout << "What is the wind speed?"
        << "In MPH.";
    cin >> windspeed;
    returnchillindex = eqfunction(temperature,windspeed);
    cout << returnchillindex;
    system("pause");
    return 0;
}    

float eqfunction(float temperature, float windspeed){
    float windindex = 35.74f + 0.6215f * temperature;
    windindex = windindex - 35.75f * std::pow(windspeed, 0.16f);
    windindex = windindex + 0.4275f * temperature * std::pow(windspeed,0.16f);
    return windindex;
 }

这是我的编译器返回的内容

mingw32-g++.exe    -c C:\Users\Ryan\Documents\CodeBlocks\Exam1Part2.cpp -o C:\Users\Ryan\Documents\CodeBlocks\Exam1Part2.o
mingw32-g++.exe  -o C:\Users\Ryan\Documents\CodeBlocks\Exam1Part2.exe C:\Users\Ryan\Documents\CodeBlocks\Exam1Part2.o   
mingw32-g++.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

我不明白一夜之间发生了什么。

0 个答案:

没有答案