i was putting the finishing touches on my project and there are some errors that came up
here is my code:

else if (action == 3){
system("cls");
cout << "Russia has an entrenched, albeit underfunded, system of socialized medicine. Basic medical care is available" << endl;
cout << "to most of the population free of cost, but its quality is extremely low by Western standards, and in the" << endl;
cout << "mid-1990s the efficiency of the system continued the decline that had begun before the collapse of the Soviet" << endl;
cout << "system. In the first four post-Soviet years, that decline was typified by significant increases in infant and" << endl;
cout << "maternal mortality and contagious diseases and by decreases in fertility and life expectancy." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about russia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Europe();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4) // it says first error is here
{
cout << "TB rates in Russia increased by 70% from 1990 to 1995, according to sanitary epidemiologic surveillance records." << endl;
cout << "The disease rate in 1999 was 4.5% higher than in 1998 (4,6) (61.4/100,000 or 90,000 newly identified cases," << endl; 
cout << "4,681 [5%] in children <14 years of age [6,7]). More than 25,000 persons die of TB each year. The highest" << endl; 
cout << "rates are reported from Tuva, Khakassia, Khakassia, and the Tyumen, Jewish Autonomic, Perm, and Novosibirisk" << endl; 
cout << "regions, with case rates of 266.4, 212.4, 146.8, 142.3, 137.6, 131.9, and 131 per 100,000, respectively." << endl; 
cout << "These data from the Ministry of Health likely do not reflect the disease rate among prisoners, who numbered" << endl;
cout << "approximately 974,000 in September 2000 (www.prison.org). The TB death rate, however, has remained stable or" << endl; 
cout << "declined, with 16.7 per 100,000 in 1997 and 15.4 in 1998." << endl;
cout << "Brucellosis-" << endl;
cout << "In the 1990s, 300 to 700 cases of brucellosis occurred each year. No apparent long-term trends were observed." << endl;
cout << "Anthrax-" << endl;
cout << "Although many natural foci are located in Russia, the number of anthrax cases per year during the past 10 years" << endl;
cout << "has never exceeded 100 (e.g., 37 in 1998, 45 in 1999)." << endl;
cout << "Diphtheria-" << endl;
cout << "In the former Soviet Union, diphtheria was controlled through vaccination. The large increase in cases in the" << endl; 
cout << "early 1990s was mainly due to low vaccination coverage because of a new policy, under which vaccination was" << endl; 
cout << "not recommended for large segments of the population (3). This policy, which was introduced in the beginning" << endl; 
cout << "of the 1990s, was rescinded in the mid-1990s. In addition, a widespread advertising campaign on television and" << endl;
cout << "other mass media about the adverse effects of vaccination caused widespread reluctance of the public to be vaccinated." << endl;
cout << "As a result, by 1994, the disease rate had increased almost 30-fold. Since then, a mass vaccination campaign has been" << endl; 
cout << "implemented in the most heavily affected regions, and by 1999 diphtheria rates had returned to the levels recorded" << endl;
cout << "in the early 1990s. Ministry of Health statistics (Table; 4,5) demonstrate a sharp decrease in diphtheria, which" << endl; 
cout << "was achieved through an organized, voluntary immunization campaign of a scale unprecedented in post-Soviet Russia." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action; 
     }

else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action; // says second error is here
}// says third error is here

here are the errors:

1.expected unqualified-id before "else"
1(part 2) expected `,' or `;' before "else"

2.expected unqualified-id before "else"
2(part 2) expected `,' or `;' before "else"

3. expected declaration before '}' token

Recommended Answers

All 8 Replies

Lack of indentation makes this code impossible to read.

It looks very much like you have one closing brace too many before the first error. It is difficult to say exactly since you have not posted your entire code.

ok well if you want my entire codes its 1000 lines... so...
i guess ill post it since i need this done its around the 130th and 150th lines where the errors are:

#include <iostream>
using namespace std;
int Mainmenu();




