加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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號線
  • 短信驗證碼 目錄網 排行網

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

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

    欧美专区一区| 日本亚洲三级在线| 国产精品嫩草99av在线| 激情综合婷婷| 中文字幕一区二区三区在线视频| 91精品综合久久久久久久久久久| 91精品天堂福利在线观看| 999精品嫩草久久久久久99| 日日av拍夜夜添久久免费| 亚洲在线观看| 亚洲视频综合| ccyy激情综合| 日韩精品1区2区3区| 六月婷婷色综合| 黄色精品视频| 手机亚洲手机国产手机日韩| 黑丝美女一区二区| 日韩精品免费一区二区在线观看 | 国产精品久久久免费| 天使萌一区二区三区免费观看| 激情久久中文字幕| 日日天天久久| 日韩电影免费在线观看网站| 亚洲一区二区三区久久久| 国产成人久久精品麻豆二区| 中文字幕在线高清| 日韩精品一级中文字幕精品视频免费观看 | 色老板在线视频一区二区| 视频二区欧美| 日韩国产在线不卡视频| 国产精品一区二区三区www| 美女在线视频一区| 97成人超碰| 中文字幕日本一区二区| 成人一级福利| 色男人天堂综合再现| 蜜桃视频一区| 可以看av的网站久久看| 亚洲一区二区免费看| 中文在线不卡| 玖玖国产精品视频| 视频精品一区二区| 久久成人亚洲| 免费看日韩精品| 成人观看网址| 亚洲精品在线影院| 九九色在线视频| 欧美一级做一级爱a做片性| 日韩成人亚洲| 色综合久久久| 国产欧美日韩一级| 麻豆一区二区三区| 欧美激情 亚洲a∨综合| 你懂的亚洲视频| 日韩精品电影在线| 亚洲人成在线影院| 你懂的成人av| 久久最新网址| 日韩av不卡一区二区| 一区三区自拍| 99精品网站| 精品1区2区3区4区| 伊人成人网在线看| 成人激情在线| 祥仔av免费一区二区三区四区| 久久久久观看| 欧美黄色一级视频| 欧美专区一区| 色播一区二区| 禁果av一区二区三区| 1024精品一区二区三区| 亚洲免费高清| 美国毛片一区二区| 精品日韩视频| 亚洲精品孕妇| 青草伊人久久| 激情欧美亚洲| 免费成人在线网站| 91精品美女| 一区二区三区在线| 久久久久久爱| 激情欧美日韩| 欧美oldwomenvideos| 日韩久久99| 国产成人影院| 中文字幕伦av一区二区邻居| 欧美 日韩 国产 一区| 久久最新视频| 亚洲精品aa| 奇米狠狠一区二区三区| 精品99在线| 爽好久久久欧美精品| 激情久久一区二区| 亚洲影视一区二区三区| 激情小说一区| 免费观看在线色综合| 一区二区91| 日韩一级淫片| 宅男噜噜噜66国产日韩在线观看| 四虎4545www国产精品| 国产成人1区| 九一精品国产| 日韩精品免费观看视频 | 欧美不卡高清一区二区三区 | 欧美综合社区国产| 国内精品久久久久久久久电影网| 欧美男人操女人视频| 美女精品一区| 欧美精品aa| 天天久久夜夜| 日本三级一区| 欧州一区二区三区| 91精品99| 久久精品二区亚洲w码| 亚洲综合图色| 亚洲一区不卡| 久久综合导航| 999久久久91| 国模套图日韩精品一区二区| 亚洲日本免费电影| 天天插综合网| 欧美国产视频| 久久久蜜桃一区二区人| 欧美aa在线观看| 九九九九九九精品任你躁| 老司机午夜免费精品视频| 欧美激情一级片一区二区| 亚洲国产影院| 国产日韩亚洲| 欧美一区2区| av在线播放一区| 欧美成人一区在线观看| 国产极品久久久久久久久波多结野| 日韩精品三级| 韩日毛片在线观看| 日韩avvvv在线播放| 色乱码一区二区三区网站| 色棕色天天综合网| 老司机精品福利视频| 国产欧美日韩精品一区二区三区 | 久久精品久久久精品美女| 欧美91在线| 日日夜夜综合| 宅男在线一区| 欧美日本精品| 老鸭窝91久久精品色噜噜导演| 欧美午夜网站| 蜜臀av一区二区| 视频亚洲一区二区| 欧亚一区二区| 色天天色综合| 日本成人在线不卡视频| 亚洲国产一区二区三区在线播放| 亚洲人成久久| 美女视频一区免费观看| 日本亚洲视频| 日本少妇一区| 尤物tv在线精品| 亚洲日本久久| 日韩一区欧美二区| 亚洲三区欧美一区国产二区| 青草综合视频| 欧美日韩精品一本二本三本| 国产激情精品一区二区三区| 操人在线观看| 久久国产毛片| 永久亚洲成a人片777777| 久久亚洲电影| 给我免费播放日韩视频| 久久一区激情| 免费成人在线网站| 成人三级视频| 亚洲欧洲专区| 日韩一区亚洲二区| 国产精品91一区二区三区| 久久99国内| 成人交换视频| 午夜一级在线看亚洲| 国产成人精品亚洲线观看| 日本网站在线观看一区二区三区 | 欧美伦理在线视频| 国产欧美精品久久| 欧美日韩尤物久久| 日韩视频一区| 大陆精大陆国产国语精品 | 日韩电影一区二区三区四区| 国产91在线播放精品| 久久亚洲电影| 久久精品不卡| 亚洲成a人片77777在线播放 | 欧洲三级视频| 亚洲图色一区二区三区| 亚洲国产精品一区| 日韩片欧美片| 香蕉精品999视频一区二区 | 欧美日韩国产高清电影| 国产高清精品二区| 成人在线视频免费| 免费高清成人在线| 亚洲影视一区二区三区|