Every time I watch a new video from your channel, I hit the like button. I wish I have a macro for that. Now, I'm using my thumb again. 👍
@shvideo13 жыл бұрын
Very useful video. Thank you for covering it so thoroughly. Also, what a great function snprintf() is?! I am picking back up C again after many years and I love it's simplicity, power, speed, and cross-platform support. I think all real programmers should know how to use it and C++ very well. Thank you for covering this jewel of a language.
@ΧριστίναΜι-μ3ψ3 жыл бұрын
That was really interesting and useful, thank you!
@mahadifamgate26863 жыл бұрын
Very Good tutorial, also i request , if u make a website or blog so that i can read same information once again like short Text-Note.
@CodeVault3 жыл бұрын
Our website is up on: code-vault.net although it only has source codes and links to the current videos. We plan on expanding that soon!
@jameslay65052 жыл бұрын
The title would have you think the topic is format strings, (maybe what they are, how to use them, advanced topics) but it's in fact talking about applying the DRY principle to format strings. It's 11 minutes long. Lemme paraphrase the entire video: define format strings as a preprocessor directive and you won't have to rewrite your format strings everywhere they're used. tbh this is common sense.
@ankushdua86614 жыл бұрын
does this technique work in C++?
@CodeVault4 жыл бұрын
If you're using printf, it sure will. If you're using cout... There is a format function in the boost library, which you'd have to install, but it is different. You can also override the
@sony1979iq3 жыл бұрын
thx very nice videos like them
@charan24463 жыл бұрын
Dose this snprintf(buffer, 100, .......) work in c++ ?
@CodeVault3 жыл бұрын
Yes, anything that works in C works in C++ as well
@techxplorerxxx3 жыл бұрын
I am getting warning od -wformat-truncation when using snprintf.How to avoid that??
@CodeVault3 жыл бұрын
Can you send me the whole error? I'm not sure what that means