int Europe(){
system("cls");
int action;
char action1;
cout << "You have chosen to learn more about Medecine in Russia." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in Russia." << endl;
cout << endl;
cout << "2. Types of treatments in Russia." << endl;
cout << endl;
cout << "3. Qulaity of treatments in Russia." << endl;
cout << "4. Diseases in Russia" << endl;
cout << endl;
cout << "5. " << endl;
cin >> action;
if (action== 1){
             system("cls");
cout << "Inherited from the Soviet Union, the Russian Federation was faced with a legacy of guarantees for a" << endl;
cout << "wide range of social services, including citizens’ right to free medical services. The guarantee of" << endl;
cout << "a full range of free healthcare services has not changed with independence, but rather has been confirmed" << endl;
cout << "through the new Russian Constitution and the new healthcare financing law." << endl;
cout << "Until the late 1980s, the structure of health services in the Soviet Union was highly centralised." << endl;
cout << "After the dissolution, the healthcare system followed the new decentralised administrative structure" << endl;
cout << "of the country and is now divided into federal, regional (oblast-level) and municipal (rayon-level)" << endl;
cout << "administrative levels. 30% of the population receive primary care through work related clinics and" << endl;
cout << "hospitals. For certain employment groups such as police, railroad workers, and high-level government" << endl;
cout << "officials, special health services exist. In 2006, the Russian government launched a national projects" << endl;
cout << "plan that aims to improve four sectors of Russian life, one being healthcare. It approved an additional" << endl;
cout << "$3.2 billion in spending on healthcare to cover salary increases for doctors and nurses, the purchase" << endl;
cout << "of new equipment for clinics and the construction of eight high-tech medical centres in Russia’s outlying" << endl;
cout << "regions. Because regional budgets fund the bulk of healthcare costs, standards and health statistics" << endl;
cout << "vary drastically across Russia’s economically diverse regions. Facilities for the disabled fall far below" << endl;
cout << "western standards. Wheelchairs and artificial limbs are in very short supply with wheelchair ramps rarely" << endl;
cout << "existing and rehabilitation centres are few and far between." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Erussia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Europe();
system("cls");     
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "Kislovodsk is not simply a resort. And though people come here first of all because of unique narzans," << endl;
cout << "its air is the best medicine from all diseases, moral and physical. From Kabardian narzan is translated" << endl;
cout << "as “bogatyr-water”. Rivers of narzan flow in Kislovodsk round the clock. Such water is used for taking" << endl;
cout << "a bath. Prepotent Narzan is delivered out of the depth of 65 m, mineralization and containing of carbonic" << endl;
cout << "acid is two times higher. Sulfate narzan is considered the most saturated. It is pumped out from the depth" << endl;
cout << "of 170 m. The most popular area of the city among holiday-makers is a colossal resort park with routes" << endl;
cout << "of medicinal walking. One of the sights of the park is squirrels. The downy animals descend to people" << endl;
cout << "without fear and willingly take food – nuts, seeds" << endl;
cout << "HERBALISTS, faith healers and robed mystics are all the rage in Russia. The government, which no longer" << endl;
cout << "has money to provide free health care for everyone, has given them its blessing. During the communist" << endl;
cout << "era, practitioners of alternative medicine risked arrest. Now there are 300,000 of them. They are doing" << endl;
cout << "a brisk business. Over 80% of Russians are turning to unorthodox medicine, says Valery Vorontsov, one of" << endl;
cout << "President Boris Yeltsin's advisers on social policy." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about russia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Europe();
system("cls");     
}
else cin >> action;
}
else if (action == 3){
system("cls");
cout << "Russia has an entrenched, albeit underfunded, system of socialized medicine. Basic medical care is available" << endl;
cout << "to most of the population free of cost, but its quality is extremely low by Western standards, and in the" << endl;
cout << "mid-1990s the efficiency of the system continued the decline that had begun before the collapse of the Soviet" << endl;
cout << "system. In the first four post-Soviet years, that decline was typified by significant increases in infant and" << endl;
cout << "maternal mortality and contagious diseases and by decreases in fertility and life expectancy." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about russia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Europe();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
}
else if (action == 4)
{
cout << "TB rates in Russia increased by 70% from 1990 to 1995, according to sanitary epidemiologic surveillance records." << endl;
cout << "The disease rate in 1999 was 4.5% higher than in 1998 (4,6) (61.4/100,000 or 90,000 newly identified cases," << endl; 
cout << "4,681 [5%] in children <14 years of age [6,7]). More than 25,000 persons die of TB each year. The highest" << endl; 
cout << "rates are reported from Tuva, Khakassia, Khakassia, and the Tyumen, Jewish Autonomic, Perm, and Novosibirisk" << endl; 
cout << "regions, with case rates of 266.4, 212.4, 146.8, 142.3, 137.6, 131.9, and 131 per 100,000, respectively." << endl; 
cout << "These data from the Ministry of Health likely do not reflect the disease rate among prisoners, who numbered" << endl;
cout << "approximately 974,000 in September 2000 (www.prison.org). The TB death rate, however, has remained stable or" << endl; 
cout << "declined, with 16.7 per 100,000 in 1997 and 15.4 in 1998." << endl;
cout << "Brucellosis-" << endl;
cout << "In the 1990s, 300 to 700 cases of brucellosis occurred each year. No apparent long-term trends were observed." << endl;
cout << "Anthrax-" << endl;
cout << "Although many natural foci are located in Russia, the number of anthrax cases per year during the past 10 years" << endl;
cout << "has never exceeded 100 (e.g., 37 in 1998, 45 in 1999)." << endl;
cout << "Diphtheria-" << endl;
cout << "In the former Soviet Union, diphtheria was controlled through vaccination. The large increase in cases in the" << endl; 
cout << "early 1990s was mainly due to low vaccination coverage because of a new policy, under which vaccination was" << endl; 
cout << "not recommended for large segments of the population (3). This policy, which was introduced in the beginning" << endl; 
cout << "of the 1990s, was rescinded in the mid-1990s. In addition, a widespread advertising campaign on television and" << endl;
cout << "other mass media about the adverse effects of vaccination caused widespread reluctance of the public to be vaccinated." << endl;
cout << "As a result, by 1994, the disease rate had increased almost 30-fold. Since then, a mass vaccination campaign has been" << endl; 
cout << "implemented in the most heavily affected regions, and by 1999 diphtheria rates had returned to the levels recorded" << endl;
cout << "in the early 1990s. Ministry of Health statistics (Table; 4,5) demonstrate a sharp decrease in diphtheria, which" << endl; 
cout << "was achieved through an organized, voluntary immunization campaign of a scale unprecedented in post-Soviet Russia." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Russia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Russia();
system("cls");     
}
else cin >> action;
     }

