日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

IERG2080代做、代寫C/C++程序語言

時間:2024-05-19  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



IERG2080 Spring 2024
Project Due: 17 May 2024
Rules:
1. This project takes 10% of the course total.
2. Your code will be compiled and tested in theVM. 0 score if the code cannot be
compiled in the VM.
3. No late submission is allowed.
4. This is a group project. Only one member submitting the work to Blackboard is
required.
In this project, you are going to write a simple 2D bitmap editor. You will use a library called
ncurses that provides API for direct keyboard inputs, absolute screen coordinates for
full-screen outputs, etc.
To compile the demo that illustrates how to use ncurses, you need to install the library first.
In your VM, run
sudo apt install libncurses-dev
After installation, you can now compile the example code by
gcc curses_demo.c -o curses_demo -lcurses
The flag -lcurses asks the linker to link with the library named curses. Try to understand
the demo code and see how to initialize an ncurses program, how to move a cursor, how to
read the pressed key, etc.
Next, you need to understand the portable bitmap format (PBM). The following is an
example from Wikipedia https://en.wikipedia.org/wiki/Netpbm#PBM_example
P1
# This is an example bitmap of the letter "J"
6 10
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
1 0 0 0 1 0
0 1 1 1 0 0
0 0 0 0 0 0
0 0 0 0 0 0The first line P1 indicates that the file is a portable bitmap, where each pixel is either 0 or 1
(white or black). The line starts with # is a comment that will be ignored by image readers.
The line 6 10 indicates the size of the image: 6x10 pixels. After that, the binary digits are the
pixel values of the image. Note that the spaces and newlines in the description of the image
body can be omitted. Say, the following example gives the same image as the above one.
P1
# This is an example bitmap of the letter "J"
6 10
000010000010000010000010000010000010100010011100000000000000
To open a pbm file, you need an image editor. In Ubuntu, you can use gimp (GNU Image
Manipulation Program). Install gimp by
sudo apt install gimp
Suppose your program is named proj. The following is the usage of your program.
./proj [in=in_file] [out=out_file]
./proj [out=out_file] [in=in_file]
Both arguments are optional. Yet, the phase in= or out= must be provided if the
corresponding argument is used. in_file is the input file name, and out_file is the output
file name.
Your program provides an interface for a user to draw a 2D bitmap image. Here are the
descriptions. Each item takes 1 point (full score 10 points).
1. If in_file is supplied, load the file. If the file is not a 80x24 PBM, print an error
message and terminate the program.
2. Initialize curses. Change the terminal size to 80x24 (width 80, height 24). Turns on
REVERSE video mode attribute (black characters on a white background).
3. If in_file is not supplied, fill the whole screen with spaces to show a full reverse
background. Otherwise, show the image on the screen. Use # for 1 and a space for
0. For both cases, move the cursor to the top-left corner after the initialization is
done.
4. Let the user move the cursor around using the arrow keys (cannot move beyond the
boundary of the screen).
5. When the user presses the spacebar, draw or erase a # at the location of the cursor.
6. When the user presses ESC, ends the curses environment and recovers the original
terminal settings.
7. If out_file is not supplied, print the image drawn by the user as a PBM format on the
screen using printf. As the terminal size was 80x24, the image size is 80x24. (The
user can copy the printed content to a .pbm file on their own.)
8. If out_file is supplied, save the PBM data to the file. Print an error message if the file
cannot be saved.
9. Create a Makefile so that you can compile your code by make.
10. Make sure that both orders of arguments work as expected.
Write your code in a single .c file. Compress the .c file with the Makefile into a .zip file, and
then submit it to Blackboard.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

