Zodiac
Zodiac
#include <ctime>
int main()
int iZodiac;
time_t rawtime;
time( &rawtime );
do {
std::cin.ignore(1000, '\n');
std::cout << "\nI'm sorry but that is not an option. Please answer 1, 2, 3 or 4." << std::endl;
if (iZodiac == 1) {
int iCbirth;
int iCzodiac;
while ((std::cout << "\nEnter year born." << std::endl) && !(std::cin >> iCbirth)) {
std::cout << "\nI'm sorry but that is an invalid answer. Please answer using numbers." <<
std::endl;
std::cin.clear();
std::cin.ignore(1000, '\n');
iCzodiac = iCbirth-((iCbirth/12)*12);
if (iCzodiac == 0){
}
else if (iCzodiac == 10){
if (iZodiac == 2) {
int iMonth;
int iDay;
while ((std::cout << "\nEnter month born." << std::endl) && !(std::cin >> iMonth)) {
std::cout << "\nI'm sorry but that is an invalid answer. Please answer using numbers." <<
std::endl;
std::cin.clear();
std::cin.ignore(1000, '\n');
while ((std::cout << "\nEnter day born." << std::endl) && !(std::cin >> iDay)) {
std::cout << "\nI'm sorry but that is an invalid answer. Please answer using numbers." <<
std::endl;
std::cin.clear();
std::cin.ignore(1000, '\n');
if (iMonth == 12) {
else if (iMonth == 9) {
else if (iMonth == 8) {
else if (iMonth == 7) {
}
}
else if (iMonth == 6) {
else if (iMonth == 5) {
else if (iMonth == 4) {
}
else if (iMonth == 3) {
else if (iMonth == 2) {
else if (iMonth == 1) {
}
//End Western Zodiac Option
if (iZodiac == 3) {
int iAge;
int iYear;
int iBirth;
while ((std::cout << "\nEnter your current age." << std::endl) && !(std::cin >> iAge)) {
std::cout << "\nI'm sorry but that is an invalid answer. Please answer using numbers." <<
std::endl;
std::cin.clear();
std::cin.ignore(1000, '\n');
iBirth = iYear-iAge;
std::cout << "\nYou were born in the year " << iBirth << std::endl;
std::cout << "\nThank you for playing, Good bye." << std::endl;
std::cout << "----Created by: Cyexam Augree Eden Beloy <3 ----" << std::endl;
return 0;