I am trying to make a program that will list all the National Heroes of our Country. We used the switch statement.

#include "stdafx.h"
#include "iostream"
#include "stdio.h"
#include "conio.h"
using namespace std;

int main()
{
int choice,desc;
char repeat;

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";

cout<<"Enter the number of your Choice:\t";
cin>>choice;

switch(choice)
{
case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era.";
break;

case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary."; 
break;

case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War.";
break;

case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader. ;
break;

default : cout<<"\nInvalid Choice!";
}
getch();
return 0;
}

What I need is, on how can make it repeat another choice after you've chosen someone.

Like for example I've chosen choice 1 Jose Rizal, then I want to choose again another hero, How can I do that?

PLEASE I REALLY NEED YOUR HELP. THANK YOU VERY MUCH IN ADVANCE.
ANY HELP WILL BE APPRECIATED. THANKS.

just tell me if you want me to put my entire code in here. Thank You.

You mean after the user chooses one hero and after that he should be able to choose another hero, right? If yes then this should work for you :

#include "stdafx.h"
#include "iostream"
#include "stdio.h"
#include "conio.h"
using namespace std;

int main()
{
int choice,desc;
char repeat;

while(true)
{

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";

cout<<"Enter the number of your Choice:\t";
cin>>choice;

switch(choice)
{
case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era.";
break;

case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary."; 
break;

case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War.";
break;

case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader." ;
break;

default : cout<<"\nInvalid Choice!";
}

cout << "\n";
}

getch();
return 0;
}

By the way, you can modify the While loop how ever you like, right now i simply made it to loop for infinity

YES!
please.. is it possible?
if so, How?
please, I really need your help.

Sorry for the late reply, I'm also searching for ways in the internet.

Put the entire switch statement in a while loop saying:

while(choice != 4)

That way, the switch menu will keep repeating itself til the user enters 4, also add an extra option in your menu called exit. It should then look like this:

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";
cout<<"[4]Exit\n";

And of course your switch will be inside the while loop.

It didn't work. :(
All it did is to print out the title (which is Philippine National Heroes) infinitely, and I can't even make a choice.

This is the real code that I am working on, it's kinda long that's why I just used an short example of this in my first post:

#include "stdafx.h"
#include "iostream"
#include "stdio.h"
#include "conio.h"
using namespace std;