掃一掃在手機打開當前頁
  • 上一篇:代寫EBU4201、代做Java設計編程
  • 下一篇:STSCI 4060代做、代寫Python設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        亚洲女同同性videoxma| 亚洲人线精品午夜| 欧美日韩无遮挡| 久久躁狠狠躁夜夜爽| 亚洲国产精品久久久久秋霞影院| 国产综合自拍| 亚洲精品欧美在线| 亚洲特级毛片| 国产精品热久久久久夜色精品三区| 欧美人与禽猛交乱配| 日韩视频一区二区三区| 欧美日韩精品| 久久久999| 亚洲一区制服诱惑| 欧美日韩国产色视频| 亚洲精品裸体| 免费亚洲视频| 一本色道久久99精品综合| 一区二区三区国产在线观看| 欧美激情在线有限公司| 一区二区三区视频在线观看| 狠狠色丁香久久综合频道| 国产精品入口尤物| 亚洲视屏一区| 欧美久久电影| 亚洲视频视频在线| 欧美视频在线不卡| 国产日产欧美a一级在线| 欧美日韩视频在线一区二区| 国自产拍偷拍福利精品免费一| 国产一区视频在线看| 亚洲欧美激情视频| 欧美中日韩免费视频| 欧美日韩人人澡狠狠躁视频| 亚洲人成绝费网站色www| 欧美日本一区二区三区| 1769国内精品视频在线播放| 牛牛影视久久网| 亚洲欧美日韩国产另类专区| 国产精品久久一区主播| 亚洲二区在线观看| 国产一区二区三区奇米久涩| 亚洲欧美制服另类日韩| 欧美大片一区二区| 9色porny自拍视频一区二区| 韩国成人精品a∨在线观看| 亚洲三级毛片| 欧美激情一区二区三区在线视频观看| 亚洲人成欧美中文字幕| 一区二区电影免费观看| 亚洲欧美中文字幕| 亚洲午夜极品| 亚洲国产精品va在线观看黑人| 美女久久一区| 国产毛片久久| 欧美成人69av| 欧美激情影音先锋| 国产日韩一区二区三区在线| 国产伦精品一区二区三区视频黑人| 亚洲大胆人体视频| 久久婷婷国产麻豆91天堂| 久久av一区二区三区亚洲| 欧美一级视频一区二区| 亚洲欧美日韩综合| 久久精品99国产精品| 日韩亚洲国产精品| 亚洲国产精品va在线观看黑人| 夜夜嗨一区二区三区| 欧美日韩一区二区三区在线| 久久精品电影| 久久精品一区| 黑人巨大精品欧美黑白配亚洲| 亚洲一区三区电影在线观看| 91久久精品国产91性色tv| 国产一区二区欧美日韩| 久久久久一区二区| 亚洲午夜视频在线| 欧美成人首页| 国产精品免费一区二区三区在线观看| 欧美电影电视剧在线观看| 亚洲欧美日韩在线高清直播| 欧美私人啪啪vps| 91久久精品美女高潮| 激情久久久久久| 曰韩精品一区二区| 亚洲第一区在线观看| 尤物九九久久国产精品的特点| 欧美日韩国产在线播放| 亚洲国产三级网| 亚洲黄色视屏| 在线国产亚洲欧美| 国产亚洲日本欧美韩国| 国产一级揄自揄精品视频| 国产一区91| 亚洲私人黄色宅男| 国产精品欧美在线| 欧美午夜精品理论片a级大开眼界| 国产精品久久久久久久久| 欧美日韩另类国产亚洲欧美一级| 欲香欲色天天天综合和网| 久久精品国亚洲| 国产欧美日韩精品专区| 国产精品亚洲不卡a| 亚洲成人在线免费| 久久国产视频网| 久久久久久久久久久一区| 午夜久久99| 激情视频亚洲| 欧美freesex交免费视频| 久久精品av麻豆的观看方式| 久久成人久久爱| 欧美日韩一区自拍| 久久精品视频免费观看| 国产嫩草一区二区三区在线观看| 亚洲毛片在线| 亚洲欧美日韩综合一区| 国产亚洲成年网址在线观看| 久久尤物视频| 亚洲永久免费观看| 国产毛片精品视频| 欧美日韩一区二区在线| 亚洲成色777777在线观看影院| 精品白丝av| 国产一区成人| 国产综合激情| 欧美精品在线看| 欧美日韩在线精品一区二区三区| 欧美日本韩国一区| 亚洲福利久久| 久久久精品免费视频| 国产亚洲精品久久久久动| 欧美大片一区二区| 久久午夜国产精品| 国产真实乱子伦精品视频| 国产精品二区二区三区| 国产精品婷婷午夜在线观看| 免费美女久久99| 最新成人在线| 亚洲国产人成综合网站| 亚洲精品免费网站| 欧美日韩视频一区二区| 国产精品久久久久国产精品日日| 夜夜嗨av色综合久久久综合网| 免播放器亚洲| 日韩视频中文字幕| 亚洲国产精品电影在线观看| 韩国av一区二区三区四区| 国产色产综合色产在线视频| 欧美另类在线播放| 欧美在线精品免播放器视频| 国产精品普通话对白| 亚洲网址在线| 亚洲激情社区| 久久免费视频网站| 亚洲视频免费在线观看| 欧美一区二区观看视频| 久久久亚洲一区| 欧美视频在线视频| 欧美日韩精品一区二区三区四区| 欧美剧在线观看| 国产欧美 在线欧美| 欧美a一区二区| 99在线精品视频| 亚洲欧美日韩国产|