cout << ?

i cant seem to get any form of cout statement to work what am i doing wrong here is my code im using bloodshed dev c++ if i take the cout and cin statements out it compiles and runs but the splash window termenates instantlt so i cant tell what it says



#include <iostream>
#include <cmath>
#include <limits>

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] = {};
system ("PAUSE");
std::cout << "enter kilometers : ";

std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );

std::cout << "enter kilometers : ";

std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );

cout << " : kilometers == : miles" << float k3[3] << endl;

system("pause");

}




//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;


}





//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");
std::cin >> get();
std::cin >> get();
return 0;
void pause();

}



//end of function, miles//
ty
Topic archived. No new replies allowed.