int main()
{
	int choice,desc;

	while(true)

	cout<<"\t\t\t\tPhilippine National Heroes\n\n";
	cout<<"[1]Dr.Jose Rizal\n";
	cout<<"[2]Andres Bonifacio\n";
	cout<<"[3]General Gregorio Del Pilar\n";
	cout<<"[4]General Emilio Aguinaldo\n";
	cout<<"[5]Apolinario Mabini\n";
	cout<<"[6]GOMBURZA\n";
	cout<<"[7]Trece Martirez\n";
	cout<<"[8]Emilio Jacinto\n";
	cout<<"[9]General Antonio Luna\n";
	cout<<"[10]Melchora Aquino(Tandang Sora)\n";
	cout<<"[11]Graciano Lopez Jaena\n";
	cout<<"[12]Panday Pira\n";
	cout<<"[13]Mariano Ponce\n";
	cout<<"[14]Gregoria De Jesus\n";
	cout<<"[15]Fernando Ma. Guerrero\n";
	cout<<"[16]Felipe Agoncillo\n";
	cout<<"[17]Rafael Palma\n";
	cout<<"[18]Juan Luna\n";
	cout<<"[19]Marcelo H. Del Pilar\n";
	cout<<"[20]Leona Florentino\n";
	cout<<"[21]Pedro Paterno\n";
	cout<<"[22]Isabelo Delos Reyes\n";
	cout<<"[23]Artemio Ricarte\n";
	cout<<"[24]Jose Palma\n";
	cout<<"[25]Lakandola\n";
	cout<<"[26]Rajah Soliman\n";
	cout<<"[27]Leonor Rivera\n";
	cout<<"[28]Marcela Marino Agoncillo\n";
	cout<<"[29]Galicano Apacible\n";
	cout<<"[30]Jose Ma. Panganiban\n";
	cout<<"[31]Diego Silang\n";
	cout<<"[32]Maria Josefa Gabriela Silang\n";
	cout<<"[33]Lapu-Lapu\n";
	cout<<"[34]Francisco Dagohoy\n";
	cout<<"[35]Epifanio Delos Santos\n";
	cout<<"[36]Francisco Baltazar\n";
	cout<<"[37]Teresa Magbanua\n";
	cout<<"[38]Trinidad Tecson\n";
	cout<<"[39]Agueda Esteban\n";
	cout<<"[40]Marina Dizon\n";
	cout<<"[41]General Francisco Makabulos\n";
	cout<<"[42]Julian Felipe\n";
	

	cout<<"Enter the number of your Choice:\t";
	cin>>choice;

	switch(choice)
	{
	case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
		    cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era. He is regarded as the foremost Filipino patriot and is listed as one of the national heroes of the Philippines by National Heroes Committee. His execution by the Spanish in 1896, a date marked annually as Rizal Day, a Philippine national holiday, was one of the causes of the Philippine Revolution.";
			break;

	case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
		    cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary. He was one of a founder and later the supreme leader of the Katipunan movement which sought the independence of the Philippines from Spanish colonial rule and started the Philippine Revolution. He is considered a de facto national hero of the Philippines. Bonifacio is also considered by some Filipino historians to be the first president of the Philippines, but he is not officially recognized as such.";
			break;

	case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
		    cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War. He is most known for his role and death at the Battle of Tirad Pass. Because of his youth, he was called the Boy General.";
			break;

	case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
		    cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader. He played an instrumental role during the Philippines' revolution against Spain, and the subsequent Philippine-American War or War of Philippine Independence that resisted American occupation.Aguinaldo became the Philippines' first President. He was also the youngest (at age 29) to have become the country's president, the longest-lived president (having survived to age 94) and the president to have outlived the most number of successors.";
			break;

	case 5: cout<<"\t\t\t\tAPOLINARIO MABINI\n\n";
		    cout<<"(July 23, 1864 — May 13, 1903) was a Filipino political philosopher and revolutionary who wrote a constitutional plan for the first Philippine republic of 1899-1901, and served as its first prime minister in 1899. In Philippine history texts, he is often referred to as the Sublime Paralytic and as the Brains of the Revolution. To his enemies and detractors, he is referred to as the Dark Chamber of the President.";
			break;

	case 6: cout<<"\t\t\t\tGOMBURZA\n\n";
		    cout<<"is an acronym denoting the surnames of the priests Mariano Gómez, José Apolonio Burgos, and Jacinto Zamora, three Filipino priests who were executed on 17 February 1872 at Bagumbayan in Manila, Philippines by Spanish colonial authorities on charges of subversion arising from the 1872 Cavite mutiny. Their execution left a profound effect on many Filipinos; José Rizal, the national hero, would dedicate his novel El filibusterismo to their memory.The uprising by workers in the Cavite Naval Yard was the pretext needed by the authorities to redress a perceived humiliation from the principal objective, José Burgos, who threatened the established order.";
			break;

	case 7: cout<<"\t\t\t\tTRECE MARTIREZ\n\n";
		    cout<<"were Filipino patriots in Cavite, Philippines who were executed by mustketry on September 11, 1896, for cooperating with the Katipunan during the Philippine Revolution against Spain. The city of Trece Martires in Cavite is named after them.";
			break;

	case 8: cout<<"\t\t\t\tEMILIO JACINTO\n\n";
		    cout<<"Born in Trozo,Tondo, Manila. Jacinto was the son of Mariano Jacinto and Josefa Dizon. Mariano died shortly after Emilio was born, forcing Josefa to send him to his uncle, Don José Dizon, so that he might have a better standard of living.Jacinto was fluent in both Spanish and Tagalog, but preferred to speak in Spanish. He attended San Juan de Letran College, and later transferred to the University of Santo Tomas to study law. He did not finish college and, at the age of 20, joined the secret society called Katipunan. He became the advisor on fiscal matters and secretary to Andrés Bonifacio. He was later known as Utak ng Katipunan..Jacinto also wrote for the Katipunan newspaper called Kalayaan. He wrote in the newspaper under the pen name Dimasilaw, and used the alias Pingkian in the Katipunan. Jacinto was the author of the Kartilya ng Katipunan as well.After Bonifacio's death, Jacinto pressed on the Katipunan's struggle. Like general Mariano Álvarez, he refused to join the forces of general Emilio Aguinaldo, the leader of the Katipunan's Magdalo faction. He contracted malaria and died in Magdalena, Laguna, at the age of 24. His remains were later transferred to the Manila North Cemetery.";
			break;

	case 9: cout<<"\t\t\t\tGENERAL ANTONIO LUNA\n\n";
		    cout<<"was a Filipino pharmacist and general who fought in the Philippine-American War. He was also the founder of the Philippines's first military academy.";
			break;

	case 10:cout<<"\t\t\t\tMELCHORA AQUINO(TANDANG SORA)\n\n";
		    cout<<"(January 6, 1812 – March 2, 1919) was a Filipina revolutionary who became known as Tandang Sora in the history of the Philippines because of her age when the Philippine Revolution broke out in 1896 (she was already 84 at the time). She gained the titles Grand Woman of the Revolution and the Mother of Balintawak for her heroic contributions to Philippine history.";
			break;

	case 11:cout<<"\t\t\t\tGRACIANO LOPEZ-JAENA\n\n";
		    cout<<"(December 18, 1856-January 20, 1896) was a Filipino journalist, orator, and revolutionary from Iloilo, well known for his written work, La SolidaridadHis parents sent López Jaena to Jaro which had been opened under the administration of Governor General Carlos María de la Torre. While studying at St. Vincent Ferrer Seminary in Jaro, López Jaena served as a secretary to an uncle named Claudio López who was the honorary vice consul of Portugal in Iloilo. His ambition of becoming a physician, convinced his parents that this was the better course of action. López Jaena sought enrollment at the University of Santo Tomas but was denied admission because the required Bachelor of Arts degree was not offered at the seminary in Jaro. However he was appointed to the San Juan de Dios Hospital as an apprentice. Unfortunately, due to financial problems, his parents could not afford to keep him in Manila. He returned to Iloilo and practiced medicine in communities.During this period, his visits with the poor and the common people began to stir feelings about the injustices that were common. At the age of 18 he wrote the satirical story Fray Botod which depicted a fat and lecherous priest. Botod’s false piety always had the Virgin and God on his lips no matter how unjust and underhanded his acts are.This naturally incurred the fury of the friars who knew that the story depicted them. Although it was not published a copy circulated in the region but the Friars could not prove that López Jaena was the author. However he got into trouble for refusing to testify that certain prisoners died of natural causes when it was obvious that they had died at the hands of the mayor of Pototan. López Jaena continued to agitate for justice and finally went to Spain when threats were made on his life.López Jaena sailed for Spain in 1879. There he was to become a leading literary and oratorical spokesman for the Philippine reformal issues. Philippine historians regard López Jaena, along with Marcelo H. del Pilar and José P. Rizal, as the triumvirate of Filipino propagandists. Of these three Ilustrados, López Jaena was the first to arrive and may have founded the genesis of the Propaganda movement.López Jaena pursued his medical studies at the University of Valencia but did not finish the course. Once Rizal approached Lopéz Jaena for not finishing his medical studies. Graciano replied, On the shoulders of slaves should not rest a doctor's cape. Rizal countermanded, The shoulders do not honor the doctor's cape, but the doctors cape honors the shoulders.He then moved to the field of journalism. Losing interest in politics and academic life, he soon enjoyed his life in Barcelona and Madrid. However, his friends would forgive him these indiscretions due to his appeal with words and oratory. Mariano Ponce who was another of the Filipino propagandists in Spain observed, ... a deafening ovation followed the close of the peroration, the ladies waved their kerchiefs wildly, and the men applauded frantically as they stood up from their seats in order to embrace the speaker.";
			break;

	case 12:cout<<"\t\t\t\tPANDAY PIRA\n\n";
		    cout<<"(1488–1576) was a Moro blacksmith who is acknowledged as The First Filipino Cannon-maker. His name literally translates as Blacksmith Pira, panday being the Filipino word for blacksmith.Panday Pira was a native of the southern islands of the Philippines. He migrated to Manila in 1508 and established a foundry on the northern bank of the Pasig River. Rajah Sulayman commissioned Panday Pira to cast the cannon that were mounted on the palisades surrounding his kingdom. In 1570, Spanish forces under the command of Martin de Goiti captured Manila and took these artillery pieces as war booty, presenting them to Miguel López de Legazpi, the first Spanish Governor-General of the Philippines.Legazpi eventually established a permanent Spanish settlement in Manila on May 19, 1571 and on June 3 of the same year, Rajah Sulayman waged the Battle of Bankusay Channel to re-capture his kingdom from the Spaniards. Rajah Sulayman failed in this and perished in the battle. Panday Pira then fled to Pampanga where he attempted to begin a new life in sitio Capalangan in the town of Apalit, working as a blacksmith forging farm implements. He was, however, summoned by Legazpi back to Manila and put to work forging cannons for the Spaniards. He established his foundry in what is now Santa Ana. Santiago de Vera, the sixth Governor-General, commissioned him to cast cannon for the defenses of a fortress he built, the fortress of Nuestra Señora de Guia (Spanish, Our Lady of Guidance), now called Intramuros. To the Spaniards, Panday Pira was known as Pandapira, and they exempted him from paying tribute and forced labor.In 1576, Panday Pira died at the age of 88. His death was a great loss to the Spaniards who had to petition the King of Spain for a blacksmith to take his place. It was not until 1584, that a Spanish blacksmith from Mexico arrived.";
			break;

	case 13:cout<<"\t\t\t\tMARIANO PONCE\n\n";
		    cout<<"(March 23, 1863 – May 23, 1918), was a Filipino physician, writer, and active member of the Propaganda Movement. In Spain, he was among the founders of La Solidaridad and Asociacion Hispano-Filipino. Among his significant works was Efemerides Filipinas, a column on historical events in the Philippines which appeared in La Oceania Española (1892–1893) and El Ideal (1911–1912). He wrote Ang Wika at Lahi (1917), a discussion on the importance of a national language. He served as Bulacan's representative to the National Assembly.";
		    break;

	case 14:cout<<"\t\t\t\tGREGORIA DE JESUS\n\n";
		    cout<<"(15 May 1875 – 15 March 1943), also known as Aling Oriang,[1] was the founder and vice-president of the women's chapter of the Katipunan of the Philippines. She was also the custodian of the documents and seal of the Katipunan. She married Andrés Bonifacio, the supremo of the Katipunan, and played a major role in the Philippine Revolution. She has one son from Andrés Bonifacio and five children from Julio Nakpil.";
			break;

	case 15:cout<<"\t\t\t\tFernando Ma. Guerrero\n\n";
		    cout<<"(1873 — 1929) was a Filipino politician, journalist, lawyer and polyglot who became a significant figure during the Philippine's golden period of Spanish literature, a period ranging from 1890 to the outbreak of World War II in 1940";
			break;

	case 16:cout<<"\t\t\t\tFELIPE AGONCILLO\n\n";
		    cout<<"(May 26, 1859 – September 29, 1941) was the Filipino lawyer representative to the negotiations in Paris that led to the Treaty of Paris (1898), ending the Spanish–American War and achieving him the title of outstanding first Filipino diplomat.As a family friend and adviser of General Emilio Aguinaldo and General Antonio Luna during the critical times of the revolution, Agoncillo has been active in participating during that era especially when he presided the Hong Kong Junta—a group of Filipino exiles who met to plan for future steps in achieving independence. His greatest contribution of the Philippine history was when he was assigned to negotiate foreign countries to secure the independence of the country considered as the most important assignment given by a General.";
			break;

	case 17:cout<<"\t\t\t\tRAFAEL PALMA\n\n";
		    cout<<"was a Filipino politician, Rizalian, reporter, writer, educator and a famous mason in Philippines. He also became the fourth President of the University of the Philippines.";
			break;

	case 18:cout<<"\t\t\t\tJUAN LUNA\n\n";
		    cout<<"(October 23, 1857 — December 7, 1899) was an Ilocano Filipino painter, sculptor and a political activist of the Philippine Revolution during the late 19th century. He became one of the first recognized Philippine artists.His winning the gold medal in the 1884 Madrid Exposition of Fine Arts, along with the silver win of fellow Filipino painter Félix Resurrección Hidalgo, prompted a celebration which was a major highlight in the memoirs of members of the Propaganda Movement, with the fellow Ilustrados toasting to the two painters' good health and citing their win as evidence that Filipinos and Spaniards were equals.Regarded for work done in the manner of the Spanish and French academies of his time, Luna painted literary and historical scenes, some with an underscore of political commentary. His allegorical works were inspired with classical balance, and often showed figures in theatrical poses.";
		    break;

	case 19:cout<<"\t\t\t\tMARCELO H. DEL PILAR\n\n";
            cout<<"(August 30, 1850 – July 4, 1896) was a Filipino writer, journalist, satirist, and revolutionary leader of the Philippine Revolution and one of the leading Ilustrado (Knowledgeable) propagandist of the Philippine War of Independence.He served as editor of the vernacular section of the Diariong Tagalog (Tagalog Newspaper), the first Philippine bilingual newspaper, in 1882. From 1890 to around 1895, he edited the newspaper La Solidaridad (Solidarity), mainly through his 150 essays and 66 editorials published under the nom de plume Plaridel.Del Pilar's militant and progressive outlook was derived from the classic enlightenment tradition of the French philosophes and the scientific empiricism of the European bourgeoisie. Part of this outlook was transmitted by freemasonry, to which del Pilar subscribed";
			break;

	case 20:cout<<"\t\t\t\tLEONA FLORENTINO\n\n";
		    cout<<"(April 19, 1849-October 4, 1884) was a Filipino poet in the Spanish and Ilocano languages. She is considered as the mother of Philippine women's literature and the bridge from oral to literary tradition.Born to a wealthy and prominent family in Vigan, Ilocos Sur, Florentino began to write her first verses in Ilocano at a young age. Despite her potential, she was not allowed to receive a university education because of her gender. Florentino was instead tutored by her mother, and then a series of private teachers. An educated Ilocano priest taught her advanced Spanish and encouraged her to develop her voice in poetry.Due to the feminist nature of her writings, Florentino was shunned by her husband and son, and so was forced to live alone in exile and separately from her family.Florentino married a politician named Elias de los Reyes at the age of 14, and they had five children, including Isabelo de los Reyes, who would later become a Filipino writer, activist and senator. She died at the age of 35.";
			break;

	case 21:cout<<"\t\t\t\tPEDRO PATERNO\n\n";
		    cout<<"also spelled Pedro Alejandro Paterno y Debera Ignacio (born on February 17, 1857 - died on April 26, 1911; in some references the birth date is February 27, 1858 while the death date is March 11, 1911) was a Filipino politician, as well as a poet and novelist.[3]His intervention on behalf of the Spanish led to the signing of the Pact of Biak-na-Bato on December 14, 1897, an account of which he published in 1910. Among his other works include the first novel written by a native Filipino, Ninay (1885), and the first Filipino collection of poems in Spanish, Sampaguitas y otras poesías varias (Jasmines and Other Poems), published in Madrid in 1880.";
			break;

	case 22:cout<<"\t\t\t\tISABELO DELOS REYES\n\n";
		    cout<<"also known as Don Belong (July 7, 1864 – October 10, 1938), was a prominent Filipino politician, writer and labor activist in the 19th and 20th centuries. He was the founder of the Aglipayan Church, an independent Philippine national church. For his writings and activism with labor unions, he was called the Father of Filipino Socialism.As a young man, he followed his mother's footsteps by initially turning to writing as a career; he won a prize at the age of 23 for his first book. He became a journalist, editor, and publisher in Manila, and was imprisoned in 1897 for revolutionary activities. He was deported to Spain, where he was jailed until 1898. While living and working in Madrid, he was influenced by the writings of European socialists and Marxists. Returning to the Philippines in 1901, he founded the first labor union in the country. He also was active in seeking independence from the United States. After serving in the Philippine Senate, he settled into private life and religious writing.";
			break;

	case 23:cout<<"\t\t\t\tARTEMIO RICARTE\n\n";
		    cout<<"(October 20, 1866 — July 31, 1945) was a Filipino general during the Philippine Revolution and the Philippine-American War. He is considered by the Armed Forces of the Philippines as the Father of the Philippine Army. Ricarte is also notable for never having taken an oath of allegiance to the United States government, which occupied the Philippines from 1898 to 1946.";
			break;

	case 24:cout<<"\t\t\t\tJOSE PALMA\n\n";
		    cout<<"(June 3, 1876-February 12, 1903) was a poet and soldier. He was on the staff of La Independencia at the time he wrote his Filipinas a patriotic poem in Spanish. It was published for the first time in the issue of the first anniversary of La Independencia on 3 September 1899. The poem fit the tune of the music of the Marcha Nacional Filipina, and since then became the national anthem of the country";
			break;

	case 25:cout<<"\t\t\t\tLAKANDOLA\n\n";
		    cout<<"often referred to simply by his title Lakandula, and later baptised Carlos Lacandula, was the Lakan (ruler) of the pre-colonial Philippine Kingdom of Tondo when the Spaniards first conquered the lands of the Pasig River delta in the 1570s. Another common variation of the name is Gatdula. He is sometimes erroneously referred to as Rajah Lakandula; the terms Rajah and Lakan have the same meaning therefore making the appellation redundant.Along with Rajah Matanda and Rajah Sulayman, he was one of three Rajahs who played significant roles in the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 26:cout<<"\t\t\t\tRAJAH SOLIMAN\n\n";
		    cout<<"(1558–1575) was the Muslim Rajah of Maynila, a kingdom at the mouth of the Pasig River where it meets Manila Bay, at the time the Spanish forces first came to Luzon.Sulayman resisted the Spanish forces, and thus, along with Rajah Matanda and Lakan Dula, was one of three Rajahs who played significant roles in the drama that was the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 27:cout<<"\t\t\t\tLEONOR RIVERA\n\n";
		    cout<<"(born in Camiling, Tarlac, died August 1893) was the childhood sweetheart, first cousin, and “lover by correspondence” of Philippine national hero José Rizal. Rivera was the “greatest influence” in preventing Rizal from falling in love with other women while Rizal was traveling outside the Philippines. Rivera's romantic relationship with Rizal lasted for eight years. She was immortalized by Rizal as the character María Clara in the Spanish-language novel Noli Me Tangere. Her original hometown is in Camiling,Tarlac.";
			break;

	case 28:cout<<"\t\t\t\tMARCELA MARINO AGONCILLO\n\n";
		    cout<<"(June 24, 1860 – May 30, 1946) also simply known as Marcela Agoncillo, was a Filipina renowned in Philippine history as the principal seamstress of the first and official flag of the Philippines, gaining her the title of Mother of the Philippine Flag.Agoncillo was a daughter of a rich family in her hometown of Taal, Batangas. Finishing her studies at Sta. Catalina College, she acquired her learning in music and feminine crafts. At the age of 30, Agoncillo married Filipino lawyer and jurist Don Felipe Agoncillo and bore him six children. Her marriage led to her important role in Philippine history. When her husband was exiled to Hong Kong during the outbreak of the Philippine Revolution, Agoncillo and the rest of the family joined him and temporarily resided there to avoid the anti-Filipino hostility of some foreign countries. While in Hong Kong, General Emilio Aguinaldo requested her to sew a flag that would represent their country. Agoncillo, her eldest daughter and a friend manually sewed the flag in accordance with General Aguinaldo's design which later became the official flag of the Philippines.While the flag itself is the perpetual legacy of Agoncillo, she is also commemorated through museums and monuments like the marker in Hong Kong (where her family temporarily sojourned), at her ancestral home in Taal, Batangas which has been turned into a museum, in paintings by notable painters as well as through other visual arts.";
			break;

	case 29:cout<<"\t\t\t\tGALICANO APACIBLE\n\n";
		    cout<<"(June 25, 1864 – March 2, 1949) was a Philippine politician. A cousin to Jose Rizal, he co-founded La Solidaridad and Nacionalista Party. He held the office of Governor of Batangas and was the representative of the first District of Batangas from 1909 to 1916. He is known for his piece To the American People, an Appeal, in which he tries to plead with the people of the United States to pressure its government not to invade his newly independent country.";
			break;

	case 30:cout<<"\t\t\t\tJOSE MA. PANGANIBAN\n\n";
		    cout<<"Bicolandia's Greatest Contribution to the Historic Campaign for Reforms.";
			break;

	case 31:cout<<"\t\t\t\tDIEGO SILANG\n\n";
		    cout<<"(December 16, 1730 – May 28, 1763) was a revolutionary leader who conspired with British forces to overthrow Spanish rule in the northern Philippines and establish an independent Ilocano nation. His revolt was fueled by grievances stemming from Spanish taxation and abuses, and by his belief in self-government, that the administration and leadership of the Roman Catholic Church and government in the Ilocos be invested in trained Ilocano officials.Born in Aringay, Pangasinan (an area in present-day Caba or Aringay, La Union), Silang's mother was Ilocano; his father was Pangasinense. Young Diego worked as a messenger for a local Castilian priest in Vigan, Ilocos Sur. Bright, passionate, and fluent in Spanish, he ferried correspondence from the Ilocos to Manila; journeys that gave him his first glimpse of colonial injustice and that planted the seed of rebellion.pain allied with France during the Seven Years' War, in opposition to Great Britain. The British in response sought to diminish the Spanish Empire. The seizure of Manila by British naval forces in October, 1762, and the subsequent surrender of the Spanish Philippines to Britain during the British occupation of the Philippines, inspired uprisings in the farthest north of Ilocos Norte and Cagayan, where anti-Spanish sentiments festered. Though Silang initially wanted to replace Spanish functionaries in the Ilocos with native-born officials and volunteered to head Ilocano forces against the British, desperate Spanish administrators instead transferred their powers to the Catholic Bishop of Nueva Segovia (Vigan), who rejected Silang's offer. Silang's group attacked the city and imprisoned its priests. He then began an association with the British who appointed him governor of the Ilocos on their behalf and promised him military reinforcement. The British force never materialized.Diego Silang was killed by one of his friends, a Spanish-Ilocano mestizo named Miguel Vicos, whom church authorities paid to assassinate Silang with the help of Pedro Becbec. He was 32 years old.After Silang's death, his Spanish-Ilocana mestiza wife, Josefa Gabriela, took command of the revolt and fought courageously. The Spanish sent a strong force against her. She was forced to retreat to Abra. Gabriela led her troops towards Vigan but was driven back. She fled again to Abra, where she was captured. Gabriela and her men were summarily hanged on September 20, 1763 she being hanged the last.";
			break;

	case 32:cout<<"\t\t\t\tMARIA JOSEFA GABRIELA SILANG\n\n";
		    cout<<"(March 19, 1731 – September 20, 1763) was the wife of the Ilocano insurgent leader, Diego Silang. Following Diego's assassination in 1763, she led the group for four months before she was captured and executed.Born in Barangay Caniogan, Santa, Ilocos Sur, Silang was a mestiza, of Spanish and Ilocano descent. The people of Abra do claim she was born in what is now Pidigan, Abra (those two places are not far from each other, and Abra was not incorporated as a province until early in the 20th century). She was adopted by a very wealthy businessman Tomás Millan, who later married her at the age of 20, but died after three years. In 1757, she re-married again, this time to 27-year-old Ilocano insurgent leader, Diego Silang. The groups’ goal was to ensure an independent Ilocos. She became one of his closest advisors, whenever the troops battle, Gabriela always went with them to give support and help with the battle, a major figure in her husband's collaboration with the British and the brief expulsion of Spanish officials from Vigan, Ilocos Sur during the British occupation of the Philippines.On May 28, 1763, two of her husband’s close friends Miguel Vicos and Pedro Becbec betrayed them, which resulted to Diego’s demise; he was assassinated by order of royal and church authorities in Manila. After her husband's death, she fled on horseback to her uncle Nicolás Cariño's residence in the mountains of Abra.Together with Cariño, and Sebatian Andaya and Manuel Flores, there she regrouped her troops, and rallied the Tingguian community to fight. Gabriela’s troops of 2000 fighters attacked the Spanish in Vigan on September 10, 1763. With a larger number of the Spanish troops, the 6000 men strong Spanish garrison was ready, with amassing Spanish, Tagalog, and Kapampangan soldiers, and Ilocano collaborators recruited from other regions to ambush her and rout her forces. Many were killed. She escaped, alongside Cariño and seven others, but later caught on September 20, 1763. They were summarily hanged in Vigan's plaza. She was the last to be hanged.";
			break;

	case 33:cout<<"\t\t\t\tLAPU LAPU\n\n";
		    cout<<"(1491–1542) was the ruler of Mactan, an island in the Visayas, Philippines, who is known as the first native of the archipelago to have resisted the Spanish colonization. He is now regarded as the first Filipino hero.On the morning of April 27, 1521, Lapu-Lapu led 1,500 Muslim Mactan warriors armed with barong, spears, kampilan and kalasag, in a battle against Portuguese explorer and conquistador Ferdinand Magellan who led a force of 49 Christian soldiers armed with guns in what would later be known as the Battle of Mactan. During the battle Magellan and several of his men were killed.He is regarded as a Muslim coming from the Tausug tribe as chronicled under the Sulu Sultanates. No clear evidence can be proven that he was an animist aside from mere speculation. He used a kampilan as mentioned by Antonio Pigafetta, a sword used by blue blood Muslims in the Philippines and Southeast Asia. The Philippine Government has officially acknowledged him as a Muslim warrior.The 1898 Philippine Declaration of Independence refers to Lapu-Lapu as Rey Kalipulako de Maktan (King Kalipulako of Mactan)";
			break;

	case 34:cout<<"\t\t\t\tFRANCISCO DAGOHOY\n\n";
		    cout<<"(born Francisco Sendrijas) was a Boholano who holds the distinction of having led the longest revolt in Philippine history, the Dagohoy Rebellion. This rebellion against the Spanish colonial government took place in the island of Bohol from 1744 to 1829, roughly 85 years.";
			break;

	case 35:cout<<"\t\t\t\tEPIFANIO DELOS SANTOS\n\n";
		    cout<<"A Man of Many talents The Former Highway 54 is now named after him(EDSA)";
			break;

	case 36:cout<<"\t\t\t\tFRANCISCO BALTAZAR\n\n";
		    cout<<"(April 2, 1788 – February 20, 1862), known much more widely through his nom-de-plume Francisco Balagtas, was a prominent Filipino poet, and is widely considered as the Tagalog equivalent of William Shakespeare for his impact on Filipino literature. The famous epic, Florante at Laura, is regarded as his defining work.";
			break;

	case 37:cout<<"\t\t\t\tTERESA MAGBANUA\n\n";
		    cout<<" (October 13, 1868 – August 1947) earned the distinction of being the only woman to lead combat troops in the Visayas against Spanish and American forces. Born in Pototan, Iloilo, Philippines on 13 October 1868, to wealthy parents, she earned a teaching degree and taught in her hometown. Having come from a family of revolutionaries, she immediately volunteered her services to the motherland and became an exceptional horseman and marksman. Without the approval of her husband, she led a large group of men in the Battle of Barrio Yoting, Capiz in early December 1898. She outfought the Spanish troops at the Battle of Sapong Hills near Sara.She suffered greatly from the early death of her brothers General Pascual Magbanua and Elias Magbanua, at the hands of traitors.Fifty years later, her heroism was once again displayed when she helped finance a guerrilla resistance movement by the liberators together with the Allied Filipino soldiers of the 6th, 61st and 62nd Infantry Division of the Philippine Commonwealth Army, 6th Infantry Regiment of the Philippine Constabulary and the Ilonggo guerrillas against the Japanese in the Battle for the Liberation of Iloilo. Teresa Magbanua was likely called the Joan of Arc She migrated to Mindanao after the war and lived with her sister Maria in Pagadian, Zamboanga del Sur, where she died in August, 1947, exact day unknown.";
			break;

	case 38:cout<<"\t\t\t\tTRINIDAD TECSON\n\n";
		    cout<<"Mother of Biak na Bato";
			break;

	case 39:cout<<"\t\t\t\tAGUEDA ESTEBAN\n\n";
		    cout<<"Wife of Artemio Ricarte Who Carried Secret Messages About Spanish Troops";
			break;

	case 40:cout<<"\t\t\t\tMARINA DIZON\n\n";
		    cout<<"Daughter of one of the Trece Martirez";
			break;

	case 41:cout<<"\t\t\t\tGENERAL FRANCISCO MAKABULOS\n\n";
		    cout<<"(September 17, 1871-April 30, 1922) was a Filipino patriot who led Katipunan revolutionary forces during the Philippine Revolution against Spain in 1896.He was born in La Paz, Tarlac to Alejandro Macabulos of Lubao, Pampanga and Gregoria Soliman. He organized the first Katipunan group there after he was inducted into the secret society by Ladislao Diwa in 1896. When the revolution broke out in 1898, he liberated Tarlac and established town councils in areas he liberted.Macabulos refused to honor the Pact of Biak-na-Bato, which called for a truce with the Spanish colonial government, and continued operations in Central Luzon. But on January 14, 1898, he disbanded his troops and accepted amnesty after receiving P14,000 as part of Spanish reparations to Filipino revolutionaries. Macabulos distributed the money to his men.However, he resumed operations against the Spanish and on April 17, 1898, an assembly of citizens representing the town councils Macabulos established, calling themselves representatives of Central Luzon, met and drafted a provisional constitution. They created a government that was to exist until a revolutionary government is established. Macabulos' government was headed by a general executive committee, consisting of a president, vice president, secretary of interior, secretary of war and a secretary of the treasury.Macabulos dissolved his government after the First Philippine Republic was created by the Malolos Constitution, which he also signed. He also led his men to free nearby provinces, like Pangasinan where he led revolutionists in the Battle of Dagupan.";
			break;

	case 42:cout<<"\t\t\t\tJULIAN FELIPE\n\n";
		    cout<<"(January 28, 1861 – October 2, 1944), was the composer of the music of the Filipino national anthem, now known as Lupang Hinirang";
			break;


			default : cout<<"\nInvalid Choice!";
	}

	getch();
	return 0;
}

