有人可以逐行解释这个简短的 C 程序的作用以及如何运行它吗?
#include<curses.h> //includes the curses library so it can be used in the function
main()
{ //opening main method
int i; //declare int i
initscr(); //creates a terminal of a specific type?
noecho(); // turn off echoing
for (i=0; I <5; i++) //loops from 0 to 4
getch(); //takes one character from the keyboard, I think ?
endwin();
} //restores the terminal
我不确定这个简单的程序在做什么,并且似乎也无法运行它? 有人可以帮我吗?
#include<curses.h> //includes the curses library so it can be used in the function
main()
{ //opening main method
int i; //declare int i
initscr(); //creates a terminal of a specific type?
noecho(); // turn off echoing
for (i=0; I <5; i++) //loops from 0 to 4
getch(); //takes one character from the keyboard, I think ?
endwin();
} //restores the terminal
I am not sure about what this simple program is doing, and cannot seem to run it either ?
Could someone please help me out here ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您正在寻找:
I think you are looking for: