Jun 30, 2011 at 1:14am UTC
i can get this programe to compile and run but its display window doesnt stay it just flashes can some one help
include <iostream>
#include <cmath>
using namespace std;
//kilometers//
float distance(float k1[3], float const k2, float k3[3]);
float distance(float m1[3], float const m2, float m3[3]);
int main()
{
float k1[3] = {1, 1+1};
const float k2 = {0.6237119};
float k3[3] = {};
float m1[3] = {1, 1+1};
const float m2 = {1.609344};
float m3[3] = {};
}
//end of main function, kilometers//
void
pause();
float dist (float k1[3], const float k2)
{
float k3[3] = {k1[0] * k2, k1[1] * k2, k1[2] * k2};
float dist (float k3[0], float k3[1], float k3[2]);
}
float dist (float k1[3], const float k2, float k3[3])
{
k3[3] = k1[3] * k2;
cout << "kilometers : = : miles" << k3[3] << endl;
return (0);
void pause();
}
//end of function, kilometers//
//miles//
float dist (float m1[3], float const m2, float m3[3]);
float k1[3] = {1, 1+1};
const float k2 = {0.6237119};
float k3[3] = {};
float m1[3] = {1, 1+1};
const float m2 = {1.609344};
float m3[3] = {};
//end of main function, miles//
void
pause();
float distance (float m1[3], const float m2)
{
float m3[3] = {m1[0] * m2, m1[1] * m2, m1[2] * m2};
float distance (float m3[0], float m3[1], float m3[2]);
}
float distance (float m1[3], const float m2, float m3[3])
{
m3[3] = m1[3] * m2;
cout << "miles : = : kilometers";
return (1);
void pause();
}
Jun 30, 2011 at 2:23am UTC
yes and the line number columb is blank
Jun 30, 2011 at 4:22am UTC
to make the line column number visible go to tool >editor options > syntax and select "gutter" then change the foreground and background to different colors...