this is odd, for some reason, images dont load for the questions and answers arrays even though they do for the other arrays...is my syntax wrong?
int LoadImages()
{
for(int begin = 0, finish = 6, place = 1; begin < finish; begin++, place++)
{
std::string base = "C:/Jeopardy/";
std::string end = ".png";
std::string middle;
std::string image;
middle = Convert(place);
image = base + "Other/Slide" + middle + end;
if (!other[begin].LoadFromFile(image))
return EXIT_FAILURE;
};
for(int begin = 0, finish = 6, place = 1; begin < finish; begin++, place++)
{
std::string base = "C:/Jeopardy/";
std::string end = ".png";
std::string middle;
std::string image;
middle = Convert(place);
image = base + "Categories/Slide" + middle + end;
if (!categories[begin].LoadFromFile(image))
return EXIT_FAILURE;
};
for(int begin = 0, finish = 5, place = 1; begin < finish; begin++, place++)
{
std::string base = "C:/Jeopardy/";
std::string end = ".png";
std::string middle;
std::string image;
middle = Convert(place);
image = base + "Money/Slide" + middle + end;
if (!money[begin].LoadFromFile(image))
return EXIT_FAILURE;
};
for(int begin = 0, finish = 30, place = 1; begin < finish; begin++, place++)
{
std::string base = "C:/Jeopardy/";
std::string end = ".png";
std::string middle;
std::string image;
middle = Convert(place);
image = base + "Questions/Slide" + middle + end;
if (!questions[begin].LoadFromFile(image))
return EXIT_FAILURE;
};
for(int begin = 0, finish = 30, place = 1; begin < finish; begin++, place++)
{
std::string base = "C:/Jeopardy/";
std::string end = ".png";
std::string middle;
std::string image;
middle = Convert(place);
image = base + "Answers/Slide" + middle + end;
if (!answers[begin].LoadFromFile(image))
return EXIT_FAILURE;
};
return EXIT_SUCCESS;
}