◀ Previous Next ▶ Up ▲

witpoko.com


    ช่วยหน่อยค่ะ ต้องการคนเก่งโปรแกรมภาษา C/C++

    มีข้อกำหนดของโปรแกรมตามข้างล่างนี้ อยากจะให้ช่วยเขียนให้หน่อยค่ะ ต้องการด่วน คนเก่งๆ ในนี้เยอะ...
    Write a program that takes three files (of the same length) and merges them into a new files in the following way:

    The contents of each file will be read one character at a time. After each character the input file is switched.
    - The first file should be read from its beginning to the end.
    - The second file should be read from its end to the beginning.
    - The third file should be read alternating from the middle to the beginning/ end.

    (Hint: to find the next position to read from the file, you may have to skip a number of characters)

    Of each file there should be at most one character in variables of the class.

    Example: "abc", "def" and "ghi" will be merged to "afhbegcdi"
    Note: Do not use Array.

    จากคุณ : grandraf - [ 13 มี.ค. 50 17:50:19 ]

 
 



กระทู้ยอดนิยม