Put the entire switch statement in a while loop saying:

while(choice != 4)

That way, the switch menu will keep repeating itself til the user enters 4, also add an extra option in your menu called exit. It should then look like this:

cout<<"\t\t\t\tPhilippine National Heroes\n\n";
cout<<"[1]Dr.Jose Rizal\n";
cout<<"[2]Andres Bonifacio\n";
cout<<"[3]General Gregorio Del Pilar\n";
cout<<"[4]Exit\n";

And of course your switch will be inside the while loop.

Where do I put the while loop?
I'm sorry, I'm really new in Programming.

Oh! I didn't know you had so many people, I thought it just went til 3. then do it like this, instead of using the number 4 to end your loop, use -999, while(choice != -999). But make sure you specify this number in your menu, like:

case -999: cout << "Exit";

Put the switch inside the while, like this:

while(choice != -999)
      {
           switch(choice)
           {
                etc...
           }
      }

I see you have a while loop here already, wrap everything after the while loop with { }. It should be like this, notice that i start looping only from the "Enter choice" line so the screen would not get flooded everytime i make a choice, but you can start the loop a bit higher if you want to see all of the choices again, heres the code :

#include "stdafx.h"
#include "iostream"
#include "stdio.h"
#include "conio.h"
using namespace std;

int main()
{
	int choice,desc;

	cout<<"\t\t\t\tPhilippine National Heroes\n\n";
	cout<<"[1]Dr.Jose Rizal\n";
	cout<<"[2]Andres Bonifacio\n";
	cout<<"[3]General Gregorio Del Pilar\n";
	cout<<"[4]General Emilio Aguinaldo\n";
	cout<<"[5]Apolinario Mabini\n";
	cout<<"[6]GOMBURZA\n";
	cout<<"[7]Trece Martirez\n";
	cout<<"[8]Emilio Jacinto\n";
	cout<<"[9]General Antonio Luna\n";
	cout<<"[10]Melchora Aquino(Tandang Sora)\n";
	cout<<"[11]Graciano Lopez Jaena\n";
	cout<<"[12]Panday Pira\n";
	cout<<"[13]Mariano Ponce\n";
	cout<<"[14]Gregoria De Jesus\n";
	cout<<"[15]Fernando Ma. Guerrero\n";
	cout<<"[16]Felipe Agoncillo\n";
	cout<<"[17]Rafael Palma\n";
	cout<<"[18]Juan Luna\n";
	cout<<"[19]Marcelo H. Del Pilar\n";
	cout<<"[20]Leona Florentino\n";
	cout<<"[21]Pedro Paterno\n";
	cout<<"[22]Isabelo Delos Reyes\n";
	cout<<"[23]Artemio Ricarte\n";
	cout<<"[24]Jose Palma\n";
	cout<<"[25]Lakandola\n";
	cout<<"[26]Rajah Soliman\n";
	cout<<"[27]Leonor Rivera\n";
	cout<<"[28]Marcela Marino Agoncillo\n";
	cout<<"[29]Galicano Apacible\n";
	cout<<"[30]Jose Ma. Panganiban\n";
	cout<<"[31]Diego Silang\n";
	cout<<"[32]Maria Josefa Gabriela Silang\n";
	cout<<"[33]Lapu-Lapu\n";
	cout<<"[34]Francisco Dagohoy\n";
	cout<<"[35]Epifanio Delos Santos\n";
	cout<<"[36]Francisco Baltazar\n";
	cout<<"[37]Teresa Magbanua\n";
	cout<<"[38]Trinidad Tecson\n";
	cout<<"[39]Agueda Esteban\n";
	cout<<"[40]Marina Dizon\n";
	cout<<"[41]General Francisco Makabulos\n";
	cout<<"[42]Julian Felipe\n";
	

	while(true)
	{
	cout<<"Enter the number of your Choice:\t";
	cin>>choice;

	switch(choice)
	{
	case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
		    cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era. He is regarded as the foremost Filipino patriot and is listed as one of the national heroes of the Philippines by National Heroes Committee. His execution by the Spanish in 1896, a date marked annually as Rizal Day, a Philippine national holiday, was one of the causes of the Philippine Revolution.";
			break;

	case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
		    cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary. He was one of a founder and later the supreme leader of the Katipunan movement which sought the independence of the Philippines from Spanish colonial rule and started the Philippine Revolution. He is considered a de facto national hero of the Philippines. Bonifacio is also considered by some Filipino historians to be the first president of the Philippines, but he is not officially recognized as such.";
			break;

	case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
		    cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War. He is most known for his role and death at the Battle of Tirad Pass. Because of his youth, he was called the Boy General.";
			break;

	case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
		    cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader. He played an instrumental role during the Philippines' revolution against Spain, and the subsequent Philippine-American War or War of Philippine Independence that resisted American occupation.Aguinaldo became the Philippines' first President. He was also the youngest (at age 29) to have become the country's president, the longest-lived president (having survived to age 94) and the president to have outlived the most number of successors.";
			break;

	case 5: cout<<"\t\t\t\tAPOLINARIO MABINI\n\n";
		    cout<<"(July 23, 1864 — May 13, 1903) was a Filipino political philosopher and revolutionary who wrote a constitutional plan for the first Philippine republic of 1899-1901, and served as its first prime minister in 1899. In Philippine history texts, he is often referred to as the Sublime Paralytic and as the Brains of the Revolution. To his enemies and detractors, he is referred to as the Dark Chamber of the President.";
			break;

	case 6: cout<<"\t\t\t\tGOMBURZA\n\n";
		    cout<<"is an acronym denoting the surnames of the priests Mariano Gómez, José Apolonio Burgos, and Jacinto Zamora, three Filipino priests who were executed on 17 February 1872 at Bagumbayan in Manila, Philippines by Spanish colonial authorities on charges of subversion arising from the 1872 Cavite mutiny. Their execution left a profound effect on many Filipinos; José Rizal, the national hero, would dedicate his novel El filibusterismo to their memory.The uprising by workers in the Cavite Naval Yard was the pretext needed by the authorities to redress a perceived humiliation from the principal objective, José Burgos, who threatened the established order.";
			break;

	case 7: cout<<"\t\t\t\tTRECE MARTIREZ\n\n";
		    cout<<"were Filipino patriots in Cavite, Philippines who were executed by mustketry on September 11, 1896, for cooperating with the Katipunan during the Philippine Revolution against Spain. The city of Trece Martires in Cavite is named after them.";
			break;

	case 8: cout<<"\t\t\t\tEMILIO JACINTO\n\n";
		    cout<<"Born in Trozo,Tondo, Manila. Jacinto was the son of Mariano Jacinto and Josefa Dizon. Mariano died shortly after Emilio was born, forcing Josefa to send him to his uncle, Don José Dizon, so that he might have a better standard of living.Jacinto was fluent in both Spanish and Tagalog, but preferred to speak in Spanish. He attended San Juan de Letran College, and later transferred to the University of Santo Tomas to study law. He did not finish college and, at the age of 20, joined the secret society called Katipunan. He became the advisor on fiscal matters and secretary to Andrés Bonifacio. He was later known as Utak ng Katipunan..Jacinto also wrote for the Katipunan newspaper called Kalayaan. He wrote in the newspaper under the pen name Dimasilaw, and used the alias Pingkian in the Katipunan. Jacinto was the author of the Kartilya ng Katipunan as well.After Bonifacio's death, Jacinto pressed on the Katipunan's struggle. Like general Mariano Álvarez, he refused to join the forces of general Emilio Aguinaldo, the leader of the Katipunan's Magdalo faction. He contracted malaria and died in Magdalena, Laguna, at the age of 24. His remains were later transferred to the Manila North Cemetery.";
			break;

	case 9: cout<<"\t\t\t\tGENERAL ANTONIO LUNA\n\n";
		    cout<<"was a Filipino pharmacist and general who fought in the Philippine-American War. He was also the founder of the Philippines's first military academy.";
			break;

	case 10:cout<<"\t\t\t\tMELCHORA AQUINO(TANDANG SORA)\n\n";
		    cout<<"(January 6, 1812 – March 2, 1919) was a Filipina revolutionary who became known as Tandang Sora in the history of the Philippines because of her age when the Philippine Revolution broke out in 1896 (she was already 84 at the time). She gained the titles Grand Woman of the Revolution and the Mother of Balintawak for her heroic contributions to Philippine history.";
			break;

	case 11:cout<<"\t\t\t\tGRACIANO LOPEZ-JAENA\n\n";
		    cout<<"(December 18, 1856-January 20, 1896) was a Filipino journalist, orator, and revolutionary from Iloilo, well known for his written work, La SolidaridadHis parents sent López Jaena to Jaro which had been opened under the administration of Governor General Carlos María de la Torre. While studying at St. Vincent Ferrer Seminary in Jaro, López Jaena served as a secretary to an uncle named Claudio López who was the honorary vice consul of Portugal in Iloilo. His ambition of becoming a physician, convinced his parents that this was the better course of action. López Jaena sought enrollment at the University of Santo Tomas but was denied admission because the required Bachelor of Arts degree was not offered at the seminary in Jaro. However he was appointed to the San Juan de Dios Hospital as an apprentice. Unfortunately, due to financial problems, his parents could not afford to keep him in Manila. He returned to Iloilo and practiced medicine in communities.During this period, his visits with the poor and the common people began to stir feelings about the injustices that were common. At the age of 18 he wrote the satirical story Fray Botod which depicted a fat and lecherous priest. Botod’s false piety always had the Virgin and God on his lips no matter how unjust and underhanded his acts are.This naturally incurred the fury of the friars who knew that the story depicted them. Although it was not published a copy circulated in the region but the Friars could not prove that López Jaena was the author. However he got into trouble for refusing to testify that certain prisoners died of natural causes when it was obvious that they had died at the hands of the mayor of Pototan. López Jaena continued to agitate for justice and finally went to Spain when threats were made on his life.López Jaena sailed for Spain in 1879. There he was to become a leading literary and oratorical spokesman for the Philippine reformal issues. Philippine historians regard López Jaena, along with Marcelo H. del Pilar and José P. Rizal, as the triumvirate of Filipino propagandists. Of these three Ilustrados, López Jaena was the first to arrive and may have founded the genesis of the Propaganda movement.López Jaena pursued his medical studies at the University of Valencia but did not finish the course. Once Rizal approached Lopéz Jaena for not finishing his medical studies. Graciano replied, On the shoulders of slaves should not rest a doctor's cape. Rizal countermanded, The shoulders do not honor the doctor's cape, but the doctors cape honors the shoulders.He then moved to the field of journalism. Losing interest in politics and academic life, he soon enjoyed his life in Barcelona and Madrid. However, his friends would forgive him these indiscretions due to his appeal with words and oratory. Mariano Ponce who was another of the Filipino propagandists in Spain observed, ... a deafening ovation followed the close of the peroration, the ladies waved their kerchiefs wildly, and the men applauded frantically as they stood up from their seats in order to embrace the speaker.";
			break;

	case 12:cout<<"\t\t\t\tPANDAY PIRA\n\n";
		    cout<<"(1488–1576) was a Moro blacksmith who is acknowledged as The First Filipino Cannon-maker. His name literally translates as Blacksmith Pira, panday being the Filipino word for blacksmith.Panday Pira was a native of the southern islands of the Philippines. He migrated to Manila in 1508 and established a foundry on the northern bank of the Pasig River. Rajah Sulayman commissioned Panday Pira to cast the cannon that were mounted on the palisades surrounding his kingdom. In 1570, Spanish forces under the command of Martin de Goiti captured Manila and took these artillery pieces as war booty, presenting them to Miguel López de Legazpi, the first Spanish Governor-General of the Philippines.Legazpi eventually established a permanent Spanish settlement in Manila on May 19, 1571 and on June 3 of the same year, Rajah Sulayman waged the Battle of Bankusay Channel to re-capture his kingdom from the Spaniards. Rajah Sulayman failed in this and perished in the battle. Panday Pira then fled to Pampanga where he attempted to begin a new life in sitio Capalangan in the town of Apalit, working as a blacksmith forging farm implements. He was, however, summoned by Legazpi back to Manila and put to work forging cannons for the Spaniards. He established his foundry in what is now Santa Ana. Santiago de Vera, the sixth Governor-General, commissioned him to cast cannon for the defenses of a fortress he built, the fortress of Nuestra Señora de Guia (Spanish, Our Lady of Guidance), now called Intramuros. To the Spaniards, Panday Pira was known as Pandapira, and they exempted him from paying tribute and forced labor.In 1576, Panday Pira died at the age of 88. His death was a great loss to the Spaniards who had to petition the King of Spain for a blacksmith to take his place. It was not until 1584, that a Spanish blacksmith from Mexico arrived.";
			break;

	case 13:cout<<"\t\t\t\tMARIANO PONCE\n\n";
		    cout<<"(March 23, 1863 – May 23, 1918), was a Filipino physician, writer, and active member of the Propaganda Movement. In Spain, he was among the founders of La Solidaridad and Asociacion Hispano-Filipino. Among his significant works was Efemerides Filipinas, a column on historical events in the Philippines which appeared in La Oceania Española (1892–1893) and El Ideal (1911–1912). He wrote Ang Wika at Lahi (1917), a discussion on the importance of a national language. He served as Bulacan's representative to the National Assembly.";
		    break;

	case 14:cout<<"\t\t\t\tGREGORIA DE JESUS\n\n";
		    cout<<"(15 May 1875 – 15 March 1943), also known as Aling Oriang,[1] was the founder and vice-president of the women's chapter of the Katipunan of the Philippines. She was also the custodian of the documents and seal of the Katipunan. She married Andrés Bonifacio, the supremo of the Katipunan, and played a major role in the Philippine Revolution. She has one son from Andrés Bonifacio and five children from Julio Nakpil.";
			break;

	case 15:cout<<"\t\t\t\tFernando Ma. Guerrero\n\n";
		    cout<<"(1873 — 1929) was a Filipino politician, journalist, lawyer and polyglot who became a significant figure during the Philippine's golden period of Spanish literature, a period ranging from 1890 to the outbreak of World War II in 1940";
			break;

	case 16:cout<<"\t\t\t\tFELIPE AGONCILLO\n\n";
		    cout<<"(May 26, 1859 – September 29, 1941) was the Filipino lawyer representative to the negotiations in Paris that led to the Treaty of Paris (1898), ending the Spanish–American War and achieving him the title of outstanding first Filipino diplomat.As a family friend and adviser of General Emilio Aguinaldo and General Antonio Luna during the critical times of the revolution, Agoncillo has been active in participating during that era especially when he presided the Hong Kong Junta—a group of Filipino exiles who met to plan for future steps in achieving independence. His greatest contribution of the Philippine history was when he was assigned to negotiate foreign countries to secure the independence of the country considered as the most important assignment given by a General.";
			break;

	case 17:cout<<"\t\t\t\tRAFAEL PALMA\n\n";
		    cout<<"was a Filipino politician, Rizalian, reporter, writer, educator and a famous mason in Philippines. He also became the fourth President of the University of the Philippines.";
			break;

	case 18:cout<<"\t\t\t\tJUAN LUNA\n\n";
		    cout<<"(October 23, 1857 — December 7, 1899) was an Ilocano Filipino painter, sculptor and a political activist of the Philippine Revolution during the late 19th century. He became one of the first recognized Philippine artists.His winning the gold medal in the 1884 Madrid Exposition of Fine Arts, along with the silver win of fellow Filipino painter Félix Resurrección Hidalgo, prompted a celebration which was a major highlight in the memoirs of members of the Propaganda Movement, with the fellow Ilustrados toasting to the two painters' good health and citing their win as evidence that Filipinos and Spaniards were equals.Regarded for work done in the manner of the Spanish and French academies of his time, Luna painted literary and historical scenes, some with an underscore of political commentary. His allegorical works were inspired with classical balance, and often showed figures in theatrical poses.";
		    break;

	case 19:cout<<"\t\t\t\tMARCELO H. DEL PILAR\n\n";
            cout<<"(August 30, 1850 – July 4, 1896) was a Filipino writer, journalist, satirist, and revolutionary leader of the Philippine Revolution and one of the leading Ilustrado (Knowledgeable) propagandist of the Philippine War of Independence.He served as editor of the vernacular section of the Diariong Tagalog (Tagalog Newspaper), the first Philippine bilingual newspaper, in 1882. From 1890 to around 1895, he edited the newspaper La Solidaridad (Solidarity), mainly through his 150 essays and 66 editorials published under the nom de plume Plaridel.Del Pilar's militant and progressive outlook was derived from the classic enlightenment tradition of the French philosophes and the scientific empiricism of the European bourgeoisie. Part of this outlook was transmitted by freemasonry, to which del Pilar subscribed";
			break;

	case 20:cout<<"\t\t\t\tLEONA FLORENTINO\n\n";
		    cout<<"(April 19, 1849-October 4, 1884) was a Filipino poet in the Spanish and Ilocano languages. She is considered as the mother of Philippine women's literature and the bridge from oral to literary tradition.Born to a wealthy and prominent family in Vigan, Ilocos Sur, Florentino began to write her first verses in Ilocano at a young age. Despite her potential, she was not allowed to receive a university education because of her gender. Florentino was instead tutored by her mother, and then a series of private teachers. An educated Ilocano priest taught her advanced Spanish and encouraged her to develop her voice in poetry.Due to the feminist nature of her writings, Florentino was shunned by her husband and son, and so was forced to live alone in exile and separately from her family.Florentino married a politician named Elias de los Reyes at the age of 14, and they had five children, including Isabelo de los Reyes, who would later become a Filipino writer, activist and senator. She died at the age of 35.";
			break;

	case 21:cout<<"\t\t\t\tPEDRO PATERNO\n\n";
		    cout<<"also spelled Pedro Alejandro Paterno y Debera Ignacio (born on February 17, 1857 - died on April 26, 1911; in some references the birth date is February 27, 1858 while the death date is March 11, 1911) was a Filipino politician, as well as a poet and novelist.[3]His intervention on behalf of the Spanish led to the signing of the Pact of Biak-na-Bato on December 14, 1897, an account of which he published in 1910. Among his other works include the first novel written by a native Filipino, Ninay (1885), and the first Filipino collection of poems in Spanish, Sampaguitas y otras poesías varias (Jasmines and Other Poems), published in Madrid in 1880.";
			break;

	case 22:cout<<"\t\t\t\tISABELO DELOS REYES\n\n";
		    cout<<"also known as Don Belong (July 7, 1864 – October 10, 1938), was a prominent Filipino politician, writer and labor activist in the 19th and 20th centuries. He was the founder of the Aglipayan Church, an independent Philippine national church. For his writings and activism with labor unions, he was called the Father of Filipino Socialism.As a young man, he followed his mother's footsteps by initially turning to writing as a career; he won a prize at the age of 23 for his first book. He became a journalist, editor, and publisher in Manila, and was imprisoned in 1897 for revolutionary activities. He was deported to Spain, where he was jailed until 1898. While living and working in Madrid, he was influenced by the writings of European socialists and Marxists. Returning to the Philippines in 1901, he founded the first labor union in the country. He also was active in seeking independence from the United States. After serving in the Philippine Senate, he settled into private life and religious writing.";
			break;

	case 23:cout<<"\t\t\t\tARTEMIO RICARTE\n\n";
		    cout<<"(October 20, 1866 — July 31, 1945) was a Filipino general during the Philippine Revolution and the Philippine-American War. He is considered by the Armed Forces of the Philippines as the Father of the Philippine Army. Ricarte is also notable for never having taken an oath of allegiance to the United States government, which occupied the Philippines from 1898 to 1946.";
			break;

	case 24:cout<<"\t\t\t\tJOSE PALMA\n\n";
		    cout<<"(June 3, 1876-February 12, 1903) was a poet and soldier. He was on the staff of La Independencia at the time he wrote his Filipinas a patriotic poem in Spanish. It was published for the first time in the issue of the first anniversary of La Independencia on 3 September 1899. The poem fit the tune of the music of the Marcha Nacional Filipina, and since then became the national anthem of the country";
			break;

	case 25:cout<<"\t\t\t\tLAKANDOLA\n\n";
		    cout<<"often referred to simply by his title Lakandula, and later baptised Carlos Lacandula, was the Lakan (ruler) of the pre-colonial Philippine Kingdom of Tondo when the Spaniards first conquered the lands of the Pasig River delta in the 1570s. Another common variation of the name is Gatdula. He is sometimes erroneously referred to as Rajah Lakandula; the terms Rajah and Lakan have the same meaning therefore making the appellation redundant.Along with Rajah Matanda and Rajah Sulayman, he was one of three Rajahs who played significant roles in the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 26:cout<<"\t\t\t\tRAJAH SOLIMAN\n\n";
		    cout<<"(1558–1575) was the Muslim Rajah of Maynila, a kingdom at the mouth of the Pasig River where it meets Manila Bay, at the time the Spanish forces first came to Luzon.Sulayman resisted the Spanish forces, and thus, along with Rajah Matanda and Lakan Dula, was one of three Rajahs who played significant roles in the drama that was the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 27:cout<<"\t\t\t\tLEONOR RIVERA\n\n";
		    cout<<"(born in Camiling, Tarlac, died August 1893) was the childhood sweetheart, first cousin, and “lover by correspondence” of Philippine national hero José Rizal. Rivera was the “greatest influence” in preventing Rizal from falling in love with other women while Rizal was traveling outside the Philippines. Rivera's romantic relationship with Rizal lasted for eight years. She was immortalized by Rizal as the character María Clara in the Spanish-language novel Noli Me Tangere. Her original hometown is in Camiling,Tarlac.";
			break;

	case 28:cout<<"\t\t\t\tMARCELA MARINO AGONCILLO\n\n";
		    cout<<"(June 24, 1860 – May 30, 1946) also simply known as Marcela Agoncillo, was a Filipina renowned in Philippine history as the principal seamstress of the first and official flag of the Philippines, gaining her the title of Mother of the Philippine Flag.Agoncillo was a daughter of a rich family in her hometown of Taal, Batangas. Finishing her studies at Sta. Catalina College, she acquired her learning in music and feminine crafts. At the age of 30, Agoncillo married Filipino lawyer and jurist Don Felipe Agoncillo and bore him six children. Her marriage led to her important role in Philippine history. When her husband was exiled to Hong Kong during the outbreak of the Philippine Revolution, Agoncillo and the rest of the family joined him and temporarily resided there to avoid the anti-Filipino hostility of some foreign countries. While in Hong Kong, General Emilio Aguinaldo requested her to sew a flag that would represent their country. Agoncillo, her eldest daughter and a friend manually sewed the flag in accordance with General Aguinaldo's design which later became the official flag of the Philippines.While the flag itself is the perpetual legacy of Agoncillo, she is also commemorated through museums and monuments like the marker in Hong Kong (where her family temporarily sojourned), at her ancestral home in Taal, Batangas which has been turned into a museum, in paintings by notable painters as well as through other visual arts.";
			break;

	case 29:cout<<"\t\t\t\tGALICANO APACIBLE\n\n";
		    cout<<"(June 25, 1864 – March 2, 1949) was a Philippine politician. A cousin to Jose Rizal, he co-founded La Solidaridad and Nacionalista Party. He held the office of Governor of Batangas and was the representative of the first District of Batangas from 1909 to 1916. He is known for his piece To the American People, an Appeal, in which he tries to plead with the people of the United States to pressure its government not to invade his newly independent country.";
			break;

	case 30:cout<<"\t\t\t\tJOSE MA. PANGANIBAN\n\n";
		    cout<<"Bicolandia's Greatest Contribution to the Historic Campaign for Reforms.";
			break;

	case 31:cout<<"\t\t\t\tDIEGO SILANG\n\n";
		    cout<<"(December 16, 1730 – May 28, 1763) was a revolutionary leader who conspired with British forces to overthrow Spanish rule in the northern Philippines and establish an independent Ilocano nation. His revolt was fueled by grievances stemming from Spanish taxation and abuses, and by his belief in self-government, that the administration and leadership of the Roman Catholic Church and government in the Ilocos be invested in trained Ilocano officials.Born in Aringay, Pangasinan (an area in present-day Caba or Aringay, La Union), Silang's mother was Ilocano; his father was Pangasinense. Young Diego worked as a messenger for a local Castilian priest in Vigan, Ilocos Sur. Bright, passionate, and fluent in Spanish, he ferried correspondence from the Ilocos to Manila; journeys that gave him his first glimpse of colonial injustice and that planted the seed of rebellion.pain allied with France during the Seven Years' War, in opposition to Great Britain. The British in response sought to diminish the Spanish Empire. The seizure of Manila by British naval forces in October, 1762, and the subsequent surrender of the Spanish Philippines to Britain during the British occupation of the Philippines, inspired uprisings in the farthest north of Ilocos Norte and Cagayan, where anti-Spanish sentiments festered. Though Silang initially wanted to replace Spanish functionaries in the Ilocos with native-born officials and volunteered to head Ilocano forces against the British, desperate Spanish administrators instead transferred their powers to the Catholic Bishop of Nueva Segovia (Vigan), who rejected Silang's offer. Silang's group attacked the city and imprisoned its priests. He then began an association with the British who appointed him governor of the Ilocos on their behalf and promised him military reinforcement. The British force never materialized.Diego Silang was killed by one of his friends, a Spanish-Ilocano mestizo named Miguel Vicos, whom church authorities paid to assassinate Silang with the help of Pedro Becbec. He was 32 years old.After Silang's death, his Spanish-Ilocana mestiza wife, Josefa Gabriela, took command of the revolt and fought courageously. The Spanish sent a strong force against her. She was forced to retreat to Abra. Gabriela led her troops towards Vigan but was driven back. She fled again to Abra, where she was captured. Gabriela and her men were summarily hanged on September 20, 1763 she being hanged the last.";
			break;

	case 32:cout<<"\t\t\t\tMARIA JOSEFA GABRIELA SILANG\n\n";
		    cout<<"(March 19, 1731 – September 20, 1763) was the wife of the Ilocano insurgent leader, Diego Silang. Following Diego's assassination in 1763, she led the group for four months before she was captured and executed.Born in Barangay Caniogan, Santa, Ilocos Sur, Silang was a mestiza, of Spanish and Ilocano descent. The people of Abra do claim she was born in what is now Pidigan, Abra (those two places are not far from each other, and Abra was not incorporated as a province until early in the 20th century). She was adopted by a very wealthy businessman Tomás Millan, who later married her at the age of 20, but died after three years. In 1757, she re-married again, this time to 27-year-old Ilocano insurgent leader, Diego Silang. The groups’ goal was to ensure an independent Ilocos. She became one of his closest advisors, whenever the troops battle, Gabriela always went with them to give support and help with the battle, a major figure in her husband's collaboration with the British and the brief expulsion of Spanish officials from Vigan, Ilocos Sur during the British occupation of the Philippines.On May 28, 1763, two of her husband’s close friends Miguel Vicos and Pedro Becbec betrayed them, which resulted to Diego’s demise; he was assassinated by order of royal and church authorities in Manila. After her husband's death, she fled on horseback to her uncle Nicolás Cariño's residence in the mountains of Abra.Together with Cariño, and Sebatian Andaya and Manuel Flores, there she regrouped her troops, and rallied the Tingguian community to fight. Gabriela’s troops of 2000 fighters attacked the Spanish in Vigan on September 10, 1763. With a larger number of the Spanish troops, the 6000 men strong Spanish garrison was ready, with amassing Spanish, Tagalog, and Kapampangan soldiers, and Ilocano collaborators recruited from other regions to ambush her and rout her forces. Many were killed. She escaped, alongside Cariño and seven others, but later caught on September 20, 1763. They were summarily hanged in Vigan's plaza. She was the last to be hanged.";
			break;

	case 33:cout<<"\t\t\t\tLAPU LAPU\n\n";
		    cout<<"(1491–1542) was the ruler of Mactan, an island in the Visayas, Philippines, who is known as the first native of the archipelago to have resisted the Spanish colonization. He is now regarded as the first Filipino hero.On the morning of April 27, 1521, Lapu-Lapu led 1,500 Muslim Mactan warriors armed with barong, spears, kampilan and kalasag, in a battle against Portuguese explorer and conquistador Ferdinand Magellan who led a force of 49 Christian soldiers armed with guns in what would later be known as the Battle of Mactan. During the battle Magellan and several of his men were killed.He is regarded as a Muslim coming from the Tausug tribe as chronicled under the Sulu Sultanates. No clear evidence can be proven that he was an animist aside from mere speculation. He used a kampilan as mentioned by Antonio Pigafetta, a sword used by blue blood Muslims in the Philippines and Southeast Asia. The Philippine Government has officially acknowledged him as a Muslim warrior.The 1898 Philippine Declaration of Independence refers to Lapu-Lapu as Rey Kalipulako de Maktan (King Kalipulako of Mactan)";
			break;

	case 34:cout<<"\t\t\t\tFRANCISCO DAGOHOY\n\n";
		    cout<<"(born Francisco Sendrijas) was a Boholano who holds the distinction of having led the longest revolt in Philippine history, the Dagohoy Rebellion. This rebellion against the Spanish colonial government took place in the island of Bohol from 1744 to 1829, roughly 85 years.";
			break;

	case 35:cout<<"\t\t\t\tEPIFANIO DELOS SANTOS\n\n";
		    cout<<"A Man of Many talents The Former Highway 54 is now named after him(EDSA)";
			break;

	case 36:cout<<"\t\t\t\tFRANCISCO BALTAZAR\n\n";
		    cout<<"(April 2, 1788 – February 20, 1862), known much more widely through his nom-de-plume Francisco Balagtas, was a prominent Filipino poet, and is widely considered as the Tagalog equivalent of William Shakespeare for his impact on Filipino literature. The famous epic, Florante at Laura, is regarded as his defining work.";
			break;

	case 37:cout<<"\t\t\t\tTERESA MAGBANUA\n\n";
		    cout<<" (October 13, 1868 – August 1947) earned the distinction of being the only woman to lead combat troops in the Visayas against Spanish and American forces. Born in Pototan, Iloilo, Philippines on 13 October 1868, to wealthy parents, she earned a teaching degree and taught in her hometown. Having come from a family of revolutionaries, she immediately volunteered her services to the motherland and became an exceptional horseman and marksman. Without the approval of her husband, she led a large group of men in the Battle of Barrio Yoting, Capiz in early December 1898. She outfought the Spanish troops at the Battle of Sapong Hills near Sara.She suffered greatly from the early death of her brothers General Pascual Magbanua and Elias Magbanua, at the hands of traitors.Fifty years later, her heroism was once again displayed when she helped finance a guerrilla resistance movement by the liberators together with the Allied Filipino soldiers of the 6th, 61st and 62nd Infantry Division of the Philippine Commonwealth Army, 6th Infantry Regiment of the Philippine Constabulary and the Ilonggo guerrillas against the Japanese in the Battle for the Liberation of Iloilo. Teresa Magbanua was likely called the Joan of Arc She migrated to Mindanao after the war and lived with her sister Maria in Pagadian, Zamboanga del Sur, where she died in August, 1947, exact day unknown.";
			break;

	case 38:cout<<"\t\t\t\tTRINIDAD TECSON\n\n";
		    cout<<"Mother of Biak na Bato";
			break;

	case 39:cout<<"\t\t\t\tAGUEDA ESTEBAN\n\n";
		    cout<<"Wife of Artemio Ricarte Who Carried Secret Messages About Spanish Troops";
			break;

	case 40:cout<<"\t\t\t\tMARINA DIZON\n\n";
		    cout<<"Daughter of one of the Trece Martirez";
			break;

	case 41:cout<<"\t\t\t\tGENERAL FRANCISCO MAKABULOS\n\n";
		    cout<<"(September 17, 1871-April 30, 1922) was a Filipino patriot who led Katipunan revolutionary forces during the Philippine Revolution against Spain in 1896.He was born in La Paz, Tarlac to Alejandro Macabulos of Lubao, Pampanga and Gregoria Soliman. He organized the first Katipunan group there after he was inducted into the secret society by Ladislao Diwa in 1896. When the revolution broke out in 1898, he liberated Tarlac and established town councils in areas he liberted.Macabulos refused to honor the Pact of Biak-na-Bato, which called for a truce with the Spanish colonial government, and continued operations in Central Luzon. But on January 14, 1898, he disbanded his troops and accepted amnesty after receiving P14,000 as part of Spanish reparations to Filipino revolutionaries. Macabulos distributed the money to his men.However, he resumed operations against the Spanish and on April 17, 1898, an assembly of citizens representing the town councils Macabulos established, calling themselves representatives of Central Luzon, met and drafted a provisional constitution. They created a government that was to exist until a revolutionary government is established. Macabulos' government was headed by a general executive committee, consisting of a president, vice president, secretary of interior, secretary of war and a secretary of the treasury.Macabulos dissolved his government after the First Philippine Republic was created by the Malolos Constitution, which he also signed. He also led his men to free nearby provinces, like Pangasinan where he led revolutionists in the Battle of Dagupan.";
			break;

	case 42:cout<<"\t\t\t\tJULIAN FELIPE\n\n";
		    cout<<"(January 28, 1861 – October 2, 1944), was the composer of the music of the Filipino national anthem, now known as Lupang Hinirang";
			break;


			default : cout<<"\nInvalid Choice!";
	}
	cout << "\n\n";
	}

	getch();
	return 0;
}

