SFML community forums
Help => General => Topic started by: paupav on July 08, 2014, 02:09:19 pm
-
I'm curently creating snake game, and when game ends I wanna make it show players score. So, how can I make it show actuall number?
Also I know that name of my game is horrible, I'll change it later.
-
The problem is not how to show numbers, but how to convert a number to a string. Which is one of the most common task in all programming languages.
Google -> "C++ int to string".
-
Ok, sorry. That was stupi question.
Its like istringstream, just reverse:
http://www.cheatengine.org/forum/viewtopic.php?t=555770&postdays=0&postorder=asc&start=0&sid=6691fbaa4084e7253f2b8b4837ecbb18
-
Mother of script kids...
-
[LINK]
All that link shows is how you like to troll.
-
[LINK]
All that link shows is how you like to troll.
That was my first week programming. I've never made program before that one. You can see updates of the code. Just scroll down.
-
I'd recommend reading a good C++ book, since you seem to be lacking some of the fundamentals. It'll save you a lot of pain and frustration in the future.
-
I'd recommend reading a good C++ book, since you seem to be lacking some of the fundamentals. It'll save you a lot of pain and frustration in the future.
I've learned c++ using this awesome tutorial:
www.cplusplus.com/files/tutorial.pdf
but I've only read up to page 100 .
-
Don't learn from internet tutorials, as "awesome" as you might find them (which is difficult to judge as a beginner, by the way). If you are seriously interested in learning the C++ programming language, which is a big endeavour, you won't get around a good book.
For example, the tutorial you link doesn't seem to mention a single word about the STL, the probably most important part of the C++ standard library.
-
Don't learn from internet tutorials, as "awesome" as you might find them (which is difficult to judge as a beginner, by the way). If you are seriously interested in learning the C++ programming language, which is a big endeavour, you won't get around a good book.
For example, the tutorial you link doesn't seem to mention a single word about the STL, the probably most important part of the C++ standard library.
OK, thanks all for advice's. I'll buy some book.
Also a lot of people said me that this tutorial is much better than any other tutorial
-
Don't just buy a book, buy a good one. There are also a lot of bad C++ books.
Here's a good list: http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
-
Don't just buy a book, buy a good one. There are also a lot of bad C++ books.
Here's a good list: http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
Thanks I'll get Tour of C++ since it is book for programmers with some knowledge. I think that it sounds like perfect book for me.