else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Russia();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}




int China(){
system("cls");
int action;
char action1;
cout << "You have chosen to learn more about Medecine in China." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in China" << endl;
cout << endl;
cout << "2. Types of treatments in China." << endl;
cout << endl;
cout << "3. Quality of treatments in China." << endl;
cout << "4. Diseases in China" << endl;
cout << endl;
cout << "5. " << endl;
cin >> action;
cin >> action;
if (action== 1){
             system("cls");
cout << "China is undertaking a reform on its health care system. The New Rural Co-operative Medical Care System (NRCMCS)" << endl;
cout << "is a 2005 initiative to overhaul the healthcare system, particularly intended to make it more affordable for the" << endl;
cout << "rural poor  . Under the NRCMCS, the annual cost of medical coverage is 50 yuan (US$7) per person  . Of that," << endl;
cout << "20 yuan is paid in by the central government, 20 yuan by the provincial government and a contribution of 10 yuan" << endl;
cout << "is made by the patient  . As of September 2007, around 80% of the rural population of China had signed up" << endl;
cout << "(about 685 million people) . The system is tiered, depending on the location . If patients go to a small hospital" << endl;
cout << "or clinic in their local town, the system will cover roughly 70-80% of their bill  . If the patient visits a county" << endl;
cout << "clinic, the percentage of the cost being covered falls to about 60%  . If the patient requires a specialist in a" << endl; 
cout << "modern city hospital, the plan would cover about 30% of the bill" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about China press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << China();
system("cls");    
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "China is the only country in the world where Western medicine and traditional medicine are practised alongside each" << endl;
cout << "other at every level of the healthcare system. Traditional Chinese medicine has a unique theoretical and practical" << endl;
cout << "approach to the treatment of disease, which has developed over thousands of years. Traditional treatments include" << endl;
cout << "herbal remedies, acupuncture, acupressure and massage, and moxibustion. They account for around 40% of all health" << endl;
cout << "care delivered in China. The current government policy of expansion of traditional facilities and manpower is being" << endl;
cout << "questioned because many hospitals using traditional Chinese medicine are already underutilised and depend on government" << endl;
cout << "subsidies for survival. Research priorities include randomised controlled trials of common treatments and analysis of" << endl;
cout << "the active agents in herbal remedies. As more studies show the clinical effectiveness of traditional Chinese medicine" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about China press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << China();
system("cls");     
}
else cin >> action;
}
else if (action == 3){
system("cls");
cout << "Demand for Quality Healthcare: China has a tremendous need for high quality health care, and a huge number of high-net worth" << endl;
cout << "and emerging wealth individuals with the money to pay for it.  Within China, where do people go for the best medical treatment?" << endl; 
cout << "World Anti-Aging™ (W.A.) has identified this need that China has for integrative health care known as anti-aging medicine." << endl;
cout << " Anti-aging medicine, also known as regenerative medicine, makes it possible to slow, stop and substantially reverse the" << endl; 
cout << "physical deterioration and diseases which are commonly considered “natural” aging. Such progress allows not just for" << endl; 
cout << "improved looks and an extended existence, but for the enjoyment of optimum wellness and quality of life." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about China press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << China();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4){
cout << "Chronic diseases, non-communicable diseases now account for an estimated 80% of total deaths and 70% of" << endl; 
cout << "disability-adjusted life years (DALYs) lost in China. Cardiovascular diseases, chronic respiratory disease" << endl;
cout << "and cancer are the leading causes of both death and the burden of disease, and exposure to risk factors is high:" << endl;
cout << "more than 300 million men smoke cigarettes and 160 million adults are hypertensive, most of whom are not being treated." << endl;
cout << "An obesity epidemic is imminent, with more than 20% of children aged 7–17 years in big cities now overweight or obese." << endl;
cout << "Rates of death from chronic disease in middle-aged people are higher in China than in some high-income countries." << endl;
cout << "The government of the People's Republic of China must confront these major challenges in order to stave off further" << endl;
cout << "deterioration. In China, as in many other parts of the world, the government has focused on communicable diseases—however," << endl;
cout << "China now has a double burden of disease. The prevention of chronic diseases is now receiving a national response commensurate" << endl;
cout << "with the burden. The national cancer prevention and control plan (2004–10) is being implemented, and a national chronic" << endl;
cout << "disease prevention and control plan has been completed (in late-2005). Progress has been made in some areas, with current" << endl;
cout << "smoking prevalence in men declining at about 1% per year for a decade, and even better results in large demonstration programs." << endl;
cout << "Much remains to be done, and resources and sustainability are major issues. However, the surveillance and intervention" << endl;
cout << "mechanisms needed to ameliorate the increasing burden of chronic diseases are developing rapidly, taking account of the" << endl;
cout << "lessons learned over the past two decades." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about China press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << China();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about China press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << China();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}