How about choice != 0 ? Why a number like -999?

You can also use

system("clear")

to avoid flooding the screen and to start afresh every time you loop

Because no one is going to enter -999

2 comments:
1) while (true) is a terrible solution as you have no way to exit.

2) This is a perfect project to start learning how to read files. Each name and his information can go into a text file and you can
a) read the data from the file
b) populate a string array of names to output in a loop for the menu
c) populate a string array of information that can be output for the chosen name.

That way you can write the code generically, and the file is all that needs to change when you want to update information. As it is, the code is so larger it's cumbersome, and if you need to make a change to some data, you must recompile the whole thing.

You can also use

system("clear")

to avoid flooding the screen and to start afresh every time you loop

Bad idea. It's not portable. It calls the O/S unnecessarily.

How do you mean not portable?

How do you mean not portable?

It will not work on most operating systems. Linux/Unix for one. how do you know it will work on his O/S? He didn't tell you what he's using.

And if you have an O/S that has defined clear to be delete all files, you've just destroyed a lot of work.

int main()
{
	int choice,desc;
	char repeat;

	

	cout<<"\t\t\t\tPhilippine National Heroes\n\n";
	cout<<"[1]Dr.Jose Rizal\n";
	cout<<"[2]Andres Bonifacio\n";
	cout<<"[3]General Gregorio Del Pilar\n";
	cout<<"[4]General Emilio Aguinaldo\n";
	cout<<"[5]Apolinario Mabini\n";
	cout<<"[6]GOMBURZA\n";
	cout<<"[7]Trece Martirez\n";
	cout<<"[8]Emilio Jacinto\n";
	cout<<"[9]General Antonio Luna\n";
	cout<<"[10]Melchora Aquino(Tandang Sora)\n";
	cout<<"[11]Graciano Lopez Jaena\n";
	cout<<"[12]Panday Pira\n";
	cout<<"[13]Mariano Ponce\n";
	cout<<"[14]Gregoria De Jesus\n";
	cout<<"[15]Fernando Ma. Guerrero\n";
	cout<<"[16]Felipe Agoncillo\n";
	cout<<"[17]Rafael Palma\n";
	cout<<"[18]Juan Luna\n";
	cout<<"[19]Marcelo H. Del Pilar\n";
	cout<<"[20]Leona Florentino\n";
	cout<<"[21]Pedro Paterno\n";
	cout<<"[22]Isabelo Delos Reyes\n";
	cout<<"[23]Artemio Ricarte\n";
	cout<<"[24]Jose Palma\n";
	cout<<"[25]Lakandola\n";
	cout<<"[26]Rajah Soliman\n";
	cout<<"[27]Leonor Rivera\n";
	cout<<"[28]Marcela Marino Agoncillo\n";
	cout<<"[29]Galicano Apacible\n";
	cout<<"[30]Jose Ma. Panganiban\n";
	cout<<"[31]Diego Silang\n";
	cout<<"[32]Maria Josefa Gabriela Silang\n";
	cout<<"[33]Lapu-Lapu\n";
	cout<<"[34]Francisco Dagohoy\n";
	cout<<"[35]Epifanio Delos Santos\n";
	cout<<"[36]Francisco Baltazar\n";
	cout<<"[37]Teresa Magbanua\n";
	cout<<"[38]Trinidad Tecson\n";
	cout<<"[39]Agueda Esteban\n";
	cout<<"[40]Marina Dizon\n";
	cout<<"[41]General Francisco Makabulos\n";
	cout<<"[42]Julian Felipe\n";
	cout<<"[0]Exit\n";
	

	cout<<"Enter the number of your Choice:\t";
	cin>>choice;
	
	while(choice != -999)
	
	
		switch(choice)
	{
	case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
		    cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era.";
			break;

	case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
		    cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary. He was one of a founder and later the supreme leader of the Katipunan movement which sought the independence of the Philippines from Spanish colonial rule and started the Philippine Revolution.";
			break;

	case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
		    cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War.";
			break;

	case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
		    cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader.";
			break;

	case 5: cout<<"\t\t\t\tAPOLINARIO MABINI\n\n";
		    cout<<"(July 23, 1864 — May 13, 1903) was a Filipino political philosopher and revolutionary who wrote a constitutional plan for the first Philippine republic of 1899-1901, and served as its first prime minister in 1899.";
			break;

	case 6: cout<<"\t\t\t\tGOMBURZA\n\n";
		    cout<<"is an acronym denoting the surnames of the priests Mariano Gómez, José Apolonio Burgos, and Jacinto Zamora, three Filipino priests who were executed on 17 February 1872 at Bagumbayan in Manila, Philippines by Spanish colonial authorities on charges of subversion arising from the 1872 Cavite mutiny.";
			break;

	case 7: cout<<"\t\t\t\tTRECE MARTIREZ\n\n";
		    cout<<"were Filipino patriots in Cavite, Philippines who were executed by mustketry on September 11, 1896, for cooperating with the Katipunan during the Philippine Revolution against Spain.";
			break;

	case 8: cout<<"\t\t\t\tEMILIO JACINTO\n\n";
		    cout<<"Born in Trozo,Tondo, Manila. ";
			break;

	case 9: cout<<"\t\t\t\tGENERAL ANTONIO LUNA\n\n";
		    cout<<"was a Filipino pharmacist and general who fought in the Philippine-American War. He was also the founder of the Philippines's first military academy.";
			break;

	case 10:cout<<"\t\t\t\tMELCHORA AQUINO(TANDANG SORA)\n\n";
		    cout<<"(January 6, 1812 – March 2, 1919) was a Filipina revolutionary who became known as Tandang Sora in the history of the Philippines because of her age when the Philippine Revolution broke out in 1896 (she was already 84 at the time).";
			break;

	case 11:cout<<"\t\t\t\tGRACIANO LOPEZ-JAENA\n\n";
		    cout<<"(December 18, 1856-January 20, 1896) was a Filipino journalist, orator, and revolutionary from Iloilo, well known for his written work, La SolidaridadHis parents sent López Jaena to Jaro which had been opened under the administration of Governor General Carlos María de la Torre.";
			break;

	case 12:cout<<"\t\t\t\tPANDAY PIRA\n\n";
		    cout<<"(1488–1576) was a Moro blacksmith who is acknowledged as The First Filipino Cannon-maker.";
			break;

	case 13:cout<<"\t\t\t\tMARIANO PONCE\n\n";
		    cout<<"(March 23, 1863 – May 23, 1918), was a Filipino physician, writer, and active member of the Propaganda Movement. ";
		    break;

	case 14:cout<<"\t\t\t\tGREGORIA DE JESUS\n\n";
		    cout<<"(15 May 1875 – 15 March 1943), also known as Aling Oriang,[1] was the founder and vice-president of the women's chapter of the Katipunan of the Philippines.";
			break;

	case 15:cout<<"\t\t\t\tFernando Ma. Guerrero\n\n";
		    cout<<"(1873 — 1929) was a Filipino politician, journalist, lawyer and polyglot who became a significant figure during the Philippine's golden period of Spanish literature, a period ranging from 1890 to the outbreak of World War II in 1940";
			break;

	case 16:cout<<"\t\t\t\tFELIPE AGONCILLO\n\n";
		    cout<<"(May 26, 1859 – September 29, 1941) was the Filipino lawyer representative to the negotiations in Paris that led to the Treaty of Paris (1898), ending the Spanish–American War and achieving him the title of outstanding first Filipino diplomat.";
			break;

	case 17:cout<<"\t\t\t\tRAFAEL PALMA\n\n";
		    cout<<"was a Filipino politician, Rizalian, reporter, writer, educator and a famous mason in Philippines. He also became the fourth President of the University of the Philippines.";
			break;

	case 18:cout<<"\t\t\t\tJUAN LUNA\n\n";
		    cout<<"(October 23, 1857 — December 7, 1899) was an Ilocano Filipino painter, sculptor and a political activist of the Philippine Revolution during the late 19th century. ";
		    break;

	case 19:cout<<"\t\t\t\tMARCELO H. DEL PILAR\n\n";
            cout<<"(August 30, 1850 – July 4, 1896) was a Filipino writer, journalist, satirist, and revolutionary leader of the Philippine Revolution and one of the leading Ilustrado (Knowledgeable) propagandist of the Philippine War of Independence.";
			break;

	case 20:cout<<"\t\t\t\tLEONA FLORENTINO\n\n";
		    cout<<"(April 19, 1849-October 4, 1884) was a Filipino poet in the Spanish and Ilocano languages. She is considered as the mother of Philippine women's literature and the bridge from oral to literary tradition.";
			break;

	case 21:cout<<"\t\t\t\tPEDRO PATERNO\n\n";
		    cout<<"also spelled Pedro Alejandro Paterno y Debera Ignacio (born on February 17, 1857 - died on April 26, 1911; i";
			break;

	case 22:cout<<"\t\t\t\tISABELO DELOS REYES\n\n";
		    cout<<"also known as Don Belong (July 7, 1864 – October 10, 1938), was a prominent Filipino politician, writer and labor activist in the 19th and 20th centuries. He was the founder of the Aglipayan Church, an independent Philippine national church. ";
			break;

	case 23:cout<<"\t\t\t\tARTEMIO RICARTE\n\n";
		    cout<<"(October 20, 1866 — July 31, 1945) was a Filipino general during the Philippine Revolution and the Philippine-American War. He is considered by the Armed Forces of the Philippines as the Father of the Philippine Army. Ricarte is also notable for never having taken an oath of allegiance to the United States government, which occupied the Philippines from 1898 to 1946.";
			break;

	case 24:cout<<"\t\t\t\tJOSE PALMA\n\n";
		    cout<<"(June 3, 1876-February 12, 1903) was a poet and soldier. He was on the staff of La Independencia at the time he wrote his Filipinas a patriotic poem in Spanish. It was published for the first time in the issue of the first anniversary of La Independencia on 3 September 1899. The poem fit the tune of the music of the Marcha Nacional Filipina, and since then became the national anthem of the country";
			break;

	case 25:cout<<"\t\t\t\tLAKANDOLA\n\n";
		    cout<<"often referred to simply by his title Lakandula, and later baptised Carlos Lacandula, was the Lakan (ruler) of the pre-colonial Philippine Kingdom of Tondo when the Spaniards first conquered the lands of the Pasig River delta in the 1570s.";
			break;

	case 26:cout<<"\t\t\t\tRAJAH SOLIMAN\n\n";
		    cout<<"(1558–1575) was the Muslim Rajah of Maynila, a kingdom at the mouth of the Pasig River where it meets Manila Bay, at the time the Spanish forces first came to Luzon.";
			break;

	case 27:cout<<"\t\t\t\tLEONOR RIVERA\n\n";
		    cout<<"(born in Camiling, Tarlac, died August 1893) was the childhood sweetheart, first cousin, and “lover by correspondence” of Philippine national hero José Rizal.";
			break;

	case 28:cout<<"\t\t\t\tMARCELA MARINO AGONCILLO\n\n";
		    cout<<"(June 24, 1860 – May 30, 1946) also simply known as Marcela Agoncillo, was a Filipina renowned in Philippine history as the principal seamstress of the first and official flag of the Philippines, gaining her the title of Mother of the Philippine Flag.";
			break;

	case 29:cout<<"\t\t\t\tGALICANO APACIBLE\n\n";
		    cout<<"(June 25, 1864 – March 2, 1949) was a Philippine politician. ";
			break;

	case 30:cout<<"\t\t\t\tJOSE MA. PANGANIBAN\n\n";
		    cout<<"Bicolandia's Greatest Contribution to the Historic Campaign for Reforms.";
			break;

	case 31:cout<<"\t\t\t\tDIEGO SILANG\n\n";
		    cout<<"(December 16, 1730 – May 28, 1763) was a revolutionary leader who conspired with British forces to overthrow Spanish rule in the northern Philippines and establish an independent Ilocano nation. ";
			break;

	case 32:cout<<"\t\t\t\tMARIA JOSEFA GABRIELA SILANG\n\n";
		    cout<<"(March 19, 1731 – September 20, 1763) was the wife of the Ilocano insurgent leader, Diego Silang. ";
			break;

	case 33:cout<<"\t\t\t\tLAPU LAPU\n\n";
		    cout<<"(1491–1542) was the ruler of Mactan, an island in the Visayas, Philippines, who is known as the first native of the archipelago to have resisted the Spanish colonization. ";
			break;

	case 34:cout<<"\t\t\t\tFRANCISCO DAGOHOY\n\n";
		    cout<<"(born Francisco Sendrijas) was a Boholano who holds the distinction of having led the longest revolt in Philippine history, the Dagohoy Rebellion. This rebellion against the Spanish colonial government took place in the island of Bohol from 1744 to 1829, roughly 85 years.";
			break;

	case 35:cout<<"\t\t\t\tEPIFANIO DELOS SANTOS\n\n";
		    cout<<"A Man of Many talents The Former Highway 54 is now named after him(EDSA)";
			break;

	case 36:cout<<"\t\t\t\tFRANCISCO BALTAZAR\n\n";
		    cout<<"(April 2, 1788 – February 20, 1862), known much more widely through his nom-de-plume Francisco Balagtas, was a prominent Filipino poet, and is widely considered as the Tagalog equivalent of William Shakespeare for his impact on Filipino literature. The famous epic, Florante at Laura, is regarded as his defining work.";
			break;

	case 37:cout<<"\t\t\t\tTERESA MAGBANUA\n\n";
		    cout<<" (October 13, 1868 – August 1947) earned the distinction of being the only woman to lead combat troops in the Visayas against Spanish and American forces. ";
			break;

	case 38:cout<<"\t\t\t\tTRINIDAD TECSON\n\n";
		    cout<<"Mother of Biak na Bato";
			break;

	case 39:cout<<"\t\t\t\tAGUEDA ESTEBAN\n\n";
		    cout<<"Wife of Artemio Ricarte Who Carried Secret Messages About Spanish Troops";
			break;

	case 40:cout<<"\t\t\t\tMARINA DIZON\n\n";
		    cout<<"Daughter of one of the Trece Martirez";
			break;

	case 41:cout<<"\t\t\t\tGENERAL FRANCISCO MAKABULOS\n\n";
		    cout<<"(September 17, 1871-April 30, 1922) was a Filipino patriot who led Katipunan revolutionary forces during the Philippine Revolution against Spain in 1896.";
			break;

	case 42:cout<<"\t\t\t\tJULIAN FELIPE\n\n";
		    cout<<"(January 28, 1861 – October 2, 1944), was the composer of the music of the Filipino national anthem, now known as Lupang Hinirang";
			break;

	case -999:cout<< "Exit";


			default : cout<<"\nInvalid Choice!";
	}

	_getch;
	return 0;
}

