【正文】
? 拜特 byte:一群八個(gè) bit來表示一二進(jìn)位數(shù)字稱為一個(gè) byte ? 字元 word:在電腦中另一更大群的 bit組合稱為word ? 二進(jìn)位制 binary number system與十進(jìn)位制decimal number system ? 字元數(shù)據(jù) character data、整數(shù)數(shù)據(jù) integer data、實(shí)數(shù)數(shù)據(jù) real data 14 電腦語言的一面觀 ?電腦可執(zhí)行之運(yùn)算 ? 載入 load、儲(chǔ)存 store、 ? 加 add、減 subtract、 ? 乘 multiply、除 division、 ? 比較 parison。 ? Ada、 Basic、 C、 COBOL、 Pascal、Fortran… 等。 ?每一程式單元 program unit為一完整陳述亦即為單一可分別編譯之FORTRAN碼。 (數(shù)學(xué)方法 ) ? 結(jié)束部份: ? 停止執(zhí)行之陳述指令 ? 停止, stop ? 停止,回呼叫之程式 return ? 程式終止之陳述指令 end ? 程式的型 (style) 建立程式書寫設(shè)計(jì)之個(gè)人品味與風(fēng)格。 39。sum of a and b equal to 39。input a and b value39。input a and b value39。 b =39。,) ? stop ? end 40 ? open(1,file=39。) ? open(11,file=39。) ? read(1,*)a,b ? sum=a+b ? write(11,1000)sum ? 1000 format(5x,39。,status=39。,status=39。,) ? stop ? end 42 ? 100 write(*,*)39。,/,5x,39。,39。) degree c39?!?to (39。) ? read(*,*)f ? if (f .ge. 9999)stop ? c=(f32.)*5./9. ? write(*,1000)f,c ? 1000 format (2x,39。 ? write(*,1001) ? 1001 format(5x,39。) ? read(1,1001)a,b ? 1001 format() ? sum=a+b ? write(6,1000)sum ? 1000 format (5x,39。) ? open(6,file=39。,) ? stop ? end 41 ? open(1,file=39。,status=39。,status=39。sum of a amp。 a =39。sum of a and b equal to 39。sum of a and b equal to 39。h1h2…h(huán) n39。 (除了指數(shù)外,同層次則由左至右依序運(yùn)算 ) ? 混合模式算術(shù) Ex. 1+1/4=1 1.+1/4=1. 1+1./4= ? 混合模式算術(shù)與指數(shù)