-
two questions
There are a couple of symbols I've used blindly and I'd like to know what they do. They are: %d and %s. I couldn't find a clear reference when I was searching that showed what the symbols that start with % mean.
Also, is there a list of all the available features of C++ without using libraries? Just a reference that shows all the keywords built into the language.
-
>I couldn't find a clear reference when I was searching that showed what the symbols that start with % mean.
Have you tried the FAQ?
>Also, is there a list of all the available features of C++ without using libraries?
The only ones I know of are reference books on C++ or the C++ standard. You can search google for the draft standard, which is free, but not completely authoritative because it's only a draft.
-
I'm sorry, the FAQ is helpful, but I still don't understand. The funtion goes like this:
Code:
<allegro.h> //using the allegro library
...
textprintf(..., "(%d, %d)", mouse_x, mouse_y);
this causes it to show mouse_x in the first %d spot, and mouse_y in the second. Why?
-
I imagine it's just like regular printf(), except it outputs to some graphic surface rather than the console.