int Australia(){
system("cls");
int action;
char action1;
cout << "You have chosen to learn more about Medecine in Australia." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in Australia" << endl;
cout << endl;
cout << "2. Types of treatments in Australia." << endl;
cout << endl;
cout << "3. Quality of treatments in Australia." << endl;
cout << "4. Diseases in Australia" << endl;
cout << endl;
cout << "5. " << endl;
cin >> action;
cin >> action;
if (action== 1){
             system("cls");
cout << "Australia spends about 8.5% of gross domestic product on healthcare, which compares favorably to" << endl; 
cout << "spending in countries such as the United States (13.7%), Canada (9.5%), and England (7.0%)." << endl;
cout << "Government programs underpin the key aspects of healthcare. Medicare, which is funded out of general" << endl; 
cout << "tax revenue, pays for hospital and medical services. Medicare covers all Australians, pays the entire" << endl; 
cout << "cost of treatment in a public hospital, and reimburses for visits to doctors." << endl;
cout << "There is no limit on fees charged by doctors. There is, however, a government-set fee schedule." << endl; 
cout << "Doctors can bill patients or send their bills directly to the government insurance authority, the" << endl; 
cout << "Health Insurance Commission (HIC). If sent to the HIC, the payment is 85% of the government-set fee for" << endl; 
cout << "out-of-hospital expenses and 75% of the government set fee for in-hospital services; the money is paid" << endl; 
cout << "directly to the doctor, and the doctor is not allowed to charge the patient an additional fee. About 75%" << endl;
cout << "of family physician services are directly billed to the HIC. If a doctor bills the patient directly, the" << endl; 
cout << "patient then applies for the rebate of the government set fee." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << "or to go back to learn more about Australia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Australia();
system("cls");     
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "Message therapy is an ancient form of natural medicine that we still use today. Chinese records show" << endl; 
cout << "that this type of therapy has been used for more than 3,000 years. Records of massage therapy are" << endl; 
cout << "also prevalent in other ancient cultures such as the Hindu from India, the Egyptians from the time of" << endl; 
cout << "the Pharos, and in the Persian culture of the Middle East. The papers of Hippocrates detail how rubbing" << endl; 
cout << "and friction contribute to the circulatory well being of the body." << endl;
cout << "One of the best chiropractic care facilities in Australia is Spinal Care Australia. They can be found" << endl; 
cout << "in Brisbane and have been providing stress management, pain relief, and other treatments for their" << endl; 
cout << "clients for more than 5 years. Spinal Care Australia promotes safe, non-invasive, and healthy treatments" << endl; 
cout << "administered by their knowledgeable and friendly staff." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Australia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Australia();
system("cls");     
}
else cin >> action;
}
else if (action == 3){
system("cls");
cout << "The rapid growth is largely due to a growing demand from the public, with reportedly more than 50% of" << endl;
cout << "Australians using herbal or complementary medicines. One reason for this growth is a strong desire" << endl;
cout << "from people to take greater control of their own health and well being. This can be achieved through" << endl;
cout << "consultation with an appropriately trained practitioner and through methods such as improving nutrition," << endl;
cout << "or changes in lifestyle techniques such as increasing exercise and reducing stress. Another reason is the" << endl;
cout << "perceived or real need to avoid the unwanted side effects of conventional medical drugs." << endl;
cout << "What is alternative and complementary medicine?" << endl;
cout << "Many terms have been used for this growing field of medicine. Natural therapies, holistic medicine," << endl;
cout << "naturopathy, complementary medicine and alternative therapies are some of the terms which have been" << endl;
cout << "used to describe the broad range of modalities incorporated in this field, the more prominent of which" << endl;
cout << "are herbal medicine, nutrition, massage and homeopathy. Within each of these fields there are further" << endl;
cout << "different forms. For example with herbal medicine there is western herbal medicine, Traditional Chinese" << endl;
cout << "Medicine and Ayurveda, each with its own particular philosophy and treatment regime. Forms of massage" << endl;
cout << "include reflexology, shiatsu, Reiki and the Bowen and Alexander techniques. Other forms of treatment" << endl;
cout << "include acupuncture, iridology, Bach flowers, aromatherapy and gem therapy." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Australia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Australia();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4){
cout << "It was the wonder building product of the post World War 2 years; strong, light, durable, waterproof" << endl;
cout << "and fireproof, and a good insulator. Chemists knew it as a group of fibrous hydrated mineral silicates" << endl;
cout << "(including chrysotile, amosite, anthophyllite, and crocidolite) mined from deep underground. But" << endl;
cout << "collectively, these substances were more widely known as asbestos." << endl;
cout << "Between 1945 and 1980 in Australia, asbestos was widely used in the construction industry, as well" << endl;
cout << "as in shipyards, power stations, boiler makers and plumbing. It was a staple of home building" << endl;
cout << "too – used in fibro cement, insulation, fireproofing, pipes, paint, floor coverings, ceiling tiles," << endl;
cout << "and roofing materials. Such was the local – and global demand – for asbestos that it was mined in Australia" << endl;
cout << "and exported. But there was a problem. Asbestos is highly toxic, causing a range of lung diseases, that" << endl; 
cout << "are slow to develop but in many cases deadly. Inhaling the fibres can cause a fibrous stiffening and shrinking" << endl; 
cout << "of the lung, as well as lung cancer, particularly the incurable, rapidly-growing lung cancer known as mesothelioma." << endl;
cout << "The link between asbestos and lung disease was known in the early 1900s. Yet, despite warnings from health" << endl; 
cout << "authorities, mining companies allowed their workers to be exposed to it, and industries that used asbestos in" << endl; 
cout << "their manufacturing processes did nothing to protect their workers from its dangers." << endl;
cout << "It wasn't until the mid 1970s that the wider public was alerted to the dangers of asbestos. Gradually" << endl; 
cout << "asbestos mining was phased out, and industries replaced asbestos with alternative products like fibreglass." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Australia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Australia();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about australia press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Austalia();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}




