help!!!!!!!!!!
I really need help on this program!It has like 15 errors that i cant solve.(C++)
#include <iostream>
int main() //search two groups of two numbers for the highest val
{
int munArray[2] =(12, 4)
int numArray[2] =(5,6)
std::cin>>mun;
if (4<12)
std::cout<<"Twelve is the highest value of mun\n";
else(4>12)
std::cout<<"Four is the highest value of mun";
std::cin>>num;
if (5<6)
std::cout<<"Six is the highest value of num";
else(5>6)
std::cout<<"Five is the highest value of num";
return 0;
}
Thanks.
-----------
knightsofchaos.com
starcraftforge.com
I fixed everything that''s fixable. I have no idea what you want it to do in some spots...
#include <iostream>int main() { int munArray[2] = { 12, 4 }; int numArray[2] = { 5, 6 };// ? std::cin >> mun; if(4<12) std::cout << "Twelve is the highest value of mun" << std::endl; else std::cout << "Four is the highest value of mun" << std::endl;// ? std::cin >> num; if(5<6) std::cout << "Six is the highest value of num" << std::endl; else std::cout << "Five is the highest value of num" << std::endl; return 0;}[/quote]
I really need help on this program!It has like 15 errors that i cant solve.(C++)
#include <iostream>
int main() //search two groups of two numbers for the highest val
{
int munArray[2] =(12, 4)
try putting the values in {}
int numArray[2] =(5,6)
and here too.
std::cin>>mun;
if (4<12)
std::cout<<"Twelve is the highest value of mun\n";
else(4>12)
else if...
std::cout<<"Four is the highest value of mun";
std::cin>>num;
if (5<6)
std::cout<<"Six is the highest value of num";
else(5>6)
else if...
std::cout<<"Five is the highest value of num";
return 0;
}
Thanks.
zintel.com - 3d graphics & more or less
#include <iostream>
int main() //search two groups of two numbers for the highest val
{
int munArray[2] =(12, 4)
try putting the values in {}
int numArray[2] =(5,6)
and here too.
std::cin>>mun;
if (4<12)
std::cout<<"Twelve is the highest value of mun\n";
else(4>12)
else if...
std::cout<<"Four is the highest value of mun";
std::cin>>num;
if (5<6)
std::cout<<"Six is the highest value of num";
else(5>6)
else if...
std::cout<<"Five is the highest value of num";
return 0;
}
Thanks.
zintel.com - 3d graphics & more or less
zintel.com - 3d graphics & more or less
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement