国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久av一区二区三区漫画| 国产精品精品久久久久久| 日韩在线观看精品| 伊人久久99| 国产有码在线一区二区视频| 久久久久久久久久久久久久一区| 亚洲精品成人三区| 99久久久久国产精品免费| 久久99精品久久久久久琪琪| 激情视频在线观看一区二区三区| 日韩天堂在线视频| 日韩区国产区| 国产a级片免费看| 亚洲 中文字幕 日韩 无码| 国产乱码精品一区二区三区日韩精品| 国产精品欧美亚洲777777| 欧美一区二区中文字幕| 日韩在线免费视频| 日韩美女免费线视频| 久久久久久艹| 日本午夜一区二区三区| 久久精品日韩| 日韩欧美电影一区二区| 久久久久无码国产精品一区| 日本毛片在线免费观看| 久久久久久久久久亚洲| 欧洲精品码一区二区三区免费看| 日韩亚洲欧美成人| 欧美激情专区| 九九热精品视频| 97精品久久久中文字幕免费| 亚洲精品欧美一区二区三区| 久久婷婷五月综合色国产香蕉 | 国产玖玖精品视频| 在线国产精品网| 91免费看国产| 日本电影亚洲天堂| 久久久精品国产一区二区| 精品免费视频123区| 国产精品美女久久| 国产精品亚洲αv天堂无码| 亚洲国产一区二区三区在线| 久久久久久亚洲精品不卡4k岛国| 热re99久久精品国产66热| 国产精品视频免费观看www| 欧美老熟妇喷水| 欧美久久精品午夜青青大伊人| 爱福利视频一区二区| 三级网在线观看| 国产精品网站免费| 国产精品一二三在线观看| 无码av天堂一区二区三区| 久久精品色欧美aⅴ一区二区| 国产综合久久久久久| 亚洲精品高清视频| 久久久国产精品亚洲一区| 国产亚洲二区| 色香蕉在线观看| 国产精品久久国产三级国电话系列| 国产精品一区二区三区久久久| 午夜精品视频在线| 国产精品美腿一区在线看| 高清欧美性猛交| 日韩久久在线| 一区二区不卡视频| 波霸ol色综合久久| 风间由美一区二区三区| 青青草视频在线免费播放| 欧美精品videofree1080p| 国产xxxx振车| 国产欧美精品一区二区| 日韩国产精品一区二区| 欧美巨猛xxxx猛交黑人97人| 国产成人一区三区| 国产日韩亚洲欧美| 日本一本草久p| 中文字幕日韩一区二区三区| 精品国产美女在线| 91精品一区二区三区四区| 黄网站色视频免费观看| 欧美一区二区三区精美影视 | 国产在线精品成人一区二区三区| 色999五月色| 又粗又黑又大的吊av| 国产精品少妇在线视频| 久久亚洲国产精品日日av夜夜| 国产一区在线免费观看| 日本wwwcom| 亚洲xxxx做受欧美| 欧美精品www在线观看| 国产精品区一区二区三含羞草| 91九色国产ts另类人妖| 国产日韩精品入口| 欧美日韩国产三区| 日韩av观看网址| 中文精品视频一区二区在线观看 | 久久久久久久久久久99| 91精品一区二区三区四区| 国产在线视频欧美一区二区三区| 欧美在线性视频| 少妇精品久久久久久久久久| 欧美日韩福利在线观看| 国产精品伦子伦免费视频| 久久久久久久激情| 久久人人爽人人爽人人片av高清| www..com日韩| 国产精品专区一| 国产日韩在线播放| 国产一区二区高清不卡| 欧美a在线视频| 欧美亚洲色图视频| 日本三日本三级少妇三级66| 动漫一区二区在线| 亚洲欧洲另类精品久久综合| 久久91亚洲精品中文字幕奶水| 久久中国妇女中文字幕| 国产精品激情自拍| 国产精品久久成人免费观看| 国产精品久久久久久亚洲调教 | 亚洲精品一品区二品区三品区| 在线观看日本一区| 美女福利视频一区| 欧美成人免费在线观看| 久久在精品线影院精品国产| 国产精品成久久久久三级| 久久成人国产精品| 欧美成人免费在线观看| 欧美精品一本久久男人的天堂| 精品丰满人妻无套内射| 久久99精品国产99久久6尤物| 欧美情侣性视频| 一区二区三区欧美成人| 亚洲色欲久久久综合网东京热 | 青青久久av北条麻妃海外网| 日韩精品无码一区二区三区免费| 日韩视频专区| 精品欧美一区二区三区久久久| 免费看欧美黑人毛片| 国产一区在线免费| αv一区二区三区| 久久久久久国产精品mv| 日韩视频在线免费观看| 国产精品丝袜视频| 国产精品劲爆视频| 一本久久a久久精品vr综合| 亚洲a区在线视频| 日本一区视频在线播放| 欧美性视频网站| 美女亚洲精品| 国产麻豆日韩| 国产成人亚洲精品无码h在线| 色狠狠av一区二区三区香蕉蜜桃| 国产精品久久久久久久小唯西川| 蜜臀久久99精品久久久久久宅男| 亚洲第一在线综合在线| 人妻精品无码一区二区三区| 国产中文字幕日韩| 91av在线不卡| 国产精品视频xxx| 一区二区三区av| 少妇av一区二区三区无码| 欧美精品欧美精品| 风间由美久久久| 深夜福利一区二区| 国产精品精品久久久| 亚洲第一精品区| 经典三级在线视频| 99se婷婷在线视频观看| 色黄久久久久久| 一区二区视频在线免费| 日韩久久精品一区二区三区| 国产欧美一区二区白浆黑人| 久久久免费精品| 国产精品成人一区二区三区| 性欧美大战久久久久久久| 好吊色欧美一区二区三区四区| 91精品啪aⅴ在线观看国产 | 日韩av免费看| 国精产品99永久一区一区| 国产精品av免费在线观看| 国产精品区免费视频| 日产精品久久久一区二区福利| 海角国产乱辈乱精品视频| 久热免费在线观看| 欧美久久久精品| 欧美日韩精品免费在线观看视频| 97国产精品人人爽人人做| 国产精品久久久久久久久影视| 午夜精品亚洲一区二区三区嫩草 | 欧美在线播放一区二区| 91精品国产综合久久香蕉| 国产精品免费一区二区三区| 欧美一区二区三区在线播放| 国产日韩精品一区二区| www.日韩av.com| 午夜啪啪福利视频| 成人中文字幕在线播放| 国产精品美女主播| 人妻熟女一二三区夜夜爱| 91成人福利在线|