int Africa(){
system("cls");
int action;
cout << "You have chosen to learn more about Medecine in South Africa." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in South Africa." << endl;
cout << endl;
cout << "2. Types of treatments in South Africa." << endl;
cout << endl;
cout << "3. Quality of treatments in South Africa." << endl;
cout << "4. Diseases in South Africa" << endl;
cout << endl;
cout << "5. " << endl;
cin >> action;
cin >> action;
if (action== 1){
system("cls");
cout << "South Africa's health system consists of a large public sector and a smaller," << endl;
cout << "but fast-growing private sector. Health care varies from the most basic primary health care " << endl;
cout << "offered free by the state, to highly specialised hi-tech health services" << endl; 
cout << "available in the private sector for those who can afford it." << endl;
cout << "The public sector is under-resourced and over-used, while the mushrooming " << endl;
cout << "private sector, run largely on commercial lines, caters to middle- and high-income" << endl;
cout << "earners who tend to be members of medical schemes (18% of the population)," << endl;
cout << "and to foreigners looking for top-quality surgical procedures at relatively affordable prices." << endl;
cout << "The private sector also attracts most of the country's health professionals" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about South Africa press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Africa();
system("cls");     
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "Traditional healers are a very caring people, and extraordinarily skilled in psychotherapy and" << endl; 
cout << "counselling. Some of them do a damn good job. Of course there are certain horrible ones who poison" << endl; 
cout << "their patients at every turn, said Professor Ralph Kirsch of the Department of Medicine in the" << endl; 
cout << "University of Cape Town Medical School. Traditional healers existed in South Africa before its" << endl; 
cout << "colonisation by the Dutch in the 17th century. They have flourished in the face of competition from" << endl; 
cout << "modern medicine. About 200000 traditional healers practise in South Africa, compared with 25000 doctors" << endl; 
cout << "of modern medicine; 80% of the black population use the services of traditional healers.1 Traditional" << endl; 
cout << "healers are enshrined in the minds of the people and respected in their community, and they are often its" << endl;
cout << "opinion leaders." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about South Africa press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Africa();
system("cls");     
}
else cin >> action;
}
else if (action == 3){
system("cls");
cout << "South Africa has become an extremely popular medical tourism destination thanks to the combination of low cost" << endl;
cout << "surgery and the diversity of holiday options available. There are many medical providers who will arrange your" << endl;
cout << "medical requirements in this beautiful country but you may be able to find cheaper options by undertaking your" << endl;
cout << "own research. Medical surgery in South Africa is rapidly growing industry and many British people are saving" << endl; 
cout << "thousands of pounds on procedures such as face lifts breast augmentations and liposuction. If you are considering" << endl; 
cout << "medical treatments in South Africa you should weigh up your options and compare the costs with those of other countries" << endl; 
cout << "that offer the same treatments in order to find the best package to suit your budget." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about South Africa press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Africa();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4){
cout << "Over three million people living with HIV/AIDS in the developing world receive antiretroviral therapy (ART)." << endl; 
cout << "However, the medicines and diagnostic tools available are inadequate to respond fully to their needs. In addition," << endl; 
cout << "seven million people are in need of treatment and are still waiting for access." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}



