99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国内激情久久| 国产精品美女久久久久久免费 | 毛片av中文字幕一区二区| 久久精品99久久香蕉国产色戒| 亚洲午夜av电影| 久久av免费一区| 你懂的亚洲视频| 欧美日韩国产黄| 国产精品影院在线观看| 狠狠色噜噜狠狠色综合久| 一区二区亚洲| 亚洲午夜精品一区二区| 久久精品99国产精品| 欧美精品乱人伦久久久久久| 国产精品成av人在线视午夜片| 国产精品免费看片| 狠狠久久亚洲欧美专区| 亚洲精品自在在线观看| 亚洲欧美日韩一区二区在线 | 亚洲欧美韩国| 久久久久亚洲综合| 国产精品久久久久久久7电影| 欧美午夜一区| 亚洲电影下载| 99精品久久| 欧美在线视频二区| 欧美黄色日本| 黑人一区二区三区四区五区| 在线亚洲一区观看| 美女视频网站黄色亚洲| 国产免费成人| 亚洲图片欧美日产| 欧美激情视频免费观看| 精品9999| 久久九九免费| 国产精品视频网站| 一区二区三区国产精品| 国产精品夫妻自拍| 亚洲高清在线| 久久人人97超碰精品888| 欧美三区在线视频| 亚洲一区二区3| 欧美色区777第一页| 日韩视频一区二区在线观看| 欧美高清在线一区二区| 日韩视频不卡| 国产精品久久婷婷六月丁香| 亚洲一区在线观看免费观看电影高清 | 亚洲专区一二三| 欧美日本在线视频| 亚洲精品免费电影| 欧美激情免费观看| 亚洲破处大片| 欧美国产精品劲爆| 亚洲精品国产视频| 欧美精品日韩| 一区二区三区久久网| 欧美日韩欧美一区二区| 99国产精品| 国产精品va| 欧美在线三级| 国产精品日韩一区| 国产欧美精品日韩| 久久夜色精品亚洲噜噜国产mv| 欧美成人精品激情在线观看| 亚洲国产成人精品女人久久久 | 在线看日韩欧美| 免费久久99精品国产自在现线| 在线观看亚洲视频| 奶水喷射视频一区| 亚洲美女精品久久| 国产精品久久久久免费a∨| 亚洲欧美色一区| 海角社区69精品视频| 免费av成人在线| 99re66热这里只有精品4| 欧美视频一区二区三区…| 亚洲一区视频| 怡红院精品视频| 欧美另类在线播放| 性久久久久久久久| 亚洲成色777777女色窝| 欧美日韩一区二区在线 | 欧美午夜久久| 久久国产手机看片| 亚洲黄色成人网| 欧美亚洲不卡| 国产欧美一区二区精品性| 国产精品久久久一本精品| 欧美片在线观看| 国产久一道中文一区| 极品尤物一区二区三区| 国产精品久久久久国产a级| 欧美激情欧美狂野欧美精品| 一本色道久久88综合日韩精品| 亚洲日韩成人| 一区二区精品在线观看| 午夜精品99久久免费| 免费欧美视频| 欧美日韩亚洲一区二区三区| 伊人一区二区三区久久精品| 欧美黑人在线播放| 亚洲青色在线| 国产亚洲欧美日韩日本| 久久男女视频| 亚洲在线观看免费视频| 亚洲高清av| 国产一区二区高清视频| 欧美调教vk| 欧美风情在线| 久久只精品国产| 欧美一区二区三区喷汁尤物| 亚洲精品日韩在线观看| 国产一区av在线| 国产精品久久亚洲7777| 欧美日韩伦理在线| 欧美va天堂在线| 久久综合狠狠| 开心色5月久久精品| 午夜视频精品| 亚洲欧美一区二区视频| 国产精品99久久久久久白浆小说| 91久久亚洲| 亚洲国产91| 亚洲国产一区二区三区高清| 国语自产精品视频在线看一大j8| 国产精品毛片高清在线完整版| 欧美久久久久久久久| 欧美激情一区二区三区在线| 久久资源在线| 欧美99久久| 女人色偷偷aa久久天堂| 免费欧美电影| 欧美国产日产韩国视频| 女仆av观看一区| 欧美激情一区二区三区全黄 | 欧美在线三区| 欧美在线观看视频在线| 午夜在线观看免费一区| 香蕉久久夜色| 久久久久久穴| 老**午夜毛片一区二区三区| 蜜桃久久精品乱码一区二区| 久热国产精品| 欧美激情中文字幕乱码免费| 欧美日本在线视频| 国产精品家庭影院| 国产毛片一区| 在线不卡a资源高清| 在线观看欧美黄色| 亚洲美女视频在线免费观看| 日韩一区二区精品视频| 亚洲欧美色一区| 久久久久久尹人网香蕉| 久久字幕精品一区| 欧美日韩午夜剧场| 国产午夜亚洲精品羞羞网站| 黄色成人av在线| 99精品视频免费观看视频| 亚洲欧美色一区| 免费影视亚洲| 欧美午夜三级| 国产欧美一区在线| 亚洲国产综合91精品麻豆| 国产精品99久久久久久久vr| 欧美在现视频| 欧美日韩午夜剧场| 国产农村妇女毛片精品久久麻豆| 激情久久久久久| 一区二区三区av| 久久蜜桃香蕉精品一区二区三区| 欧美喷潮久久久xxxxx| 国产欧美日韩视频一区二区| 在线播放中文字幕一区| 亚洲一区二区免费视频| 蘑菇福利视频一区播放| 国产精品久在线观看| 亚洲国产精品免费| 欧美亚洲在线观看| 欧美美女视频| 亚洲高清在线精品| 欧美在线视频免费播放| 国产精品久久国产三级国电话系列| 国产欧美精品国产国产专区| 9l国产精品久久久久麻豆| 久久久噜噜噜久噜久久| 欧美日韩中文字幕在线| 亚洲黄色在线观看| 久久精品国产第一区二区三区最新章节| 欧美精品1区2区3区| 国产亚洲日本欧美韩国| 亚洲自拍偷拍视频| 欧美三区在线| 一本到高清视频免费精品| 欧美a级片网| 亚洲高清免费视频| 巨乳诱惑日韩免费av| 国产一区免费视频| 欧美在线播放一区二区| 国产精品系列在线播放|