国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩激情视频一区二区| 国产精品小说在线| 激情图片qvod| 久久精品美女| 亚洲精品欧美极品| 国产精品一久久香蕉国产线看观看| 久久精品在线播放| 欧美一区二区在线视频观看| 99re在线视频上| 久久国产精品久久久久| 韩日午夜在线资源一区二区| 国产精品网站入口| 欧美亚洲另类视频| 精品国产一区二区三区久久狼5月| 亚洲精品久久久久久一区二区| 成人在线国产精品| 久久久久国产精品一区| 国产一区二区在线视频播放| 国产精品毛片一区视频| 欧美午夜精品久久久久免费视| 国产高清av在线播放| 色噜噜狠狠色综合网| 91美女片黄在线观看游戏| 久久99精品久久久久久琪琪 | 亚洲在线www| 波多野结衣久草一区| 一级黄色免费在线观看| 成人a在线观看| 欧美一区二区三区免费视| 久久网站免费视频| 欧洲在线视频一区| 日韩中文在线中文网三级| 欧美性视频在线| 国产精品视频网站在线观看| 激情伊人五月天| 欧美另类99xxxxx| 国产亚洲天堂网| 一级特黄妇女高潮| 久久天堂国产精品| 奇米四色中文综合久久| www.久久撸.com| 精品欧美一区二区久久久伦| 九九热精品视频国产| 国产精品综合网站| 亚洲蜜桃av| 国产二级片在线观看| 欧美日韩精品免费观看视一区二区| 久久精品成人动漫| 国产一区二区三区奇米久涩 | 欧美中文在线观看| 精品乱子伦一区二区三区| 成人精品久久一区二区三区| 欧美一级片在线播放| 久久九九免费视频| 国产男女免费视频| 三年中国中文在线观看免费播放| 日韩视频免费在线| 国产欧美一区二区视频| 亚洲色婷婷久久精品av蜜桃| 久久久久久一区| 国产日韩在线一区二区三区| 亚洲一区二区三区sesese| 国产成年人在线观看| 免费在线精品视频| 欧美久久久精品| 久热这里只精品99re8久| 欧美在线一区二区三区四| 久久97精品久久久久久久不卡 | 日本欧美黄网站| 国产精品久久久久91| 91久久精品国产91久久| 黄色一级在线视频| 午夜精品久久久久久99热软件| 国产精品无码人妻一区二区在线| 国产九区一区在线| 日本乱人伦a精品| 久久69精品久久久久久久电影好| 国产超级av在线| 国产狼人综合免费视频| 欧美一区视久久| 亚洲精品蜜桃久久久久久| 欧美成年人在线观看| 久久精品在线免费视频| 国产精品永久入口久久久| 青青青免费在线| 亚洲 国产 日韩 综合一区| 国产精品二区在线| 日韩在线视频中文字幕| 97久久精品人搡人人玩| 欧美激情精品久久久久久小说| 亚洲一区二区久久久久久久| 国产精品国产精品国产专区不卡 | 欧洲熟妇精品视频| 亚洲wwwav| 一区国产精品| 久久天天躁狠狠躁夜夜躁2014| 久久久久久久久久久网站| 91免费视频国产| 国产日韩精品在线观看| 欧美与黑人午夜性猛交久久久 | 欧美日韩电影一区二区| 熟女少妇在线视频播放| 亚洲综合色av| 色综合久久久久久中文网| 国产精品欧美一区二区三区奶水| 久久久天堂国产精品女人| caopor在线视频| 国产欧美日韩一区二区三区| 免费一级特黄特色毛片久久看| 日本精品福利视频| 三年中文高清在线观看第6集| 亚洲欧美精品| 亚洲人精品午夜射精日韩| 一级黄色免费在线观看| 欧美精品www| 久久99精品久久久久久琪琪 | 欧美日本中文字幕| 国产精品第三页| 久久中文字幕国产| 国产精品久久久久秋霞鲁丝| 久久精品国产久精国产思思| 久久久久久午夜| 久久99国产精品| 日韩中文在线不卡| 国产精品无码av在线播放| 久久九九免费视频| 久久精品视频va| 国产精品美乳一区二区免费| 久久香蕉频线观| 国产999精品视频| 亚洲制服欧美久久| 亚洲精品成人三区| 日韩中文字幕在线免费| 日韩高清国产精品| 欧美日韩在线不卡视频| 狠狠色噜噜狠狠狠狠色吗综合| 精品一区二区三区国产| 国产在线一区二| 成人国产一区二区三区| 久久影院理伦片| 啊v视频在线一区二区三区| 国产精品久久久久久久久借妻| 精品不卡在线| 亚洲精品国产系列| 人人妻人人做人人爽| 国产综合动作在线观看| 国产欧美一区二区三区在线看| 高清无码视频直接看| 久久久福利视频| 久青草国产97香蕉在线视频| 国产精品久久电影观看| 久久久久久com| 亚洲欧美久久234| 日本婷婷久久久久久久久一区二区| 欧美午夜精品久久久久久蜜| 国产一级片91| 91国产在线免费观看| 北条麻妃在线一区二区| 欧美精品免费看| 午夜精品久久久久久久久久久久 | 亚洲最大av在线| 日本不卡免费新一二三区| 霍思燕三级露全乳照| 成人欧美一区二区| 久久大香伊蕉在人线观看热2| 国产精品视频白浆免费视频| 一区二区三区av| 欧洲精品一区二区三区久久| 国产美女搞久久| 久久精品日产第一区二区三区| 久久亚洲精品成人| 视频一区二区视频| 欧美日韩在线高清| 成人av在线网址| 日韩午夜在线视频| 一本大道熟女人妻中文字幕在线| 日韩激情视频一区二区| 国产伦精品一区二区三区精品视频| 国产富婆一区二区三区| 精品国产一区二区三区四区精华| 天天操天天干天天玩| 黄色免费视频大全| 国产激情999| 国产99视频精品免视看7| 日本国产高清不卡| 国产欧美日韩专区发布| 丝袜亚洲欧美日韩综合| 中文字幕一区二区三区乱码| 欧美精品尤物在线| 久久免费视频观看| 欧美激情乱人伦| 狠狠色噜噜狠狠狠狠色吗综合| 久久久久久a亚洲欧洲aⅴ| 久久999免费视频| 欧美日韩国产不卡在线看| 国产极品精品在线观看| 中文字幕av久久| 国产原创精品| 久久激情五月丁香伊人| 日本在线观看一区二区|