int Brazil(){
system("cls");
int action;
char action1;
cout << "You have chosen to learn more about Medecine in Brazil." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in Brazil." << endl;
cout << endl;
cout << "2. types of treatments in Brazil." << endl;
cout << endl;
cout << "3. Quality of treatments in Brazil." << endl;
cout << "4. Diseases in Brazil" << endl;
cout << "5. " << endl;
cin >> action;
if (action== 1){
             system("cls");
cout << "Brazil has great geopolitical importance because of its size,environmental resources," << endl;
cout << "and potential economic power. The organisation of its health care system reflects" << endl; 
cout << "the schisms within Brazilian society. High technology private care is available" << endl;
cout << "to the rich and inadequate public care to the poor. Limited financial resources" << endl; 
cout << "have been overconcentrated on health care in the hospital sector and health professionals" << endl;
cout << "are generally inappropriately trained to meet the needs of the community. However, recent" << endl; 
cout << "changes in the organisation of health care are taking power away from federal government" << endl;
cout << "to state and local authorities. This should help the process of reform, but many vested" << endl;
cout << "interests remain to be overcome. A link programme between Britain and Brazil focusing" << endl;
cout << "on primary care has resulted in exchange of ideas and staff between the two countries." << endl; 
cout << "If primary care in Brazil can be improved it could help to narrow the health divide between" << endl;
cout << "rich and poor." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "It is said that Spirit Doctors work through mediums and lightworkers, and conduct powerful" << endl;
cout << "aura cleansings and chakra balancing. They are believed to infuse drinking water with" << endl; 
cout << "specific vibrations needed by each person for his/her individual healing. You will visit" << endl; 
cout << "centers where each day hundreds of local for attention to their physical illnesses. During" << endl; 
cout << "each session mediums are believed to raise the vibrations for each group entering the healing" << endl; 
cout << "area, and a physical effects medium is said to allow his or her body to be used by doctors from" << endl; 
cout << "the spirit world to conduct surgeries and healings. Visitors to the healing centers are asked to" << endl; 
cout << "wear white cotton clothing as this allows for greater contact with the spirit realms. They also" << endl;
cout << "are asked to eat only vegetarian food to purify their bodies in preparation for healing sessions." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}cin >> action;
}
else if (action == 3){
system("cls");
cout << "Brazil is internationally recognized as an important reference center in the many areas of 
cout << "medicine such as cosmetic and reconstructive surgery. Excellence in providing medical and 
cout << "surgical services allied with much lower costs makes Brazil the only possible destination 
cout << "of many visitors from all over the world who search for better medical procedures.

cout << "In the area of cosmetic medicine, Brazil is considered one of the precursors of modern cosmetic" << endl; 
cout << "and reconstructive treatments and surgery. The pioneer was Dr. Ivo Pitanguy, from Rio de Janeiro," << endl; 
cout << "in the seventies. Since then, São Paulo, due to its economical leadership, invested in facilities," << endl; 
cout << "training of doctors and staff, researches and the development of innovative surgical procedures and" << endl; 
cout << "is today the reference in this area.Due to constant advances in technology, esthetical and reconstructive" << endl; 
cout << "treatments are extended to other areas of conventional medicine so that the patient can feel more comfortable" << endl; 
cout << "with his looks and adapted to the requirements of our modern way of life." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4){
cout << "Leprosy-" << endl;
cout << "Leprosy remains a serious problem in Brazil's high poverty areas, where the disease is" << endl; 
cout << "spreading most rapidly. In October 1996, an average of 100 new cases were being reported" << endl; 
cout << "each day. As many as half a million Brazilians are afflicted with leprosy" << endl;

cout << "Aids-" << endl;
cout << "Control measures have proven effective in reducing the prevalence and outbreak of" << endl; 
cout << "other infectious and endemic diseases, including cholera, Chagas' disease (American trypanosomiasis)," << endl; 
cout << "yellow fever, and schistosomiasis (bilharzia). However, the number of registered cases of malaria," << endl; 
cout << "which 42.9 percent of the Brazilian population is at risk of contracting (mainly in the Amazon region)," << endl; 
cout << "grew from 52,000 cases per year in 1970 to about 600,000 in the 1980s, with some improvement since then." << endl; 
cout << "Other communicable diseases either have been reintroduced, as in the case of dengue (breakbone fever) since 1986." << endl;
cout << "Infectious tropical diseases reflect poor sanitary conditions as well as discrepancies in the standard of living" << endl; 
cout << "between Northern and Southern Brazil, where such diseases ranked third and last, respectively, among the six leading" << endl;
cout << "causes of death in 1989." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Brazil();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}


