0 like 0 dislike
請設計一個程式將檔案分成數個小檔案,該程式會將檔案名稱為 n 的檔案分成大小為 m 的若干個檔案,程式一開始會要求使用者輸入要被分割的檔案 n , n 包含完整的路徑、檔案名稱以及附檔名,接下來會要求使用者輸入每個分割檔案的大小 m ,m 的單位是位元組,接下來程式會將檔案 n 依照 m 的值去做分割,最後一個分割檔的大小可能會不足 m ,每一個分割檔的命名就是在檔名跟副檔名中間加入數字1、2、3、…
[Exercise] Essay (Open question) - asked in 作業 by (18k points)
Available when: Unlimited - Due to: Unlimited
| 99 views

1 Answer

0 like 0 dislike
Hidden content!
* * ** * *
** ** * ** * ** *

#define N 4096



int main(){
*** ***** * *fp;
*** *** ** * * * * * **
*** *** *** * * y[N];
* * ** ** ***** i, j, m;
* ** ** *** ** * * * * ** ** *** ** *
* * ** ** *** * * ****** *** m)
* * * ** *** *** = fopen(y, ** * *
* ** * * * * * != NULL);
*** * * * * *** * *** * = 0; i < 10; i++){
*** * *** * ** ** **** **** ** * ******* * ** * *** * * i);
* ** * **** *
* * * **** ** *** * *


* *** ** *** *** * * = 0; j < m; j++){


* **** * ** *


* * **



return 0;

}
answered by (-105 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.79.40
©2016-2021

Related questions

0 like 0 dislike
0 answers
[Exercise] Essay (Open question) - asked Dec 28, 2016 in 作業 by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 105 views
0 like 0 dislike
20 answers
[Exercise] Essay (Open question) - asked Dec 21, 2016 in 作業 by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 265 views
0 like 0 dislike
82 answers
[Exercise] Coding (C) - asked Nov 23, 2016 in 作業 by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 627 views
0 like 0 dislike
26 answers
[Exercise] Essay (Open question) - asked Nov 9, 2016 in 作業 by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 338 views
11,257 questions
134,149 answers
132,336 comments
4,147 users