0 like 0 dislike
643 views
請設計一個程式將檔案分成數個小檔案,該程式會將檔案名稱為 n 的檔案分成大小為 m 的若干個檔案,程式一開始會要求使用者輸入要被分割的檔案 n , n 包含完整的路徑、檔案名稱以及附檔名,接下來會要求使用者輸入每個分割檔案的大小 m ,m 的單位是位元組,接下來程式會將檔案 n 依照 m 的值去做分割,最後一個分割檔的大小可能會不足 m ,每一個分割檔的命名就是在檔名跟副檔名中間加入數字1、2、3、…
[Exercise] Essay (Open question) - asked in 作業 by (18k points)
ID: 20203 - Available when: Unlimited - Due to: Unlimited
| 643 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)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.194.139
©2016-2025

Related questions

0 like 0 dislike
0 answers
[Exercise] Essay (Open question) - asked Dec 28, 2016 in 作業 by Shun-Po (18k points)
ID: 20139 - Available when: Unlimited - Due to: Unlimited
| 539 views
0 like 0 dislike
20 answers
[Exercise] Essay (Open question) - asked Dec 21, 2016 in 作業 by Shun-Po (18k points)
ID: 19748 - Available when: Unlimited - Due to: Unlimited
| 2.8k views
0 like 0 dislike
82 answers
[Exercise] Coding (C) - asked Nov 23, 2016 in 作業 by Shun-Po (18k points)
ID: 17578 - Available when: Unlimited - Due to: Unlimited
| 8.3k views
0 like 0 dislike
26 answers
[Exercise] Essay (Open question) - asked Nov 9, 2016 in 作業 by Shun-Po (18k points)
ID: 17203 - Available when: Unlimited - Due to: Unlimited
| 3.5k views
12,783 questions
183,442 answers
172,219 comments
4,824 users