int Jordan(){
system("cls");
int action;
char action1;
cout << "You have chosen to learn more about Medecine in Brazil." << endl;
cout << endl;
cout << "Now what do you want to learn about?" << endl;
cout << endl;
cout << "1. Health Care in Jordan." << endl;
cout << endl;
cout << "2. types of treatments in Jordan." << endl;
cout << endl;
cout << "3. Quality of treatments in Jordan." << endl;
cout << "4. Diseases in Jordan" << endl;
cout << "5. " << endl;
cin >> action;
if (action== 1){
             system("cls");
cout << "In 1987 the Ministry of Health and the Jordan Medical Association, concerned about high unemployment among" << endl;
cout << "physicians, put forth various suggestions. These included opening more clinics in rural areas and assigning" << endl;
cout << "physicians to schools, colleges, and large industrial concerns. Other health care professions showed moderate" << endl;
cout << "increases; the number of government-employed dentists, for example, increased from 75 to 110. Pharmacists, a" << endl;
cout << "profession increasingly entered by women, nearly tripled in number from thirty-eight in 1983 to ninety-six in 1987." << endl;
cout << "Government-employed nurses increased from 292 to 434 over the same period. In the early 1980s, Jordan had" << endl;
cout << "thirty-five hospitals, of which about 40 percent were state run. A number of other health facilities scattered" << endl;
cout << "throughout the country included health centers, village clinics, maternal and child care centers, tuberculosis" << endl;
cout << "centers, and school health services. In 1986 government health expenditures represented 3.8 percent of the" << endl; 
cout << "national budget. " << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Jordan press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Jordan();
system("cls");     
}
else cin >> action;
}
else if (action == 2){
system("cls");
cout << "To assess the current situation of sales and uses of herbal medicines in Jordan, more than 100 herbalists" << endl;
cout << "throughout the country were interviewed. The collected data included the types of herbs present in the market," << endl;
cout << "the recommendations made by the herbalists in the treatment of ailments, the level of education and training" << endl;
cout << "of the herbalists, and miscellaneous observations. One hundred and fifty medicinal plant species were present" << endl;
cout << "in the local market. Based on their availability in the market and on the herbalists’ recommendations, 9 plant" << endl;
cout << "species were considered very common and 17 were considered as common. The survey indicated that most of the" << endl;
cout << "herbalists were not educated or trained in the field of herbal medicine except for their expertise gained from" << endl;
cout << "their predecessor, none were licensed for this particular purpose; several odd or unprecedented recommendations" << endl;
cout << "were passed to the customers. This survey emphasizes the necessity of proper handling of herbal medicines that" << endl;
cout << "requires proper regulations and licensing." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Jordan press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Jordan();
system("cls");     
}cin >> action;
}
else if (action == 3){
system("cls");
cout << "The Jordan Hospital & Medical Center, located in Amman, Jordan, offers multiple medical departments and outpatient" << endl;
cout << "clinics as well as specialized therapeutic units, intensive care, physiotherapy, nuclear medicine and internal" << endl;
cout << "medicine departments, pediatrics, obstetrics and gynecology as well as the most recent procedures and techniques" << endl;
cout << "in general surgical fields." << endl; 
cout << "Jordan Hospital Treatments And Qualifications" << endl;
cout << "The Jordan Hospital & medical center is recognized as a postgraduate medical education and training facility," << endl;
cout << "and advanced medical facility focusing on multi specialty care including:" << endl;
cout << "Obstetrics and gynecology" << endl;
cout << "Internal medicine" << endl;
cout << "Cardiovascular and Venuos disease" << endl;
cout << "Hematology" << endl;
cout << "Oncology" << endl;
cout << "Endocrinology" << endl;
cout << "Infectious diseases" << endl;
cout << "Organ transplantation" << endl;
cout << "Plastic and reconstructive surgery" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Brazil press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Jordan();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 4){
cout << "There was a study that was conducted to identify factors associated with periodontal disease in a Jordanian population using" << endl;
cout << "principal component and factor analysis techniques. Subjects were 603 dentate patients aged 15-65 years attending" << endl;
cout << "dental teaching clinics at the Jordan University of Science and Technology. Their oral hygiene and periodontal" << endl;
cout << "status were assessed using plaque index, gingival index, probing pocket depth, clinical attachment level, gingival" << endl;
cout << "recession, and number of missing teeth. Factor and principal component analysis and binary logistic regression were" << endl;
cout << "conducted to identify factors related to periodontal disease. Probing pocket depth, clinical attachment level," << endl;
cout << "gingival recession, and number of missing teeth were sorted as the same factor and could be combined in one scale" << endl;
cout << "to measure the severity of periodontal disease. On the other hand, plaque index and gingival index were sorted as" << endl;
cout << "another factor and could be combined in another scale to correlate between oral hygiene and gingival status. The" << endl;
cout << "results demonstrated that increased age, low level of education, increased plaque index score, not brushing teeth," << endl;
cout << "smoking more than 15 pack-years, and having diabetes were significantly associated with increased severity of" << endl;
cout << "periodontal disease. In conclusion, it was possible to form a standard scale, based on linear combinations" << endl;
cout << "of periodontal indices and parameters, to measure the severity of periodontal disease and determine its" << endl;
cout << "risk indicators." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Jordan press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Jordan();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}
else if (action == 5)
{
cout << "" << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cout << "or to go back to learn more about Jordan press 2 and then enter." << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else if (action == 2){
cout << Jordan();
system("cls");     
}
else cin >> action;
     }
