国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    91免费的视频在线播放| 精品国产欧美成人夜夜嗨| 99久热在线精品视频| 国产精品久久久久久久电影| 日本不卡高字幕在线2019| chinese少妇国语对白| 精品久久久久久一区二区里番| 欧美视频免费播放| 国产成人精品日本亚洲11| 亚洲一区二区三区四区中文| 国产伦精品一区二区三区免费视频| 国产精品美乳一区二区免费| 热re99久久精品国99热蜜月| 久久综合毛片| 亚洲欧洲精品在线| 99久久99| 日韩一级在线免费观看| 成人黄色中文字幕| 中文字幕无码精品亚洲35| 国产精品中文在线| 欧美精品国产精品日韩精品| 国产裸体免费无遮挡| 欧美日韩国产成人在线| 国产伦精品一区二区三区高清版 | 国产精品久久一| 欧美精品中文字幕一区二区| 久久精品中文字幕一区| 欧美亚洲免费在线| 国产精品日韩在线观看| 精品一区二区日本| 久久成人亚洲精品| 成人在线精品视频| 五月天综合婷婷| 久久精品国产第一区二区三区最新章节 | 宅男在线精品国产免费观看| 国产亚洲精品自在久久| 精品国产乱码久久久久软件| 国产伦精品一区二区三区高清版| 又粗又黑又大的吊av| 91精品国产91久久久久久最新 | 国产黄色激情视频| 欧洲美女7788成人免费视频| 少妇久久久久久| 蜜臀av性久久久久蜜臀av| 久久99久久99精品中文字幕| 91av在线播放| 明星裸体视频一区二区| 精品国产成人av在线免| 成人av资源在线播放| 春日野结衣av| 国产精品乱码久久久久| 国产精品一区=区| 日本一区二区三区视频免费看 | 国产精选久久久久久| 亚洲国产一区二区三区在线播| 久久精品视频91| 国产在线观看不卡| 丁香色欲久久久久久综合网| 日本精品免费观看| 国产精品美乳在线观看| 99精彩视频| 日韩精品最新在线观看| 久久国产精彩视频| 91传媒久久久| 韩国国内大量揄拍精品视频| 亚洲一二三区精品| 北条麻妃在线一区二区| 国产美女搞久久| 欧美一区二区三区在线播放| 国产精品色午夜在线观看| www.av毛片| 黄色一级片播放| 欧美一级在线看| 欧美日韩成人精品| 久久久久久久国产| 国产精品稀缺呦系列在线| 奇米成人av国产一区二区三区| 中文字幕日韩一区二区三区 | 久久精品福利视频| 91久久久在线| 精品一区久久久| 色综合电影网| 欧美精品成人在线| 国产精品手机视频| 91av中文字幕| 国产乱人伦精品一区二区| 欧美性视频精品| 懂色中文一区二区三区在线视频| 久久亚洲精品国产亚洲老地址| 国产freexxxx性播放麻豆| 国产精品中文久久久久久久| 欧美精品一区二区三区在线看午夜 | 99久久国产宗和精品1上映| 欧美精品99久久| 日韩中文在线字幕| 中文字幕一区二区三区四区五区六区 | 日韩精彩视频| 亚洲xxxx视频| 一区二区三区日韩视频| 久久五月天色综合| 国产精品视频在线免费观看| 久久国产精品一区二区三区| julia一区二区中文久久94| 国产一区免费视频| 今天免费高清在线观看国语| 日本精品免费一区二区三区| 亚洲精品中字| 亚洲色婷婷久久精品av蜜桃| 一区二区在线观看网站| 欧美激情小视频| 麻豆一区二区在线观看| 久久精品一本久久99精品| 久久久久久一区| 国产成人一二三区| 久久亚洲一区二区| 91国产视频在线播放| 99精品在线直播| 成人免费午夜电影| 国产伦精品一区二区三毛| 国产日韩欧美在线| 国产日韩一区在线| 国产日韩av在线| 国产免费一区视频观看免费| 国产精品中文久久久久久久| 二级片在线观看| av动漫在线看| 91免费看片在线| 久久久免费精品| 久久一区二区精品| 久久久噜久噜久久综合| 久久久久久久一| 国产成人免费电影| 国产精品日韩一区二区三区| 国产精品久久77777| 久久6精品影院| 亚洲一区二区三区精品视频| 亚洲高清视频一区二区| 日韩av一区二区三区在线| 日韩国产在线一区| 欧美极品一区二区| 国产在线拍揄自揄视频不卡99| 国产一区 在线播放| 国产男女激情视频| 91久久精品国产91久久| 久久观看最新视频| 久久精品人人爽| 欧美成在线视频| 亚洲精品在线视频观看| 日本高清不卡三区| 欧美变态另类刺激| 国产日韩欧美综合| 91高清免费视频| www.国产精品一二区| 欧美老少配视频| 岛国视频一区免费观看| 青青草原一区二区| 国产一级做a爰片久久毛片男| 超碰成人在线免费观看| 久久久噜噜噜久久中文字免| 国产精品免费看一区二区三区 | 国产亚洲欧美另类一区二区三区| 成人国产精品久久久| 国产va亚洲va在线va| 国产精品极品在线| 亚洲一区二区三区在线观看视频| 日本三级中文字幕在线观看| 欧美日韩国产精品一区二区| 蜜桃视频成人| 国产精品2018| 国产精品欧美在线| 午夜精品一区二区三区av| 欧美在线观看网址综合| 国产精品一 二 三| 久久久久久有精品国产| 欧美激情精品久久久久久变态 | 美女福利视频一区| 日韩 欧美 自拍| 国产一区福利视频| 国产福利一区视频| 蜜臀久久99精品久久久无需会员 | 欧美激情一区二区三区久久久| 日本一区二区三区四区高清视频| 欧美日韩精品免费观看| 成人亚洲欧美一区二区三区| 久久久精品久久| 亚洲精品国产精品久久| 免费在线成人av| 91国偷自产一区二区三区的观看方式 | 欧美日韩一区在线视频| 91精品久久久久久久久青青 | 91免费在线视频| 国产精品久久一区主播| 日韩在线三级| 国产日韩第一页| 国产成人精品在线播放| 亚洲va欧美va在线观看| 国产日韩欧美在线视频观看| 久久精品在线播放| 日本久久久久久| 国产精品97在线|