第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

一道編程題,求大神指點(diǎn)

一道編程題,求大神指點(diǎn)

C C++
fengf96 2017-03-20 21:56:12
Description You work for an art store that has decided to carry every style and size of drafting triangle in existence. Unfortunately, sorting these has become a problem. The manager has given you the task of organizing them. You have decided to classify them by edge length and angles. To measure each triangle, you set it on a large sheet of very accurate graph paper and record the coordinate of each point. You then run these three points through a computer program to classify the triangles according to: Scalene no equal sides Isosceles two equal sides Equilateral three equal sides and Acute all angles under 90 Right one angle equal 90 Obtuse one angle over 90 Of course, sometimes you make mistakes entering the data, so if you input points that do not form a valid triangle, your program should tell you. Input One triangle is described per line. Each line has six measurements taken to the nearest 0.001 in the order: x1 y1 x2 y2 x3 y3 The final line of input will contain only a -1. None of the test sets contain non-right angles in the range 88-92 degrees, nor do any of the test sets include any non-equal side lengths for one triangle within 0.01 of one another. Output You will output one line for each triangle, which will contain two words: < length classification > < angle classification > or Not a Triangle The final line of your output file will be: End of Output Sample Input 10.000 10.000 10.000 20.000 20.000 10.000 0.000 0.000 4.000 0.000 2.000 3.464 -1 Sample Output Isosceles Right Equilateral Acute End of Output 這道題怎么做,求大神
查看完整描述

4 回答

?
田心楓

TA貢獻(xiàn)1064條經(jīng)驗(yàn) 獲得超383個(gè)贊

I do not know

查看完整回答
1 反對(duì) 回復(fù) 2017-03-20
?
三十二應(yīng)遍塵剎

TA貢獻(xiàn)22條經(jīng)驗(yàn) 獲得超7個(gè)贊

666

查看完整回答
反對(duì) 回復(fù) 2017-03-21
  • 4 回答
  • 0 關(guān)注
  • 1709 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)