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
| 93 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:173.245.54.37
©2016-2020

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
| 100 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
| 220 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
| 531 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
| 305 views
10,934 questions
124,552 answers
118,820 comments
3,819 users