Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Use GarageBand in Just 1 Hour

Learn to create music in GarageBand and become the Beethoven you've wanted to be. This online course is just $30. Sign up today!
From our sponsors
C語言 函數問題
Dec 31st 2013, 15:32

題目:輸入一字串,並輸入開始位置及長度,取此字串的內容
例 字串=abc1234567 start=2 length=8
      結果=c1234567

我的程式如下: 

char a[50] ,b[50];
int i , j , start , len ;

void func()
{
      
      for(i=0;i!=len;i++,start++)     
      b[i]=a[start] ;
    
      return ;
      }
      
      int main()
      {
          
          printf("輸入字串:");
          scanf("%s" ,&a);
          printf("start=");         /*開始位置*/ 
          scanf("%d" , &start);
          printf("length=");         /*長度*/ 
          scanf("%d" , &len);
          
          func();
          
          printf("\n\n結果=%s" , b);

          system("pause");
          return 0;
          }

但問題是
因為我是設a[50] 
而如果我length輸入超過50 程式就會出錯
我該如何不改a[50]的50也能讓程式不出錯 
並讓結果輸出空白呢(因為沒有輸入所以為空白)

例如 字串=12345 start=2 length=50000000000
         結果=2345

另外
如果我將 

char a[50] ,b[50];
 int i , j , start , len ;
放如main() 裡面
那接下來的func()   裡面要怎麼改也能正常執行??

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Ever want to impress your boss or that special someone?

Learn the basics of wine tasting from glassware to history to tasting techniques in this online course. This is a course you're sure to enjoy!
From our sponsors
C語言 函數問題
Dec 31st 2013, 15:32

題目:輸入一字串,並輸入開始位置及長度,取此字串的內容
例 字串=abc1234567 start=2 length=8
      結果=c1234567

我的程式如下: 

char a[50] ,b[50];
int i , j , start , len ;

void func()
{
      
      for(i=0;i!=len;i++,start++)     
      b[i]=a[start] ;
    
      return ;
      }
      
      int main()
      {
          
          printf("輸入字串:");
          scanf("%s" ,&a);
          printf("start=");         /*開始位置*/ 
          scanf("%d" , &start);
          printf("length=");         /*長度*/ 
          scanf("%d" , &len);
          
          func();
          
          printf("\n\n結果=%s" , b);

          system("pause");
          return 0;
          }

但問題是
因為我是設a[50] 
而如果我length輸入超過50 程式就會出錯
我該如何不改a[50]的50也能讓程式不出錯 
並讓結果輸出空白呢(因為沒有輸入所以為空白)

例如 字串=12345 start=2 length=50000000000
         結果=2345

另外
如果我將 

char a[50] ,b[50];
 int i , j , start , len ;
放如main() 裡面
那接下來的func()   裡面要怎麼改也能正常執行??

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 發問中 
Learn Adobe Illustrator CS6 Master Techniques from an Adobe Guru!

With over 25 years of experience teaching, Robert Farrell has been a trusted instructor for individuals and companies who want to improve their Adobe skills.
From our sponsors
請問直流馬達12槽的轉子要怎樣繞線
Dec 31st 2013, 15:16

小弟有一顆直流馬達,因為線圈燒毀想要重繞,但是原舊有線圈有樹指保護,拆完清除之後也無法得知原有的繞線方法,很想重生這棵馬達,請問該如何從繞,
這棵馬達轉子有12個槽,整流子有24個銅片,崇正面看剛好一個槽位對應二個整流子銅片的正中心,電刷好感覺一次左右可以各碰到二個銅片,該怎繞

1. 假設12個槽位 (凹點)代表12個鐘點時間位置
2. A--X對應24個整流子銅片 ,12點位置槽位對應2個整流子銅片右邊為A起點 ,
順時看依序為BCDEF.........所以正面看12點槽位對應之銅片右邊為A左邊為X
3. 起點該重哪一個整流子銅片開始繞過哪一格槽 (順時或逆時) 再回到哪一個銅片
4. 轉子橫看 ,整流子在右,以此判定繞線順時或逆時

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 發問中 
Microsoft Excel 2010 Training Course

