Почему моя программа на C++, использующая библиотеки SFML, запускается без ошибок и предупреждений, но окно не отображае ⇐ C++
Почему моя программа на C++, использующая библиотеки SFML, запускается без ошибок и предупреждений, но окно не отображае
Below is my code that I'm trying to compile and run. (It's from chat gpt but that's just bc I'm testing stuff.)
I am working in RedPanda.
The code presents no errors or warnings, but when I run it, this is all that comes up. Command prompt that shows 'Process exited after 0.1049 seconds with return value 3221225785 (15.62 ms cpu time, 3968 KB mem used). Press ANY key to exit...'
Can someone please give me a hint as to what I'm supposed to be looking at in order for the window to appear? I'm a complete beginner by the way, so I'm sorry if the answer seems obvious. Please forgive me if this is too vague! Thank you.
My code below:
#include #include #include int main() { sf::RenderWindow window(sf::VideoMode(800, 600), "Dino Run Game"); window.setFramerateLimit(60); if (!window.isOpen()) { std::cerr
Источник: https://stackoverflow.com/questions/781 ... rnings-but
Below is my code that I'm trying to compile and run. (It's from chat gpt but that's just bc I'm testing stuff.)
I am working in RedPanda.
The code presents no errors or warnings, but when I run it, this is all that comes up. Command prompt that shows 'Process exited after 0.1049 seconds with return value 3221225785 (15.62 ms cpu time, 3968 KB mem used). Press ANY key to exit...'
Can someone please give me a hint as to what I'm supposed to be looking at in order for the window to appear? I'm a complete beginner by the way, so I'm sorry if the answer seems obvious. Please forgive me if this is too vague! Thank you.
My code below:
#include #include #include int main() { sf::RenderWindow window(sf::VideoMode(800, 600), "Dino Run Game"); window.setFramerateLimit(60); if (!window.isOpen()) { std::cerr
Источник: https://stackoverflow.com/questions/781 ... rnings-but
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Программа C++, использующая JackTokenizer, не может добавить токены в вывод XML
Anonymous » » в форуме C++ - 0 Ответы
- 28 Просмотры
-
Последнее сообщение Anonymous
-