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;">

                欧美一区日本一区韩国一区| 免费成人av在线播放| 亚洲国产精品ⅴa在线观看| 一区二区三区在线免费播放| 国产精品一区2区| 日韩精品中午字幕| 婷婷开心激情综合| 在线日韩av片| 日韩一区欧美二区| 日韩三级免费观看| 成人丝袜18视频在线观看| 国产欧美日韩中文久久| 99国产欧美另类久久久精品| 自拍偷拍亚洲激情| 欧美午夜精品一区二区三区| 亚洲久本草在线中文字幕| 成人精品国产免费网站| 亚洲三级理论片| 日韩免费视频线观看| 国产成人免费视频一区| 亚洲综合色区另类av| 欧美xfplay| 欧美猛男超大videosgay| 久久国产精品99久久久久久老狼 | 久久久久国色av免费看影院| 成人性生交大片免费看中文| 日韩在线观看一区二区| 中文字幕中文字幕一区二区 | 欧美日韩国产大片| 国产suv精品一区二区三区| 亚洲免费观看在线视频| 精品av久久707| 欧美精品一区二区在线播放| 欧美福利视频一区| 欧美精品久久一区| 911精品国产一区二区在线| 粉嫩久久99精品久久久久久夜| 日日摸夜夜添夜夜添国产精品| 亚洲乱码国产乱码精品精的特点 | 欧美一区二区三区思思人| 色狠狠av一区二区三区| 91亚洲午夜精品久久久久久| 国产在线精品一区二区三区不卡 | 亚洲免费高清视频在线| 亚洲男人都懂的| 专区另类欧美日韩| 亚洲伊人伊色伊影伊综合网| 午夜影院久久久| 韩国精品主播一区二区在线观看 | 欧美日本免费一区二区三区| 欧美日韩中文一区| 欧美日韩国产综合一区二区三区| 色视频一区二区| 欧美xxx久久| 亚洲欧美国产三级| 视频一区国产视频| 国产高清成人在线| 成人激情文学综合网| 欧美日韩国产精选| 18成人在线观看| 久久精品99国产精品| 欧美日韩精品一区二区三区| 日韩一级片网站| 亚洲韩国精品一区| 成人激情小说网站| 日韩免费观看2025年上映的电影 | 三级一区在线视频先锋 | 69堂精品视频| 亚洲一区二区在线观看视频 | 国产91丝袜在线18| 亚洲精品一区二区三区影院 | 蜜桃视频在线观看一区| 成人午夜av影视| 中文字幕亚洲在| 国产99久久精品| 欧美精彩视频一区二区三区| 国产乱码精品1区2区3区| 久久综合色8888| 午夜精品久久久久久久99水蜜桃| 99这里只有精品| 成人免费一区二区三区视频 | 国产精品乡下勾搭老头1| 久久久亚洲精品一区二区三区| 亚洲高清视频的网址| 色先锋资源久久综合| 午夜影视日本亚洲欧洲精品| 2022国产精品视频| 99精品视频在线免费观看| 日韩极品在线观看| 亚洲日本在线a| 欧美日韩一级二级| 国产99久久久精品| 免费精品视频在线| 国产午夜精品在线观看| 91麻豆国产精品久久| 老司机免费视频一区二区| 国产午夜精品久久| 欧美精品三级日韩久久| 99久久婷婷国产综合精品电影| 亚洲二区视频在线| 日本一区二区综合亚洲| 91麻豆精品国产91久久久久久 | 欧美成人乱码一区二区三区| 久久精品视频在线免费观看| 欧美综合视频在线观看| 国产成人在线视频网址| 毛片av中文字幕一区二区| 樱花影视一区二区| 中文字幕视频一区二区三区久| 在线视频综合导航| 91久久香蕉国产日韩欧美9色| 国产剧情一区二区三区| 久久99国产精品麻豆| 三级在线观看一区二区| 青椒成人免费视频| 日韩国产在线观看| 日韩综合小视频| 麻豆传媒一区二区三区| 精品一区二区成人精品| 蜜桃一区二区三区在线| 国产美女一区二区三区| 国产乱一区二区| 99久久久久久| 91精品视频网| 精品国产一区二区精华| 久久天天做天天爱综合色| 国产午夜精品一区二区三区嫩草| 中文字幕永久在线不卡| 亚洲成人一区在线| 不卡区在线中文字幕| 欧美日韩一区二区三区四区五区 | 精品欧美乱码久久久久久| 国产欧美精品一区| 亚洲最新视频在线观看| 国产精品一色哟哟哟| 色嗨嗨av一区二区三区| 精品sm在线观看| 日本女优在线视频一区二区| 丁香亚洲综合激情啪啪综合| 91精品国产欧美一区二区成人| **性色生活片久久毛片| 精品一区二区在线看| 99久久久久久| 一本色道久久综合亚洲精品按摩| 欧美午夜精品久久久| 亚洲视频你懂的| 奇米影视一区二区三区| 欧美日韩一二三区| 一区二区高清视频在线观看| 久久精品99久久久| 在线不卡免费av| 欧美videos中文字幕| 日韩精品电影一区亚洲| 国产99精品国产| 成人欧美一区二区三区在线播放| 99re这里只有精品视频首页| 精品国产麻豆免费人成网站| 黄一区二区三区| 久久久久久久综合| 成人黄色小视频在线观看| 国产精品久久久爽爽爽麻豆色哟哟| 懂色av中文一区二区三区| 精品日韩成人av| 成人午夜视频福利| 久久久久国产一区二区三区四区| 国产成人欧美日韩在线电影| 一区免费观看视频| 欧美日韩一区在线| 麻豆精品新av中文字幕| 国产日韩欧美一区二区三区乱码| 成人av电影在线播放| 亚洲综合一区二区精品导航| 欧美性色aⅴ视频一区日韩精品| 久久99国产精品免费| 亚洲国产欧美在线人成| 国产精品三级av| 日韩欧美黄色影院| 日韩精品一区二区三区三区免费| 粉嫩嫩av羞羞动漫久久久| 蜜臀精品久久久久久蜜臀| 亚洲综合丁香婷婷六月香| 国产精品成人免费精品自在线观看| 欧美一级黄色大片| 91精品国产一区二区三区蜜臀| 91性感美女视频| 色94色欧美sute亚洲13| 成人激情图片网| 色综合色狠狠天天综合色| 91亚洲精品一区二区乱码| 国产高清视频一区| 日本女优在线视频一区二区| 日韩和的一区二区| 日韩av中文字幕一区二区三区| 亚洲国产精品尤物yw在线观看| 天堂午夜影视日韩欧美一区二区| 亚洲va韩国va欧美va| 韩国视频一区二区| 波多野洁衣一区| 欧美日韩在线直播| 久久网站热最新地址|