Posted
I decided to release a utilized snprintf for formatting! this includes operator overloading! github
char buffer[2048] /* our max buffer length! you can change this if you want. */
#include "format.hpp"
void a(const char*);
void b(std::string)
int main() {
format fmt("Hello %s\n", "World!");
/* std::ostream overloading operator "<" */
std::cout << fmt << ":)";
a(fmt); // const char* overloading
b(fmt) // std::string overloading
/*
Hello World!
*/
}Replied
no idea wat this is bc im too retarded, but ill vouch anyways
Cancel
Post
Replied
I have no use for this right now but uhhh...I might need it some day? Idk. Vouch because maximus is cool.
Cancel
Post
Replied
Idfk how this code works and what it used forÂ
Â
But anyways vouch for Maximus bro 😩
Cancel
Post
Im netral, not evil, not too kind either.
Replied
@TERIHAX this is just for formatting a string, something like you would do in c#:
int ballsize = 4783;
string res = String.Format("my balls are {0} big", ballsize); //my balls are 4783 bigCancel
Post
hi123
Replied
@MINISHXP ohh, but ur example is funny lmao, did you forget to put inches or smth
Cancel
Post
hi123
Replied
like I said this is a string formatting, there's legit an example how it's being used.
Cancel
Post
Replied
Ima be fr with you right.Â
sprintf.
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post