is this correct? because when I put my choice in, like for example I entered choice 1, it will just output the information that I putted in the case infinitely.

PS: I deleted some info in the cases to make it more readable

I'm really sorry guys if I am consuming your time. :(

I actually made a mistake, I meant to say system("cls"), this is for windows as i assumed he is using that, system("clear") on the other hand is for Linux and it always works. And I'm not sure what you mean by it will delete all the files.

If you are gonna use [0] as your exit then you shouldn't use -999 in your loop, it's one or the other

is this correct? because when I put my choice in, like for example I entered choice 1, it will just output the information that I putted in the case infinitely.

Then no it's not correct.

All your answers are contained in the responses you've been given. You just have to read *all* the posts.

I actually made a mistake, I meant to say system("cls"), this is for windows as i assumed he is using that, system("clear") on the other hand is for Linux and it always works.

And you've just explained non-portable perfectly. It won't work on all systems without modifying the code, therefore it's not portable.

And I'm not sure what you mean by it will delete all the files.

The read carefully what I wrote:

And if you have an O/S that has defined clear to be delete all files, you've just destroyed a lot of work.

And you've just explained non-portable perfectly. It won't work on all systems without modifying the code, therefore it's not portable.


The read carefully what I wrote:

Oh I see, but it would work on Windows and Linux for his code and I doubt his O/S is set to delete his files