Beginner / Intermediate self-paced online course of Microsoft's spreadsheet application. Enroll for just $99.
From our sponsors
形容晚上的夜空清澈可以看到星星
Dec 31st 2013, 15:16

該怎麼形容晚上的夜空清澈可以看到星星

用清澈有點奇怪 清澈感覺是白天用的 因為有帶點藍色的感覺

1.晚上的天空 很清晰 沒有光害 看的到星星 該怎麼描述?

2.還有關於晚上的夜空的詞 有哪些 我想得到的只有"夜空" 是詞哦不是成語

差不多這兩個問題 謝謝

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Don't wait in line!

Buy your movie tickets online. Find reviews, trailers, and more at Fandango.
From our sponsors
請問CSO一定要有樂豆嗎?
Dec 31st 2013, 15:31

我最近有點心想要回去玩一下,
所以在想竟然CSO台灣代理商是遊戲橘子,
那是不是需要先安裝樂豆才能玩啊?
因為我之前直接按桌面上的CSO捷徑就能登入了,
所以想說應該是不用安裝樂豆程式,
但又怕安裝遊戲不能進入......
(因為之前以為不會再回去玩了,所以就把樂豆的相關程式移除了)

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 TaiwanDrama 板
 
Shop Best Buy

Find this week's deals in computers, cameras, phones, and more! Choose store pick up or other shipment options.
From our sponsors
Re: [LIVE] 結婚好嗎? 第二十五集 TTV八點檔
Dec 31st 2013, 21:37, by poo157400

作者poo157400 (昨夜)

看板TaiwanDrama

標題Re: [LIVE] 結婚好嗎? 第二十五集 TTV八點檔

時間Tue Dec 31 21:37:20 2013

※ 引述《n16482003 (葵の極み)》之銘言: : 結婚好嗎? : MARY OR NOT? : 【分集劇情 第二十五集】 : 奕菲冷靜自持、保持距離的態度, : 讓明知奕菲喜歡自己的皓澤按捺不住, : 質問奕菲為何要參加聯誼? : 奕菲表明自己是自由之身,與皓澤一點關係都沒有, : 她想認識新朋友有何不可? : 皓澤被奕菲激怒,兩人不歡而散,奕菲難掩失落。 : 亞真看出皓澤心意,把皓澤帶到奕菲聯誼的餐廳, : 要皓澤好好面對自己的心。 : 皓澤攔截奕菲,告訴奕菲自己知道她的心意, : 奕菲尷尬,皓澤要奕菲別再逃避, : 奕菲卻明白道出自己確實喜歡皓澤, : 就像皓澤喜歡亞真一樣的單戀,是場無關對方的愛情, : 奕菲的武裝眼看就要崩潰… : 美麗看見子軒挑選戒指,又遲遲沒見子軒向亞真求婚, : 便計劃幫兩人推波助瀾一番,邀請皓權、群芳等人, : 準備在春菊小廚逼子軒當眾求婚。 : 眾人鼓吹之下,子軒仍不為所動,表明自己沒有要向亞真求婚, : 氣氛尷尬戒指是亡母留給自己的遺物, : 而今天正是母親忌日,眾人無言以對。 : 子軒坦誠自己的母親是婚姻的受害者, : 只要彼此之間有愛,何需拿婚姻的形式來宣揚兩人的愛情? : 亞真強作鎮靜,仍渴望婚姻的她,對未來的想法開始動搖。 : 亞真的一舉一動,則被遠處的鏡頭悄悄拍下… : 在面對尷尬的打擊之後,亞真難過落淚,美麗心疼不已, : 此時前婆婆(至修母親)突然來訪,竟打算把語桐要回去?? : -- : http://www.ttv.com.tw/drama13/MarryOrNot/index.htm 官網 : https://www.facebook.com/Marry.Or.Not.Fans 粉絲團 好想看皓澤跟奕菲在一起啊!! -- Sent from my Android -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.175.38.195

