Code: Show/Hide #define LOLLERSKATES <stdio
#include LOLLERSKATES.h> |
SamHughes wrote: |
You're whining about what library you have to use for output. Get a life.
And here's one sentence of useful informativeness. If you wanted to use sprintf, use std::stringstream, which is a good substitute. I now prefer that to sprintf. Or implement your own printf and sprintf functions just to spite them. But why wouldn't you want to use the std::string class? It's easy and it's your friend. And if you're going to be a library bigot, I recommend avoiding programming for the rest of your life. |
Code: Show/Hide cout << "Freq " << freq->id << " has " << freq->flagcount << " flags!"; |
Code: Show/Hide printf("Freq %d has %d flags!", freq->id, freq->flagcount); |
SamHughes wrote: |
What are the Bears? |
Bak wrote: |
I actually wish they taught programming concepts independent of languages, as lots of things would make sense and therefore be easier to learn once you understand them, instead of just memorizing everything and then figuring out the "why" afterwards. |
unknown1988 wrote: |
Use streams if you are coding in c++. They are very nice. |