Then no it's not correct.

All your answers are contained in the responses you've been given. You just have to read *all* the posts.

I'm sorry, I was busy editing the shortened code that I didn't knew there were new replies posted.

I did what Nuclear said in this post: http://www.daniweb.com/software-development/cpp/threads/378951/1631128#post1631128 and it worked.

But you said that the while (true) is a terrible solution because there's no way to exit.
And you're right.

Now my problem is what are the other methods except for while (true) that can loop and still give me an option to exit?

Oh I see, but it would work on Windows and Linux for his code and I doubt his O/S is set to delete his files

No, it will work on either Windows or Linux, not both. And how many O/S's are there? Can you be absolutely certain clear doesn't delete files on every one of them?

I'm sorry, I was busy editing the shortened code that I didn't knew there were new replies posted.

I did what Nuclear said in this post: http://www.daniweb.com/software-development/cpp/threads/378951/1631128#post1631128 and it worked.

But you said that the while (true) is a terrible solution because there's no way to exit.
And you're right.

Now my problem is what are the other methods except for while (true) that can loop and still give me an option to exit?

We've already explained quite a few methods for you, I don't see what is still required

No, it will work on either Windows or Linux, not both. And how many O/S's are there? Can you be absolutely certain clear doesn't delete files on every one of them?

I'm not saying that system("clear") or system("cls") will each work on both O/S, I'm saying the one works for Linux and the other for Windows. And I'm too sure about the whole delete story but I always use system("clear")

We've already explained quite a few methods for you, I don't see what is still required

So i'll just disregard the while(true) and put system("CLS") after one another?

I'm sorry, I was busy editing the shortened code that I didn't knew there were new replies posted.

I did what Nuclear said in this post: http://www.daniweb.com/software-development/cpp/threads/378951/1631128#post1631128 and it worked.

But you said that the while (true) is a terrible solution because there's no way to exit.
And you're right.

Now my problem is what are the other methods except for while (true) that can loop and still give me an option to exit?

I made it true just to show you how it is done, i thought you would change it. Anyways, heres another way, i added one more option to terminate the program, if you enter 43 the program will end and i modified it a bit, but you can easily change it to your own liking:

#include "stdafx.h"
#include "iostream"
#include "stdio.h"
#include "conio.h"
using namespace std;

