Hello c++.com The Names Raza .I am A begginer In C++. I am making a periodic table for leisure but i have a problem I want it to be a bit fancy and hence i have made ASCII periodic table but I want It TO stay even after encountering a clrscr()
so here is the output of the program.
//////////////////////////This Should Stay/////////////////////////////////////
1 18
1A 8B
----- 2 13 14 15 16 17 -----
1 | H | 2A 3B 4B 5B 6B 7B |He |
|---+---- --------------------+---|
2 |Li |Be | | B | C | N | O | F |Ne |
|---+---| 3 4 5 6 7 8 9 10 11 12 |---+---+---+---+---+---|
3 |Na |Mg | 3B 4B 5B 6B 7B | 8B |1B 2B |Al |Si | P | S |Cl |Ar |
|---+---| |---------------------------------------+---+---+---+---+---+---|
4 |K |Ca | |Sc |Ti |V |Cr |Mn |Fe |Co |Ni |Cu |Zn |Ga |Ge |As |Se |Br |Kr |
|---+---| |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
5 |Rb |Sr | | Y |Zr |Nb |Mo |Tc |Ru |Rh |Pd |Ag |Cd |In |Sn |Sb |Te | I |Xe |
|---+---| |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
6 |Cs |Ba |LAN|Lu |Hf |Ta | W |Re |Os |Ir |Pt |Au |Hg |Ti |Pb |Bi |Po |At |Rn |
|---+---| |---+---+---+---+---+---+---+---+---+---+---+--+---+---+---+----|
7 |Fr |Ra |ACT|Lr |Rf |Db |Sg |Bh |Hs |Mt |Ds |Rg |Cn |Uut|Fl |Uup|Lv |Uus|Uuo|
--------- -----------------------------------------------------------------
-------------------------------------------------------------
Lanthanide |La |Ce |Pr |Nd |Pm |Sm |Eu |Gd |Tb |Dy |Ho |Er |Tm |Yb |Lu |
|---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
Actinide |Ac |Th |Pa | U |Np |Pu |Am |Cm |Bk |Cf |Es |Fm |Md |No |Lw |
-------------------------------------------------------------
//////////////////////////This Should Stay /////////////////////////////////////
Welcome User The Following Program Will Help You Find All The Information You
Need About Any element In The Periodic Table
clrscr()
You Can Search The Program Using Any Of The Following Methords:
1.By Symbol.
2.By Name
3.By Atomic Number
Which Way Would You Prefer:
cin>>choice
Then The Three Options Will Execute
clrscr()
nElement Name:
Element Symbol:
Atomic Number:
Atomic Mass:
State At Room Temperature:
Found In Group:
Melting Point:
Boiling Point: C
Density (g/cm^3):
Ionisation Enthalpy(eV):
clrscr()
clrscr()
As You Can See The Table Has To Survive 4-5 clrscr() Soo My Dear Society Of Programmers Please Help Me
You you are going to post a link in parenteses, remember to leave space between last link character and closing parentesis, or it will be added to link, ruining it.
If you read code, you'll see that new_clrscr() if a user-defined function