girl10319:Android 有這麼慘嗎 12/31 21:42

bor1286:只好噓一個了 12/31 22:36

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 give 板
 
[贈送] 全國 7NET 100元折價
Dec 31st 2013, 23:19, by TamTamTamTam

作者TamTamTamTam (Tam)

看板give

標題[贈送] 全國 7NET 100元折價劵

時間Tue Dec 31 23:19:01 2013

物 品:7net 100元 折價劵 到期日(食品及美妝品請加上到期日):2014年 1月 15日 領取地點:電腦前 期 限:2014年 1月 15日 聯絡方法:請自取 備 註:v5x6xpfj9kqa0 麻煩使用完請推文 需於7net網站購物消費滿1100元 折價劵方能折抵 ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.234.199 ※ 編輯: TamTamTamTam 來自: 140.112.234.199 (12/31 23:19)

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 give 板
 
[贈送] 全新 上衣 內搭素色刷毛褲 蒟蒻洗顏 短T
Dec 31st 2013, 23:26, by inite

作者inite (舞沙拉還是丹丹)

看板give

標題[贈送] 全新 上衣 內搭素色刷毛褲 蒟蒻洗顏 短T

時間Tue Dec 31 23:26:20 2013

物 品:全新-鬆緊帶內搭素色刷毛褲3件(尺寸S~M) 蒟蒻洗顏 短T 背心 尺寸由小至大:灰白點刷毛褲http://ipop.pixnet.net/album/set/17452826 到期日:無 領取地點:面交自取-藍線-捷運永春站(可不出站) 期 限:送出為止 聯絡方法:站內信 僅回覆獲贈者 備 註:來信請註明欲索取編號 且 附上方便約取時間 獲贈請主動留電、稱呼並自備提袋約取 如有喜好順序才索取記得備註 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.165.98.209 ※ 編輯: inite 來自: 118.165.98.209 (12/31 23:29)

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

AutoNet 汽車日報 完整版
給你最完整的汽車資訊 
Want to speak effortlessly in any situation?

Actress Alexa Fisher will teach you tips that will set you on the road to success.
From our sponsors
ASIMO駕駛NSX?HONDA美國玫瑰花車遊行大有噱頭!
Dec 31st 2013, 00:00, by 蔡致堅

即將在2014年慶祝125週年的玫瑰花車大遊行,可算是美國西岸洛杉磯地區的年度大盛會,每年在巴沙蒂納地區總會吸引百萬人到場參觀,在有電視以來也讓數億人盯著螢幕看。而隨著置入性行銷越來越風行,就成為許多廠商贊助並打知名度的好方法。當然HONDA也派出高人氣ASIMO,並打造出長達83.5m的巨型花車,同時ACURA NSX也將出場,希望能成為眾所矚目的焦點。

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 give 板
 
[贈送] 全國 7NET 100元折價
Dec 31st 2013, 23:19, by TamTamTamTam

作者TamTamTamTam (Tam)

看板give

標題[贈送] 全國 7NET 100元折價劵

時間Tue Dec 31 23:19:01 2013

物 品:7net 100元 折價劵 到期日(食品及美妝品請加上到期日):2014年 1月 15日 領取地點:電腦前 期 限:2014年 1月 15日 聯絡方法:請自取 備 註:v5x6xpfj9kqa0 麻煩使用完請推文 需於7net網站購物消費滿1100元 折價劵方能折抵 ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.234.199 ※ 編輯: TamTamTamTam 來自: 140.112.234.199 (12/31 23:19)

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

rrhhs 發表在 痞客邦 留言(0) 人氣()