亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 3296 | 回復(fù): 15
打印 上一主題 下一主題

新人求助。!求真心幫忙的 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2013-03-20 20:46 |只看該作者 |倒序?yàn)g覽
新人, 然后有習(xí)題不懂得,求大神幫助。
第一個(gè)問題: 怎么把my $Fe l lows = "despi:55008, pat:55025, serge:55028, norm:55024, " .
"gerd:55011, kris:55018" ; 變成
Number of fellows: 6
My fellows list:
1. despi 55008
2. gerd 55011
3. kris 55018
4. norm 55024
5. pat 55025
6. serge 55028

第二個(gè)問題:Enter lines of words:
Come let us hasten to a higher plane
Where dyads tread the fairy fields of Venn
Their indices bedecked from one to n
Commingled in an endless Markov chain
a to us hasten
fields fairy tread the
to one bedecked from
chain Markov an endless

This command prints four words of each line in the order: fourth, third,
rst and second. The arguments of a command are stored in the special
list @ARGV. The input on a LINUX machine was terminated by a Ctrl-D.
On Windows use a Ctrl-Z.

第三個(gè)問題:怎么樣寫一個(gè)這樣的程序呢?
Enter your initial deposit: 2500
Enter the annual interest rate: 0.05
How many years you do not want to touch the money: 5
*****************************************************
After 0 years you have: $2500
After 1 years you have: $2625
After 2 years you have: $2756.25
After 3 years you have: $2894.0625
After 4 years you have: $3038.765625
After 5 years you have: $3190.70390625


第四個(gè)問題:
my $VAR = {
'elements' => {
'element001' => {
'ename' => 'carbon' ,
'aweight' => 1 2 . 0 1 0 ,

'symbol' => 'C' ,
'mpointC' => 3500 ,
},
'element002' => {
'ename' => 'oxygen' ,
'aweight' => 15.999 ,
'symbol' => 'O' ,
'mpointC' => -218.4 ,
} ,
'element003' => {
'ename' => 'aluminum' ,
'aweight' => 26 .981,
'symbol' => 'Al' ,
'mpointC' => 660 ,
} ,
'element004' => {
'ename' => 'neon' ,
'aweight' => 20.179,
'symbol' => 'Ne' ,
'mpointC' => -248.6 ,
} ,
'element005' => {
'ename' => 'fluorine' ,
'aweight' => 18.998 ,
'symbol' => 'F' ,
'mpointC' => -219.62,
}
}
};
使用foreach循環(huán)語句,用Fahrenheit_value = (9/5) * Celsius_value + 32這個(gè)公式,寫出一個(gè)這樣的東西
Element: aluminum
Symbol : Al
Atomic weight: 26.981
Melting point: 660 (Celsius)
Melting point: 1220 (Fahrenheit)
*************************
Element: carbon
Symbol : C
Atomic weight: 12.01
Melting point: 3500 (Celsius)
Melting point: 6332 (Fahrenheit)
*************************
Element: fluorine
Symbol : F
Atomic weight: 18.998
Melting point: -219.62 (Celsius)
Melting point: -363.316 (Fahrenheit)
*************************
Element: neon
Symbol : Ne
Atomic weight: 20.179
Melting point: -248.6 (Celsius)
Melting point: -415.48 (Fahrenheit)
*************************
Element: oxygen
Symbol : O
Atomic weight: 15.999
Melting point: -218.4 (Celsius)
Melting point: -361.12 (Fahrenheit)
*************************


這個(gè)有點(diǎn)多,可能也沒有說清楚,
不過真的不知道怎么辦了,只好求助大家。
集思廣益啊,我也在看小駱駝那本書呢,哎。!
求各位大神幫助。。!

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2013-03-21 07:46 |只看該作者
前三題參考小駱駝書,最后一題看大駱駝書第9章

論壇徽章:
7
戌狗
日期:2013-12-15 20:43:38技術(shù)圖書徽章
日期:2014-03-05 01:33:12技術(shù)圖書徽章
日期:2014-03-15 20:31:17未羊
日期:2014-03-25 23:48:20丑牛
日期:2014-04-07 22:37:44巳蛇
日期:2014-04-11 21:58:0915-16賽季CBA聯(lián)賽之青島
日期:2016-03-17 20:36:13
3 [報(bào)告]
發(fā)表于 2013-03-21 09:03 |只看該作者
感覺好難{:3_188:}

第一:
  1. #!/usr/bin/perl
  2. use 5.016;

  3. my $Fellows =
  4.     "despi:55008, pat:55025, "
  5.   . "serge:55028, norm:55024, "
  6.   . "gerd:55011, kris:55018";

  7. my @f = grep s/:/  /, sort split ', ', $Fellows;
  8. my $n = 1;
  9. say 'Number of fellows: ' . @f;
  10. say 'My fellows list:';
  11. say $n++, ". $_" for @f;
復(fù)制代碼

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2013-03-21 11:20 |只看該作者
哈 能有直觀的回復(fù)是最好不過的了。。。。回復(fù) 2# ypqfyf


  

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2013-03-21 12:34 |只看該作者
貌似跟老師教的不太一樣。不過也能成功。。。√兄x了 話說后面幾個(gè)還在看書 有神嗎見解咩回復(fù) 3# rubyish


   

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2013-03-21 12:42 |只看該作者
回復(fù) 5# babyma1109


    3樓已經(jīng)寫的差不多了,你自己內(nèi)插一下輸出就和題目上的一樣了,say就和Java里的println差不多。

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2013-03-21 12:52 |只看該作者
回復(fù) 5# babyma1109


    才發(fā)現(xiàn),你復(fù)制的時(shí)候沒有把格式給復(fù)制過來,所以根據(jù)你的題目,3樓是完全正確的。。。

論壇徽章:
7
戌狗
日期:2013-12-15 20:43:38技術(shù)圖書徽章
日期:2014-03-05 01:33:12技術(shù)圖書徽章
日期:2014-03-15 20:31:17未羊
日期:2014-03-25 23:48:20丑牛
日期:2014-04-07 22:37:44巳蛇
日期:2014-04-11 21:58:0915-16賽季CBA聯(lián)賽之青島
日期:2016-03-17 20:36:13
8 [報(bào)告]
發(fā)表于 2013-03-21 15:54 |只看該作者
本帖最后由 rubyish 于 2013-03-21 12:32 編輯

第三個(gè):
  1. #!/usr/bin/perl
  2. print 'Enter your initial deposit: ';
  3. my $d = <>;
  4. print 'Enter the annual interest rate: ';
  5. my $r = <>;
  6. print 'How many years you do not want to touch the money: ';
  7. my $y = <>;

  8. chomp( $d, $r, $y );
  9. print '*' x 53, "\n";

  10. for ( 0 .. $y ) {
  11.     print "After $_ years you have: \$$d\n";
  12.     $d *= 1 + $r;
  13. }
復(fù)制代碼

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2013-03-21 17:59 |只看該作者
對不起你。。。。不過能不能加下QQ啊 422653644.。。。 有問題可以直接問你
回復(fù) 8# rubyish


   

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2013-03-21 18:40 |只看該作者
說多了都是淚。。。
大神, 你就是我的大救星。。時(shí)間有點(diǎn)緊迫
回復(fù) 9# babyma1109


   
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP