国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    青青草成人网| 国产成人精品久久亚洲高清不卡| 欧美乱妇40p| 国产精品第12页| 国产精品久久久亚洲| 国产精品久久久久久久久久尿| 久久视频这里只有精品| 国产精品久久不能| 九九久久国产精品| 亚洲国产精品综合| 日本一区二区三区四区视频| 日日摸天天爽天天爽视频| 欧美一区二区三区四区在线| 涩涩日韩在线| 欧美乱偷一区二区三区在线| 毛葺葺老太做受视频| 国产人妻互换一区二区| 国产欧美日韩小视频| 成人国产精品久久久久久亚洲| 99久久久精品视频| 国产成人精品电影久久久| 色噜噜狠狠狠综合曰曰曰 | 99久久99久久| 久久久免费看| 国产精品视频xxx| 欧美激情综合色综合啪啪五月| 亚洲a在线播放| 欧美精品一区二区三区免费播放 | 热久久精品国产| 欧美激情一区二区三区在线视频| 黄色a级在线观看| 成人黄色av网站| 久久爱av电影| 国产精品爽爽爽| 欧美激情一区二区三级高清视频 | 97久久国产亚洲精品超碰热| 久久久久久久香蕉| 欧美激情亚洲综合一区| 日韩精品伦理第一区| 国产亚洲天堂网| 国产xxxxx视频| 国产精品第一视频| 日本欧美精品在线| 古典武侠综合av第一页| 日韩中文字幕在线视频| 亚洲色欲久久久综合网东京热| 欧美一区二区中文字幕| 91精品久久久久久久久久久| 国产精品美女在线观看| 亚洲一区三区在线观看| 欧美人与性禽动交精品| 91精品国产精品| 国产精品久久..4399| 日韩av电影免费在线| 国产九区一区在线| 国产精品入口芒果| 色视频一区二区三区| 国产欧美日韩视频一区二区三区 | 久久综合九色综合88i| 美女av一区二区三区| 日本一区二区三区精品视频| 国产区亚洲区欧美区| 久久精品国产一区二区电影| 午夜精品一区二区三区av| 国产亚洲天堂网| 国产精品极品尤物在线观看| 青青草国产免费| 久久久www免费人成黑人精品 | 国产精品久久久久久久久婷婷| 欧美一区二区大胆人体摄影专业网站 | 欧美中日韩在线| 久久久免费看| 亚洲在线观看一区| 国产欧美一区二区三区久久 | 亚洲一区精品电影| 国产一级做a爰片久久毛片男| 久久久久久久久久久人体| 亚洲视频在线二区| 官网99热精品| 欧美激情视频在线免费观看 欧美视频免费一| 日韩免费高清在线观看| 68精品久久久久久欧美| 亚洲人久久久| 114国产精品久久免费观看| 一本—道久久a久久精品蜜桃| 国产欧美日韩高清| 国产精品福利小视频| 欧美v在线观看| 国产精品视频26uuu| 欧美日韩国产综合视频在线| 国产精品网址在线| 免费h精品视频在线播放| 久久深夜福利免费观看| 黄色一级片av| 国产精品免费在线免费| 国产在线视频2019最新视频| 欧美激情视频在线观看| 97国产精品免费视频| 天天综合中文字幕| 久久久久久久久爱| 欧美国产综合在线| 久久夜色精品国产亚洲aⅴ| 国产精品自在线| 亚洲91精品在线观看| 久久99国产精品| 激情综合在线观看| 欧美日韩999| 隔壁老王国产在线精品| 欧美精品免费观看二区| 国产精品久久999| 成人www视频在线观看| 亚洲a在线观看| 久久精品国产美女| 黄色片视频在线播放| 欧美日韩第一页| 69国产精品成人在线播放| 青青草精品毛片| 久久久久久999| 久久99精品久久久久久水蜜桃| 狠狠久久综合婷婷不卡| 亚洲综合色av| 久久久精品久久久| 国产精品一区二区三区毛片淫片| 一区二区三区av| 久久久久资源| 国产一区二区三区免费不卡| 欧美激情在线有限公司| 国产精品99久久久久久白浆小说 | 91久久久在线| 人人妻人人澡人人爽欧美一区| 国产精品毛片va一区二区三区| 国产美女精品在线观看| 日本三级久久久| 欧美大成色www永久网站婷| 91精品免费看| 国内成人精品一区| 日韩av电影在线网| 九九久久国产精品| 久久99精品久久久久久水蜜桃| 国产自产精品| 日韩av一二三四区| 久久亚洲精品网站| 久久久久久久久久久福利| 成人做爽爽免费视频| 欧美人与性禽动交精品| 日韩一级片一区二区| 国产精品久久久久久久久久久久冷 | 国产在线精品自拍| 婷婷久久青草热一区二区| 国产精品极品美女在线观看免费| 97色在线观看免费视频| 蜜桃视频一区二区在线观看| 日本毛片在线免费观看| 亚洲伊人成综合成人网| 国产精品女人久久久久久| 久久频这里精品99香蕉| 国产精品一区二区三区免费观看| 男人天堂成人在线| 亚洲va久久久噜噜噜| 欧美激情中文网| 欧美成年人网站| 国产精品无码av在线播放| 国产成人综合一区二区三区| 国产乱码精品一区二区三区日韩精品| 欧美精品第三页| 日韩精品一区二区三区四| 亚洲精品高清视频| 最新欧美日韩亚洲| 精品国产一区二区三区四区vr| 久久精品久久久久久| 久久福利电影| 国产成人精品久久二区二区| 91精品视频在线播放| 国产精品永久免费视频| 蜜桃免费区二区三区| 欧美中文在线视频| 日韩精品第1页| 日韩精品久久一区二区三区| 日本一区不卡| 日本精品一区二区三区在线| 欧美一级片免费在线| 日日橹狠狠爱欧美超碰| 欧美一级欧美一级| 日韩av日韩在线观看| 日本精品久久久久影院| 日本欧美视频在线观看| 日韩女优在线播放| 日韩欧美精品一区二区三区经典| 痴汉一区二区三区| 午夜精品久久久内射近拍高清| 亚洲精品一区二区毛豆| 亚洲 国产 日韩 综合一区| 午夜老司机精品| 日本电影一区二区三区| 日韩精品一区二区免费| 欧美视频第三页| 国产一二三区在线播放| 97精品一区二区三区| 国产suv精品一区二区| 久久精品国产亚洲一区二区|