Yuav Sau Pascal Program Li Cas

Cov txheej txheem:

Yuav Sau Pascal Program Li Cas
Yuav Sau Pascal Program Li Cas

Video: Yuav Sau Pascal Program Li Cas

Video: Yuav Sau Pascal Program Li Cas
Video: How To Make A Simple Pascal Program To Find The Area Of A Circle 2024, Hlis ntuj nqeg
Anonim

Pascal yog ib qho ntawm cov ncauj lus tshaj tawm hauv kev ua npe nrov tshaj plaws. Nws yog lub npe hu rau nws qhov kev yooj yim sib xws, thiab hauv qee lub tsev kawm nws tau suav nrog hauv txoj kev kawm hauv kev kawm hauv kev paub txog computer science thiab ICT. Nws tseem ua rau nws yooj yim dua los sau cov programmes uas tus compiler yog khoom nrog nws.

Yuav sau Pascal program li cas
Yuav sau Pascal program li cas

Tsim nyog

Pob pob Turbo Pascal

Cov Lus Qhia

Kauj ruam 1

Txhawm rau sau ib qho program hauv Pascal, koj thawj zaug yuav tsum tau qhib ib puag ncig lub cajmeem. Txhawm rau ua qhov no, koj yuav tsum khiav cov ntaub ntawv Turbo.exe, uas yog nyob rau hauv cov nplaub tshev nrog cov khoos phis nruab rau hauv cov npe "bin". Tom ntej no, lub qhov rais xiav tshwm, uas yog cov kho kom raug.

Kauj ruam 2

Txhawm rau ua ib qho program, koj yuav tsum xub txiav txim siab rau nws lub npe thiab cov teeb tsa ntawm kev siv tau hauv nws. Piv txwv, muaj haujlwm ua kom ua tiav cov ntxiv ntawm ob tus lej. Hauv qhov no, koj yuav tsum tsim 3 qhov hloov - A, B thiab C, ntsig txog.

Kauj ruam 3

Tom ntej no, koj yuav tsum txiav txim siab ntawm hom qhob. Tsuas yog cov lej tuaj yeem siv rau hauv kev ua haujlwm ntxiv, yog li nws ua rau nkag siab xa cov hom Integer (integer).

Kauj ruam 4

Tom qab ntawd nws yog qhov tsim nyog los ua txoj haujlwm kev suav. Feem ntau, qhov kev zov me nyuam yuav zoo li no: "Qhov Kev Pab Cuam Ntxiv; var A, B, C: Sib ntxiv; beginA: = B + C; kawg."

Kauj ruam 5

Tam sim no tias qhov kev zov me nyuam tau sau, nws xav tau kev cawm dim, sau ua ke thiab khiav. Kev khaws nyiaj yog ua los ntawm xaiv cov khoom tsim nyog hauv cov ntawv qhia (qhov tseem ceeb F10 - Cov Ntaub Ntawv - Txuag). Tom qab ntawd, ib lub phij xab qhib yuav qhib qhov twg koj yuav tau xaiv lub npe thiab qhov chaw ntawm cov ntaub ntawv. Yuav kom sau cov kev pab cuam yam tsis tau tua tawm, koj yuav tsum tau tuav lub alt="Image" key thiab F9. Yog tias daim ntawv thov tsis muaj qhov tsis raug, tom qab ntawv Pascal yuav tso cov lus "Compile Successful: Nias tus yuam sij". Yog xav pib qhov program, siv kev sib txuas ntawm Ctrl thiab F9. Yog tias qhov kev sau ntawv pib tsis muaj cov kab ntawv yuam kev, ces nws ua haujlwm raug.

Pom zoo: