Make screen in C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Make screen in C++

I want to make a snake game in C++ but anybody can tell me how to make screen in console, I searched on Google it shows me something like buffer screen plz tell me how can create screen

3rd Jun 2021, 3:07 PM
Shiv The Human Code
Shiv The Human Code - avatar
5 Answers
+ 1
I'm guessing you mean create screen as graphics. I don't think one can do that with it since C++ alone doesn't support specific keyboard inputs, you will need a input library to do it.
3rd Jun 2021, 3:32 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
why make a snake game on console when you can use SDL or SFML to make that game like a real man today!
3rd Jun 2021, 3:14 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
I basically create console based application so I need to know how can be create screen in console it's also be beneficial for practicing purpose
3rd Jun 2021, 3:19 PM
Shiv The Human Code
Shiv The Human Code - avatar
0
Shubham Singh Bhadauriya you can look at/use ncurses/curses library at least available for unix-based systems: there should be at least an alternative in ms(-dos) world... https://en.m.wikipedia.org/wiki/Ncurses http://www.cs.ukzn.ac.za/~hughm/os/notes/ncurses.html https://www.linuxjournal.com/content/getting-started-ncurses however, this will not work in sololearn code playground context, as sololearn compile/run scripts on server sides, preventing real interactivity ^^
3rd Jun 2021, 6:49 PM
visph
visph - avatar
- 1
U need to learn double linked list data structures
3rd Jun 2021, 6:29 PM
Chinmay Anand
Chinmay Anand - avatar