int main()
{
	int choice,desc;

	cout<<"\t\t\t\tPhilippine National Heroes\n\n";
	cout<<"[1]Dr.Jose Rizal\n";
	cout<<"[2]Andres Bonifacio\n";
	cout<<"[3]General Gregorio Del Pilar\n";
	cout<<"[4]General Emilio Aguinaldo\n";
	cout<<"[5]Apolinario Mabini\n";
	cout<<"[6]GOMBURZA\n";
	cout<<"[7]Trece Martirez\n";
	cout<<"[8]Emilio Jacinto\n";
	cout<<"[9]General Antonio Luna\n";
	cout<<"[10]Melchora Aquino(Tandang Sora)\n";
	cout<<"[11]Graciano Lopez Jaena\n";
	cout<<"[12]Panday Pira\n";
	cout<<"[13]Mariano Ponce\n";
	cout<<"[14]Gregoria De Jesus\n";
	cout<<"[15]Fernando Ma. Guerrero\n";
	cout<<"[16]Felipe Agoncillo\n";
	cout<<"[17]Rafael Palma\n";
	cout<<"[18]Juan Luna\n";
	cout<<"[19]Marcelo H. Del Pilar\n";
	cout<<"[20]Leona Florentino\n";
	cout<<"[21]Pedro Paterno\n";
	cout<<"[22]Isabelo Delos Reyes\n";
	cout<<"[23]Artemio Ricarte\n";
	cout<<"[24]Jose Palma\n";
	cout<<"[25]Lakandola\n";
	cout<<"[26]Rajah Soliman\n";
	cout<<"[27]Leonor Rivera\n";
	cout<<"[28]Marcela Marino Agoncillo\n";
	cout<<"[29]Galicano Apacible\n";
	cout<<"[30]Jose Ma. Panganiban\n";
	cout<<"[31]Diego Silang\n";
	cout<<"[32]Maria Josefa Gabriela Silang\n";
	cout<<"[33]Lapu-Lapu\n";
	cout<<"[34]Francisco Dagohoy\n";
	cout<<"[35]Epifanio Delos Santos\n";
	cout<<"[36]Francisco Baltazar\n";
	cout<<"[37]Teresa Magbanua\n";
	cout<<"[38]Trinidad Tecson\n";
	cout<<"[39]Agueda Esteban\n";
	cout<<"[40]Marina Dizon\n";
	cout<<"[41]General Francisco Makabulos\n";
	cout<<"[42]Julian Felipe\n";
	cout<<"[43] - Exit\n";
	

	do
	{
	cout<<"Enter the number of your Choice:\t";
	cin>>choice;

	switch(choice)
	{
	case 1: cout<<"\t\t\t\tJOSE RIZAL\n\n";
		    cout<<"(June 19, 1861 to December 30, 1896, Bagumbayan), was a Filipino polymath, patriot and the most prominent advocate for reform in the Philippines during the Spanish colonial era. He is regarded as the foremost Filipino patriot and is listed as one of the national heroes of the Philippines by National Heroes Committee. His execution by the Spanish in 1896, a date marked annually as Rizal Day, a Philippine national holiday, was one of the causes of the Philippine Revolution.";
			break;

	case 2: cout<<"\t\t\t\tANDRES BONIFACIO\n\n";
		    cout<<"(November 30, 1863 to May 10, 1897) was a Filipino nationalist and revolutionary. He was one of a founder and later the supreme leader of the Katipunan movement which sought the independence of the Philippines from Spanish colonial rule and started the Philippine Revolution. He is considered a de facto national hero of the Philippines. Bonifacio is also considered by some Filipino historians to be the first president of the Philippines, but he is not officially recognized as such.";
			break;

	case 3: cout<<"\t\t\t\tGENERAL GREGORIO DEL PILAR\n\n";
		    cout<<" (November 14, 1875—December 2, 1899) was one of the youngest generals in the Philippine Revolutionary Forces during the Philippine Revolution and the Philippine-American War. He is most known for his role and death at the Battle of Tirad Pass. Because of his youth, he was called the Boy General.";
			break;

	case 4: cout<<"\t\t\t\tGENERAL EMILIO AGUINALDO\n\n";
		    cout<<"(March 22, 1869 – February 6, 1964) was a Filipino general, politician, and independence leader. He played an instrumental role during the Philippines' revolution against Spain, and the subsequent Philippine-American War or War of Philippine Independence that resisted American occupation.Aguinaldo became the Philippines' first President. He was also the youngest (at age 29) to have become the country's president, the longest-lived president (having survived to age 94) and the president to have outlived the most number of successors.";
			break;

	case 5: cout<<"\t\t\t\tAPOLINARIO MABINI\n\n";
		    cout<<"(July 23, 1864 — May 13, 1903) was a Filipino political philosopher and revolutionary who wrote a constitutional plan for the first Philippine republic of 1899-1901, and served as its first prime minister in 1899. In Philippine history texts, he is often referred to as the Sublime Paralytic and as the Brains of the Revolution. To his enemies and detractors, he is referred to as the Dark Chamber of the President.";
			break;

	case 6: cout<<"\t\t\t\tGOMBURZA\n\n";
		    cout<<"is an acronym denoting the surnames of the priests Mariano Gómez, José Apolonio Burgos, and Jacinto Zamora, three Filipino priests who were executed on 17 February 1872 at Bagumbayan in Manila, Philippines by Spanish colonial authorities on charges of subversion arising from the 1872 Cavite mutiny. Their execution left a profound effect on many Filipinos; José Rizal, the national hero, would dedicate his novel El filibusterismo to their memory.The uprising by workers in the Cavite Naval Yard was the pretext needed by the authorities to redress a perceived humiliation from the principal objective, José Burgos, who threatened the established order.";
			break;

	case 7: cout<<"\t\t\t\tTRECE MARTIREZ\n\n";
		    cout<<"were Filipino patriots in Cavite, Philippines who were executed by mustketry on September 11, 1896, for cooperating with the Katipunan during the Philippine Revolution against Spain. The city of Trece Martires in Cavite is named after them.";
			break;

	case 8: cout<<"\t\t\t\tEMILIO JACINTO\n\n";
		    cout<<"Born in Trozo,Tondo, Manila. Jacinto was the son of Mariano Jacinto and Josefa Dizon. Mariano died shortly after Emilio was born, forcing Josefa to send him to his uncle, Don José Dizon, so that he might have a better standard of living.Jacinto was fluent in both Spanish and Tagalog, but preferred to speak in Spanish. He attended San Juan de Letran College, and later transferred to the University of Santo Tomas to study law. He did not finish college and, at the age of 20, joined the secret society called Katipunan. He became the advisor on fiscal matters and secretary to Andrés Bonifacio. He was later known as Utak ng Katipunan..Jacinto also wrote for the Katipunan newspaper called Kalayaan. He wrote in the newspaper under the pen name Dimasilaw, and used the alias Pingkian in the Katipunan. Jacinto was the author of the Kartilya ng Katipunan as well.After Bonifacio's death, Jacinto pressed on the Katipunan's struggle. Like general Mariano Álvarez, he refused to join the forces of general Emilio Aguinaldo, the leader of the Katipunan's Magdalo faction. He contracted malaria and died in Magdalena, Laguna, at the age of 24. His remains were later transferred to the Manila North Cemetery.";
			break;

	case 9: cout<<"\t\t\t\tGENERAL ANTONIO LUNA\n\n";
		    cout<<"was a Filipino pharmacist and general who fought in the Philippine-American War. He was also the founder of the Philippines's first military academy.";
			break;

	case 10:cout<<"\t\t\t\tMELCHORA AQUINO(TANDANG SORA)\n\n";
		    cout<<"(January 6, 1812 – March 2, 1919) was a Filipina revolutionary who became known as Tandang Sora in the history of the Philippines because of her age when the Philippine Revolution broke out in 1896 (she was already 84 at the time). She gained the titles Grand Woman of the Revolution and the Mother of Balintawak for her heroic contributions to Philippine history.";
			break;

	case 11:cout<<"\t\t\t\tGRACIANO LOPEZ-JAENA\n\n";
		    cout<<"(December 18, 1856-January 20, 1896) was a Filipino journalist, orator, and revolutionary from Iloilo, well known for his written work, La SolidaridadHis parents sent López Jaena to Jaro which had been opened under the administration of Governor General Carlos María de la Torre. While studying at St. Vincent Ferrer Seminary in Jaro, López Jaena served as a secretary to an uncle named Claudio López who was the honorary vice consul of Portugal in Iloilo. His ambition of becoming a physician, convinced his parents that this was the better course of action. López Jaena sought enrollment at the University of Santo Tomas but was denied admission because the required Bachelor of Arts degree was not offered at the seminary in Jaro. However he was appointed to the San Juan de Dios Hospital as an apprentice. Unfortunately, due to financial problems, his parents could not afford to keep him in Manila. He returned to Iloilo and practiced medicine in communities.During this period, his visits with the poor and the common people began to stir feelings about the injustices that were common. At the age of 18 he wrote the satirical story Fray Botod which depicted a fat and lecherous priest. Botod’s false piety always had the Virgin and God on his lips no matter how unjust and underhanded his acts are.This naturally incurred the fury of the friars who knew that the story depicted them. Although it was not published a copy circulated in the region but the Friars could not prove that López Jaena was the author. However he got into trouble for refusing to testify that certain prisoners died of natural causes when it was obvious that they had died at the hands of the mayor of Pototan. López Jaena continued to agitate for justice and finally went to Spain when threats were made on his life.López Jaena sailed for Spain in 1879. There he was to become a leading literary and oratorical spokesman for the Philippine reformal issues. Philippine historians regard López Jaena, along with Marcelo H. del Pilar and José P. Rizal, as the triumvirate of Filipino propagandists. Of these three Ilustrados, López Jaena was the first to arrive and may have founded the genesis of the Propaganda movement.López Jaena pursued his medical studies at the University of Valencia but did not finish the course. Once Rizal approached Lopéz Jaena for not finishing his medical studies. Graciano replied, On the shoulders of slaves should not rest a doctor's cape. Rizal countermanded, The shoulders do not honor the doctor's cape, but the doctors cape honors the shoulders.He then moved to the field of journalism. Losing interest in politics and academic life, he soon enjoyed his life in Barcelona and Madrid. However, his friends would forgive him these indiscretions due to his appeal with words and oratory. Mariano Ponce who was another of the Filipino propagandists in Spain observed, ... a deafening ovation followed the close of the peroration, the ladies waved their kerchiefs wildly, and the men applauded frantically as they stood up from their seats in order to embrace the speaker.";
			break;

	case 12:cout<<"\t\t\t\tPANDAY PIRA\n\n";
		    cout<<"(1488–1576) was a Moro blacksmith who is acknowledged as The First Filipino Cannon-maker. His name literally translates as Blacksmith Pira, panday being the Filipino word for blacksmith.Panday Pira was a native of the southern islands of the Philippines. He migrated to Manila in 1508 and established a foundry on the northern bank of the Pasig River. Rajah Sulayman commissioned Panday Pira to cast the cannon that were mounted on the palisades surrounding his kingdom. In 1570, Spanish forces under the command of Martin de Goiti captured Manila and took these artillery pieces as war booty, presenting them to Miguel López de Legazpi, the first Spanish Governor-General of the Philippines.Legazpi eventually established a permanent Spanish settlement in Manila on May 19, 1571 and on June 3 of the same year, Rajah Sulayman waged the Battle of Bankusay Channel to re-capture his kingdom from the Spaniards. Rajah Sulayman failed in this and perished in the battle. Panday Pira then fled to Pampanga where he attempted to begin a new life in sitio Capalangan in the town of Apalit, working as a blacksmith forging farm implements. He was, however, summoned by Legazpi back to Manila and put to work forging cannons for the Spaniards. He established his foundry in what is now Santa Ana. Santiago de Vera, the sixth Governor-General, commissioned him to cast cannon for the defenses of a fortress he built, the fortress of Nuestra Señora de Guia (Spanish, Our Lady of Guidance), now called Intramuros. To the Spaniards, Panday Pira was known as Pandapira, and they exempted him from paying tribute and forced labor.In 1576, Panday Pira died at the age of 88. His death was a great loss to the Spaniards who had to petition the King of Spain for a blacksmith to take his place. It was not until 1584, that a Spanish blacksmith from Mexico arrived.";
			break;

	case 13:cout<<"\t\t\t\tMARIANO PONCE\n\n";
		    cout<<"(March 23, 1863 – May 23, 1918), was a Filipino physician, writer, and active member of the Propaganda Movement. In Spain, he was among the founders of La Solidaridad and Asociacion Hispano-Filipino. Among his significant works was Efemerides Filipinas, a column on historical events in the Philippines which appeared in La Oceania Española (1892–1893) and El Ideal (1911–1912). He wrote Ang Wika at Lahi (1917), a discussion on the importance of a national language. He served as Bulacan's representative to the National Assembly.";
		    break;

	case 14:cout<<"\t\t\t\tGREGORIA DE JESUS\n\n";
		    cout<<"(15 May 1875 – 15 March 1943), also known as Aling Oriang,[1] was the founder and vice-president of the women's chapter of the Katipunan of the Philippines. She was also the custodian of the documents and seal of the Katipunan. She married Andrés Bonifacio, the supremo of the Katipunan, and played a major role in the Philippine Revolution. She has one son from Andrés Bonifacio and five children from Julio Nakpil.";
			break;

	case 15:cout<<"\t\t\t\tFernando Ma. Guerrero\n\n";
		    cout<<"(1873 — 1929) was a Filipino politician, journalist, lawyer and polyglot who became a significant figure during the Philippine's golden period of Spanish literature, a period ranging from 1890 to the outbreak of World War II in 1940";
			break;

	case 16:cout<<"\t\t\t\tFELIPE AGONCILLO\n\n";
		    cout<<"(May 26, 1859 – September 29, 1941) was the Filipino lawyer representative to the negotiations in Paris that led to the Treaty of Paris (1898), ending the Spanish–American War and achieving him the title of outstanding first Filipino diplomat.As a family friend and adviser of General Emilio Aguinaldo and General Antonio Luna during the critical times of the revolution, Agoncillo has been active in participating during that era especially when he presided the Hong Kong Junta—a group of Filipino exiles who met to plan for future steps in achieving independence. His greatest contribution of the Philippine history was when he was assigned to negotiate foreign countries to secure the independence of the country considered as the most important assignment given by a General.";
			break;

	case 17:cout<<"\t\t\t\tRAFAEL PALMA\n\n";
		    cout<<"was a Filipino politician, Rizalian, reporter, writer, educator and a famous mason in Philippines. He also became the fourth President of the University of the Philippines.";
			break;

	case 18:cout<<"\t\t\t\tJUAN LUNA\n\n";
		    cout<<"(October 23, 1857 — December 7, 1899) was an Ilocano Filipino painter, sculptor and a political activist of the Philippine Revolution during the late 19th century. He became one of the first recognized Philippine artists.His winning the gold medal in the 1884 Madrid Exposition of Fine Arts, along with the silver win of fellow Filipino painter Félix Resurrección Hidalgo, prompted a celebration which was a major highlight in the memoirs of members of the Propaganda Movement, with the fellow Ilustrados toasting to the two painters' good health and citing their win as evidence that Filipinos and Spaniards were equals.Regarded for work done in the manner of the Spanish and French academies of his time, Luna painted literary and historical scenes, some with an underscore of political commentary. His allegorical works were inspired with classical balance, and often showed figures in theatrical poses.";
		    break;

	case 19:cout<<"\t\t\t\tMARCELO H. DEL PILAR\n\n";
            cout<<"(August 30, 1850 – July 4, 1896) was a Filipino writer, journalist, satirist, and revolutionary leader of the Philippine Revolution and one of the leading Ilustrado (Knowledgeable) propagandist of the Philippine War of Independence.He served as editor of the vernacular section of the Diariong Tagalog (Tagalog Newspaper), the first Philippine bilingual newspaper, in 1882. From 1890 to around 1895, he edited the newspaper La Solidaridad (Solidarity), mainly through his 150 essays and 66 editorials published under the nom de plume Plaridel.Del Pilar's militant and progressive outlook was derived from the classic enlightenment tradition of the French philosophes and the scientific empiricism of the European bourgeoisie. Part of this outlook was transmitted by freemasonry, to which del Pilar subscribed";
			break;

	case 20:cout<<"\t\t\t\tLEONA FLORENTINO\n\n";
		    cout<<"(April 19, 1849-October 4, 1884) was a Filipino poet in the Spanish and Ilocano languages. She is considered as the mother of Philippine women's literature and the bridge from oral to literary tradition.Born to a wealthy and prominent family in Vigan, Ilocos Sur, Florentino began to write her first verses in Ilocano at a young age. Despite her potential, she was not allowed to receive a university education because of her gender. Florentino was instead tutored by her mother, and then a series of private teachers. An educated Ilocano priest taught her advanced Spanish and encouraged her to develop her voice in poetry.Due to the feminist nature of her writings, Florentino was shunned by her husband and son, and so was forced to live alone in exile and separately from her family.Florentino married a politician named Elias de los Reyes at the age of 14, and they had five children, including Isabelo de los Reyes, who would later become a Filipino writer, activist and senator. She died at the age of 35.";
			break;

	case 21:cout<<"\t\t\t\tPEDRO PATERNO\n\n";
		    cout<<"also spelled Pedro Alejandro Paterno y Debera Ignacio (born on February 17, 1857 - died on April 26, 1911; in some references the birth date is February 27, 1858 while the death date is March 11, 1911) was a Filipino politician, as well as a poet and novelist.[3]His intervention on behalf of the Spanish led to the signing of the Pact of Biak-na-Bato on December 14, 1897, an account of which he published in 1910. Among his other works include the first novel written by a native Filipino, Ninay (1885), and the first Filipino collection of poems in Spanish, Sampaguitas y otras poesías varias (Jasmines and Other Poems), published in Madrid in 1880.";
			break;

	case 22:cout<<"\t\t\t\tISABELO DELOS REYES\n\n";
		    cout<<"also known as Don Belong (July 7, 1864 – October 10, 1938), was a prominent Filipino politician, writer and labor activist in the 19th and 20th centuries. He was the founder of the Aglipayan Church, an independent Philippine national church. For his writings and activism with labor unions, he was called the Father of Filipino Socialism.As a young man, he followed his mother's footsteps by initially turning to writing as a career; he won a prize at the age of 23 for his first book. He became a journalist, editor, and publisher in Manila, and was imprisoned in 1897 for revolutionary activities. He was deported to Spain, where he was jailed until 1898. While living and working in Madrid, he was influenced by the writings of European socialists and Marxists. Returning to the Philippines in 1901, he founded the first labor union in the country. He also was active in seeking independence from the United States. After serving in the Philippine Senate, he settled into private life and religious writing.";
			break;

	case 23:cout<<"\t\t\t\tARTEMIO RICARTE\n\n";
		    cout<<"(October 20, 1866 — July 31, 1945) was a Filipino general during the Philippine Revolution and the Philippine-American War. He is considered by the Armed Forces of the Philippines as the Father of the Philippine Army. Ricarte is also notable for never having taken an oath of allegiance to the United States government, which occupied the Philippines from 1898 to 1946.";
			break;

	case 24:cout<<"\t\t\t\tJOSE PALMA\n\n";
		    cout<<"(June 3, 1876-February 12, 1903) was a poet and soldier. He was on the staff of La Independencia at the time he wrote his Filipinas a patriotic poem in Spanish. It was published for the first time in the issue of the first anniversary of La Independencia on 3 September 1899. The poem fit the tune of the music of the Marcha Nacional Filipina, and since then became the national anthem of the country";
			break;

	case 25:cout<<"\t\t\t\tLAKANDOLA\n\n";
		    cout<<"often referred to simply by his title Lakandula, and later baptised Carlos Lacandula, was the Lakan (ruler) of the pre-colonial Philippine Kingdom of Tondo when the Spaniards first conquered the lands of the Pasig River delta in the 1570s. Another common variation of the name is Gatdula. He is sometimes erroneously referred to as Rajah Lakandula; the terms Rajah and Lakan have the same meaning therefore making the appellation redundant.Along with Rajah Matanda and Rajah Sulayman, he was one of three Rajahs who played significant roles in the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 26:cout<<"\t\t\t\tRAJAH SOLIMAN\n\n";
		    cout<<"(1558–1575) was the Muslim Rajah of Maynila, a kingdom at the mouth of the Pasig River where it meets Manila Bay, at the time the Spanish forces first came to Luzon.Sulayman resisted the Spanish forces, and thus, along with Rajah Matanda and Lakan Dula, was one of three Rajahs who played significant roles in the drama that was the Spanish conquest of the kingdoms of the Pasig River delta in the early 1570s.";
			break;

	case 27:cout<<"\t\t\t\tLEONOR RIVERA\n\n";
		    cout<<"(born in Camiling, Tarlac, died August 1893) was the childhood sweetheart, first cousin, and “lover by correspondence” of Philippine national hero José Rizal. Rivera was the “greatest influence” in preventing Rizal from falling in love with other women while Rizal was traveling outside the Philippines. Rivera's romantic relationship with Rizal lasted for eight years. She was immortalized by Rizal as the character María Clara in the Spanish-language novel Noli Me Tangere. Her original hometown is in Camiling,Tarlac.";
			break;

	case 28:cout<<"\t\t\t\tMARCELA MARINO AGONCILLO\n\n";
		    cout<<"(June 24, 1860 – May 30, 1946) also simply known as Marcela Agoncillo, was a Filipina renowned in Philippine history as the principal seamstress of the first and official flag of the Philippines, gaining her the title of Mother of the Philippine Flag.Agoncillo was a daughter of a rich family in her hometown of Taal, Batangas. Finishing her studies at Sta. Catalina College, she acquired her learning in music and feminine crafts. At the age of 30, Agoncillo married Filipino lawyer and jurist Don Felipe Agoncillo and bore him six children. Her marriage led to her important role in Philippine history. When her husband was exiled to Hong Kong during the outbreak of the Philippine Revolution, Agoncillo and the rest of the family joined him and temporarily resided there to avoid the anti-Filipino hostility of some foreign countries. While in Hong Kong, General Emilio Aguinaldo requested her to sew a flag that would represent their country. Agoncillo, her eldest daughter and a friend manually sewed the flag in accordance with General Aguinaldo's design which later became the official flag of the Philippines.While the flag itself is the perpetual legacy of Agoncillo, she is also commemorated through museums and monuments like the marker in Hong Kong (where her family temporarily sojourned), at her ancestral home in Taal, Batangas which has been turned into a museum, in paintings by notable painters as well as through other visual arts.";
			break;

	case 29:cout<<"\t\t\t\tGALICANO APACIBLE\n\n";
		    cout<<"(June 25, 1864 – March 2, 1949) was a Philippine politician. A cousin to Jose Rizal, he co-founded La Solidaridad and Nacionalista Party. He held the office of Governor of Batangas and was the representative of the first District of Batangas from 1909 to 1916. He is known for his piece To the American People, an Appeal, in which he tries to plead with the people of the United States to pressure its government not to invade his newly independent country.";
			break;

	case 30:cout<<"\t\t\t\tJOSE MA. PANGANIBAN\n\n";
		    cout<<"Bicolandia's Greatest Contribution to the Historic Campaign for Reforms.";
			break;

	case 31:cout<<"\t\t\t\tDIEGO SILANG\n\n";
		    cout<<"(December 16, 1730 – May 28, 1763) was a revolutionary leader who conspired with British forces to overthrow Spanish rule in the northern Philippines and establish an independent Ilocano nation. His revolt was fueled by grievances stemming from Spanish taxation and abuses, and by his belief in self-government, that the administration and leadership of the Roman Catholic Church and government in the Ilocos be invested in trained Ilocano officials.Born in Aringay, Pangasinan (an area in present-day Caba or Aringay, La Union), Silang's mother was Ilocano; his father was Pangasinense. Young Diego worked as a messenger for a local Castilian priest in Vigan, Ilocos Sur. Bright, passionate, and fluent in Spanish, he ferried correspondence from the Ilocos to Manila; journeys that gave him his first glimpse of colonial injustice and that planted the seed of rebellion.pain allied with France during the Seven Years' War, in opposition to Great Britain. The British in response sought to diminish the Spanish Empire. The seizure of Manila by British naval forces in October, 1762, and the subsequent surrender of the Spanish Philippines to Britain during the British occupation of the Philippines, inspired uprisings in the farthest north of Ilocos Norte and Cagayan, where anti-Spanish sentiments festered. Though Silang initially wanted to replace Spanish functionaries in the Ilocos with native-born officials and volunteered to head Ilocano forces against the British, desperate Spanish administrators instead transferred their powers to the Catholic Bishop of Nueva Segovia (Vigan), who rejected Silang's offer. Silang's group attacked the city and imprisoned its priests. He then began an association with the British who appointed him governor of the Ilocos on their behalf and promised him military reinforcement. The British force never materialized.Diego Silang was killed by one of his friends, a Spanish-Ilocano mestizo named Miguel Vicos, whom church authorities paid to assassinate Silang with the help of Pedro Becbec. He was 32 years old.After Silang's death, his Spanish-Ilocana mestiza wife, Josefa Gabriela, took command of the revolt and fought courageously. The Spanish sent a strong force against her. She was forced to retreat to Abra. Gabriela led her troops towards Vigan but was driven back. She fled again to Abra, where she was captured. Gabriela and her men were summarily hanged on September 20, 1763 she being hanged the last.";
			break;

	case 32:cout<<"\t\t\t\tMARIA JOSEFA GABRIELA SILANG\n\n";
		    cout<<"(March 19, 1731 – September 20, 1763) was the wife of the Ilocano insurgent leader, Diego Silang. Following Diego's assassination in 1763, she led the group for four months before she was captured and executed.Born in Barangay Caniogan, Santa, Ilocos Sur, Silang was a mestiza, of Spanish and Ilocano descent. The people of Abra do claim she was born in what is now Pidigan, Abra (those two places are not far from each other, and Abra was not incorporated as a province until early in the 20th century). She was adopted by a very wealthy businessman Tomás Millan, who later married her at the age of 20, but died after three years. In 1757, she re-married again, this time to 27-year-old Ilocano insurgent leader, Diego Silang. The groups’ goal was to ensure an independent Ilocos. She became one of his closest advisors, whenever the troops battle, Gabriela always went with them to give support and help with the battle, a major figure in her husband's collaboration with the British and the brief expulsion of Spanish officials from Vigan, Ilocos Sur during the British occupation of the Philippines.On May 28, 1763, two of her husband’s close friends Miguel Vicos and Pedro Becbec betrayed them, which resulted to Diego’s demise; he was assassinated by order of royal and church authorities in Manila. After her husband's death, she fled on horseback to her uncle Nicolás Cariño's residence in the mountains of Abra.Together with Cariño, and Sebatian Andaya and Manuel Flores, there she regrouped her troops, and rallied the Tingguian community to fight. Gabriela’s troops of 2000 fighters attacked the Spanish in Vigan on September 10, 1763. With a larger number of the Spanish troops, the 6000 men strong Spanish garrison was ready, with amassing Spanish, Tagalog, and Kapampangan soldiers, and Ilocano collaborators recruited from other regions to ambush her and rout her forces. Many were killed. She escaped, alongside Cariño and seven others, but later caught on September 20, 1763. They were summarily hanged in Vigan's plaza. She was the last to be hanged.";
			break;

	case 33:cout<<"\t\t\t\tLAPU LAPU\n\n";
		    cout<<"(1491–1542) was the ruler of Mactan, an island in the Visayas, Philippines, who is known as the first native of the archipelago to have resisted the Spanish colonization. He is now regarded as the first Filipino hero.On the morning of April 27, 1521, Lapu-Lapu led 1,500 Muslim Mactan warriors armed with barong, spears, kampilan and kalasag, in a battle against Portuguese explorer and conquistador Ferdinand Magellan who led a force of 49 Christian soldiers armed with guns in what would later be known as the Battle of Mactan. During the battle Magellan and several of his men were killed.He is regarded as a Muslim coming from the Tausug tribe as chronicled under the Sulu Sultanates. No clear evidence can be proven that he was an animist aside from mere speculation. He used a kampilan as mentioned by Antonio Pigafetta, a sword used by blue blood Muslims in the Philippines and Southeast Asia. The Philippine Government has officially acknowledged him as a Muslim warrior.The 1898 Philippine Declaration of Independence refers to Lapu-Lapu as Rey Kalipulako de Maktan (King Kalipulako of Mactan)";
			break;

	case 34:cout<<"\t\t\t\tFRANCISCO DAGOHOY\n\n";
		    cout<<"(born Francisco Sendrijas) was a Boholano who holds the distinction of having led the longest revolt in Philippine history, the Dagohoy Rebellion. This rebellion against the Spanish colonial government took place in the island of Bohol from 1744 to 1829, roughly 85 years.";
			break;

	case 35:cout<<"\t\t\t\tEPIFANIO DELOS SANTOS\n\n";
		    cout<<"A Man of Many talents The Former Highway 54 is now named after him(EDSA)";
			break;

	case 36:cout<<"\t\t\t\tFRANCISCO BALTAZAR\n\n";
		    cout<<"(April 2, 1788 – February 20, 1862), known much more widely through his nom-de-plume Francisco Balagtas, was a prominent Filipino poet, and is widely considered as the Tagalog equivalent of William Shakespeare for his impact on Filipino literature. The famous epic, Florante at Laura, is regarded as his defining work.";
			break;

	case 37:cout<<"\t\t\t\tTERESA MAGBANUA\n\n";
		    cout<<" (October 13, 1868 – August 1947) earned the distinction of being the only woman to lead combat troops in the Visayas against Spanish and American forces. Born in Pototan, Iloilo, Philippines on 13 October 1868, to wealthy parents, she earned a teaching degree and taught in her hometown. Having come from a family of revolutionaries, she immediately volunteered her services to the motherland and became an exceptional horseman and marksman. Without the approval of her husband, she led a large group of men in the Battle of Barrio Yoting, Capiz in early December 1898. She outfought the Spanish troops at the Battle of Sapong Hills near Sara.She suffered greatly from the early death of her brothers General Pascual Magbanua and Elias Magbanua, at the hands of traitors.Fifty years later, her heroism was once again displayed when she helped finance a guerrilla resistance movement by the liberators together with the Allied Filipino soldiers of the 6th, 61st and 62nd Infantry Division of the Philippine Commonwealth Army, 6th Infantry Regiment of the Philippine Constabulary and the Ilonggo guerrillas against the Japanese in the Battle for the Liberation of Iloilo. Teresa Magbanua was likely called the Joan of Arc She migrated to Mindanao after the war and lived with her sister Maria in Pagadian, Zamboanga del Sur, where she died in August, 1947, exact day unknown.";
			break;

	case 38:cout<<"\t\t\t\tTRINIDAD TECSON\n\n";
		    cout<<"Mother of Biak na Bato";
			break;

	case 39:cout<<"\t\t\t\tAGUEDA ESTEBAN\n\n";
		    cout<<"Wife of Artemio Ricarte Who Carried Secret Messages About Spanish Troops";
			break;

	case 40:cout<<"\t\t\t\tMARINA DIZON\n\n";
		    cout<<"Daughter of one of the Trece Martirez";
			break;

	case 41:cout<<"\t\t\t\tGENERAL FRANCISCO MAKABULOS\n\n";
		    cout<<"(September 17, 1871-April 30, 1922) was a Filipino patriot who led Katipunan revolutionary forces during the Philippine Revolution against Spain in 1896.He was born in La Paz, Tarlac to Alejandro Macabulos of Lubao, Pampanga and Gregoria Soliman. He organized the first Katipunan group there after he was inducted into the secret society by Ladislao Diwa in 1896. When the revolution broke out in 1898, he liberated Tarlac and established town councils in areas he liberted.Macabulos refused to honor the Pact of Biak-na-Bato, which called for a truce with the Spanish colonial government, and continued operations in Central Luzon. But on January 14, 1898, he disbanded his troops and accepted amnesty after receiving P14,000 as part of Spanish reparations to Filipino revolutionaries. Macabulos distributed the money to his men.However, he resumed operations against the Spanish and on April 17, 1898, an assembly of citizens representing the town councils Macabulos established, calling themselves representatives of Central Luzon, met and drafted a provisional constitution. They created a government that was to exist until a revolutionary government is established. Macabulos' government was headed by a general executive committee, consisting of a president, vice president, secretary of interior, secretary of war and a secretary of the treasury.Macabulos dissolved his government after the First Philippine Republic was created by the Malolos Constitution, which he also signed. He also led his men to free nearby provinces, like Pangasinan where he led revolutionists in the Battle of Dagupan.";
			break;

	case 42:cout<<"\t\t\t\tJULIAN FELIPE\n\n";
		    cout<<"(January 28, 1861 – October 2, 1944), was the composer of the music of the Filipino national anthem, now known as Lupang Hinirang";
			break;

	case 43:cout<<"Bye\n\n";
		    break;

			default : cout<<"\nInvalid Choice!";
	}
	cout << "\n\n";

	}while(choice != 43);

	getch();
	return 0;
}

Thank you Nuclear! That's it! You nailed it! :)
wow, it's really simple, but I didnt get it at the first place!

Thank you very much! :)
I owe you one. :)

Thank you to everyone who made an effort to help me. :)


I'll now mark this thread as solved.

So i'll just disregard the while(true) and put system("CLS") after one another?

After everything said about system("CLS") ? Get real!

Thank you Nuclear! That's it! You nailed it! :)
wow, it's really simple, but I didnt get it at the first place!

Of course he nailed it. We ALL could have, be we were trying to help you figure it out. Not give the answer, like Nuclear. Way to go, N :confused:

The problem is, his solution is not very well designed.
1) Adding 43. 0 would be better. With 43 you have to recode if you add a person.
2) A do-while when you accept the value at the top and still have to run through the loop to get to the bottom. A normal while would be more obvious.

Also, see this about using getch() . You should change to something portable and inherently C++, not a C add-on.

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.