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

    合肥圖文信息
    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

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

          9000px;">

                日韩视频123| 日韩欧美亚洲另类制服综合在线 | 国产乱人伦偷精品视频不卡| 日韩久久精品一区| 国产成人午夜99999| 国产精品乱人伦| 欧美人伦禁忌dvd放荡欲情| 久久国产乱子精品免费女| 国产欧美精品区一区二区三区| 成人午夜免费av| 一区二区三区中文免费| 欧美不卡123| 日本韩国视频一区二区| 精品一区二区三区在线播放视频 | 91精品91久久久中77777| 日韩高清中文字幕一区| 中文字幕在线播放不卡一区| 69堂亚洲精品首页| fc2成人免费人成在线观看播放| 日日夜夜免费精品| 亚洲人妖av一区二区| 日韩精品在线一区| 色妹子一区二区| 粉嫩av一区二区三区| 青青草97国产精品免费观看 | 狠狠色丁香婷婷综合| 亚洲国产你懂的| 国产精品久久久久久久久免费相片 | 精品美女一区二区三区| 91极品美女在线| 高清免费成人av| 国产美女主播视频一区| 丝袜诱惑制服诱惑色一区在线观看| 亚洲国产高清在线观看视频| 欧美刺激午夜性久久久久久久 | 一区二区欧美视频| 国产精品每日更新在线播放网址| 欧美一区二区免费| 欧美日韩一区二区三区高清| 一本色道久久综合亚洲91| 国产精一品亚洲二区在线视频| 午夜精品久久久久| 亚洲图片自拍偷拍| 亚洲卡通动漫在线| 亚洲欧洲另类国产综合| 国产精品美女久久久久av爽李琼 | 亚洲va国产天堂va久久en| 1024成人网色www| 中文av一区二区| 国产精品久久久久久久久免费桃花 | 国产精品亚洲视频| 国产自产视频一区二区三区| 精品亚洲国产成人av制服丝袜| 免费av成人在线| 六月丁香婷婷久久| 九九视频精品免费| 免费成人在线网站| 亚洲精品久久嫩草网站秘色| 亚洲欧美日韩电影| 亚洲一区二区三区四区不卡| 亚洲品质自拍视频网站| 亚洲人亚洲人成电影网站色| 椎名由奈av一区二区三区| 成人免费一区二区三区在线观看 | 国产欧美中文在线| 国产精品视频一二三区| 亚洲免费电影在线| 亚洲国产精品影院| 久久超碰97中文字幕| 国产剧情av麻豆香蕉精品| 99国产麻豆精品| 欧美性猛片xxxx免费看久爱| 欧美精品在线视频| 久久久亚洲综合| 亚洲日本护士毛茸茸| 日韩激情视频在线观看| 国产精品一区在线| 91丝袜高跟美女视频| 日韩一区二区精品葵司在线 | 久久久久久久网| 中文字幕亚洲电影| 日本中文在线一区| 成人aa视频在线观看| 欧美日韩在线不卡| 国产视频一区二区三区在线观看| 亚洲欧美日韩中文播放| 免费av成人在线| 91久久精品一区二区三区| 久久亚洲私人国产精品va媚药| 亚洲嫩草精品久久| 国产精品自拍网站| 欧美三级欧美一级| 国产日韩精品一区二区三区在线| 亚洲成人免费电影| 91伊人久久大香线蕉| 精品免费一区二区三区| 亚洲人亚洲人成电影网站色| 久久爱另类一区二区小说| 91麻豆国产福利精品| 久久亚洲免费视频| 琪琪久久久久日韩精品| 91极品美女在线| 亚洲欧洲一区二区在线播放| 国产真实精品久久二三区| 欧美日本在线观看| 亚洲人成网站色在线观看| 国产一区二区三区免费看| 欧美日韩精品一区二区| 亚洲激情图片qvod| 色综合天天视频在线观看| 国产精品污www在线观看| 国产精品一区二区你懂的| 日韩免费一区二区| 日本三级韩国三级欧美三级| 欧美伊人精品成人久久综合97| 国产精品天美传媒| 播五月开心婷婷综合| 欧美国产日本视频| 国产一区二区精品在线观看| 久久综合久久鬼色| 国产成人精品影院| 国产精品私人自拍| 成人av网址在线观看| 国产精品嫩草影院av蜜臀| 99视频精品免费视频| 亚洲裸体在线观看| 欧美日韩综合不卡| 日韩不卡手机在线v区| 欧美精三区欧美精三区| 亚洲成精国产精品女| 欧美挠脚心视频网站| 天堂在线一区二区| www国产精品av| 成人ar影院免费观看视频| 亚洲欧美电影一区二区| 色哦色哦哦色天天综合| 亚洲大型综合色站| 欧美一级淫片007| 国模无码大尺度一区二区三区| 国产精品色哟哟| 欧美中文字幕一区二区三区| 日韩国产精品91| 国产喷白浆一区二区三区| 97精品视频在线观看自产线路二| 亚洲男人天堂av| 91麻豆精品国产91久久久使用方法 | 中文字幕欧美一| 在线国产电影不卡| 五月婷婷久久丁香| 久久精品人人爽人人爽| 色综合久久天天| 老司机午夜精品| 亚洲欧洲日韩在线| 在线不卡的av| 国产麻豆成人传媒免费观看| 亚洲人亚洲人成电影网站色| 日韩一区二区在线观看视频播放| 成人免费看黄yyy456| 天堂av在线一区| 亚洲人成人一区二区在线观看| 7777女厕盗摄久久久| 成人av午夜影院| 国内精品久久久久影院一蜜桃| 亚洲同性gay激情无套| 欧美白人最猛性xxxxx69交| 99久久99久久久精品齐齐| 麻豆91精品视频| 亚洲视频一二区| 亚洲精品一区二区三区影院| 色成年激情久久综合| 丁香网亚洲国际| 久久精品国产一区二区三区免费看| 中文字幕va一区二区三区| 69久久夜色精品国产69蝌蚪网| 成人免费视频视频在线观看免费| 日韩黄色在线观看| 亚洲一区二区三区四区中文字幕| 国产日韩v精品一区二区| 91麻豆精品久久久久蜜臀| 在线免费观看成人短视频| 成人精品国产一区二区4080| 国模大尺度一区二区三区| 日韩精品1区2区3区| 亚洲成a人v欧美综合天堂下载| 中文字幕佐山爱一区二区免费| 欧美经典一区二区三区| 26uuu色噜噜精品一区二区| 欧美一级片在线看| 欧美巨大另类极品videosbest| 色婷婷狠狠综合| 色综合天天综合在线视频| 北条麻妃国产九九精品视频| 国产精品一区二区在线看| 韩国v欧美v日本v亚洲v| 激情五月激情综合网| 精品无人码麻豆乱码1区2区| 日本欧美在线看| 日日夜夜免费精品视频| 日韩电影在线看| 久久精品国产一区二区三区免费看|