else cin >> action;
}


int malpractice(){
int action;
system("cls");
cout << "What i found out is that in these countries, these laws are almost the same." << endl;
cout << "Just that they may be enforced differently... but basically this is the law:" << endl;
cout << "If any types of medical negligence occur by the doctor, health care" << endl;
cout << "professionals or nurse. A medical malpractice can be a sever result" << endl;
cout << "from a minor injury to death. To cover the injury cost the medical" << endl;
cout << "facilities maintains some insurance, policy but as a patient or victim" << endl;
cout << "someone can also claim for the injury cost by:" << endl;
cout << "Filing a lawsuit against the doctor, nurse, health care professionals or" << endl;
cout << "hospital." << endl;
cout << endl;
cout << endl;
cout << "to go back to the main menu, press 1, and then enter." << endl;
cout << endl;
cin >> action;
if (action == 1){
cout << Mainmenu();
system("cls");
}
else cin >> action;
}              
              
              



int Mainmenu(){
system("cls");
int action;
char action1;
 cout << "Welcome to my Quarter Project." << endl;
 cout << "What would you like to learn more about?" << endl;
 cout << "1. Medecine in russia." << endl;
 cout << "2. Medecine in China." << endl;
 cout << "3. Medecine in Australia." << endl;
 cout << "4. Medecine in South Africa" << endl;
 cout << "5. Medecine in Brazil." << endl;
 cout << "6. Medecine in Jordan" << endl;
 cout << "7. What happens when a doctor commits malpractice" << endl;
 cout << "8. View my Bibliography" << endl;
 cin >> action;
 if (action == 1) cout << Europe();
 else if (action == 2) cout << China();
 else if (action == 3) cout << Australia();
 else if (action == 4) cout << Africa;
 else if (action == 5) cout << Brazil();
 else if (action == 6) cout << Jordan();
 else if (action == 7) cout << malpractice();
 else if (action == 8) cout << Bibliography();
else {cin >> action;}



}




int main()
{
int action;
char action1;
cout << Mainmenu();

 system("pause");
 return 0;

}

I cannot help you if you refuse to indent your code.

Also, if you indent your code properly you might find out what is wrong by yourself.

oh well im sorry it just looks better this way to me i even showed you where the errors are so i dont see why thats a problem

oh well im sorry it just looks better this way to me i even showed you where the errors are so i dont see why thats a problem

If that code looks better to you than properly indented code, then you may as well expect to have lots of problems with missing braces and parentheses and very few people that are willing to help you because it's impossible to read.

Good Luck

728,729,730,731 requires [TEX];[/TEX] to end the lines.

Hope this fixes your problem.

I am giving this help because it immediately stood out in a compiler.

If you want more help, indent your code properly.

well i figured out what the problem was it was i had an extra:

else cin >> action;
}

after alot of the code but anyway i figured it out thanks xD

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.