Anonymous
It is way more simpler and it is good enough to let experience a bit it SFML
Marie
3 warnings, Logic has been banned! - advertising - what in the fuck - advertising
Ибраги́м
No trials
Roxifλsz 🇱🇹
No trials
Yeah, maybe we should immediately ban on the first advertising post
Dima
Pointers are little shits
If you will treat these good they’ll become a little cuties
Ludovic 'Archivist'
If you will treat these good they’ll become a little cuties
Particularly when you stop treating them as pointers but as resources
Dima
Dima
Perhaps
__getitem__
https://paste.ubuntu.com/p/Pxb894fhDZ/
Anonymous
https://paste.ubuntu.com/p/VgzHC7Zy3y/
Anonymous
Please help me
Lee
/kickme
Marie
/kickme
No problem.
Anonymous
Please help me
What's the problem?
Anonymous
What's the problem?
I wrote the comment in the code
Anonymous
大家好!
Anonymous
I wrote the comment in the code
Try debugging and see what's the problem with the socket
Anonymous
hello,everybody
Anonymous
🇨🇳
Anonymous
Try debugging and see what's the problem with the socket
"Impossibile trovare o aprire il file PDB." ( It says it cannot open the PDB file )
Anonymous
Anonymous
Visual Studio's
Jussi
pdb is some sort of debugger related file in VS
Anonymous
Oh
BinaryByter
If you will treat these good they’ll become a little cuties
Little cuties that you cuan only pet on one specific spot, else it explodes
BinaryByter
Depends on you
Just avoid new
Dima
I can control everything
Dima
BinaryByter
Not reliably
klimi
Hello kitty
Anonymous
Anonymous
Which is best ide for. C and CPP programming
Anonymous
@
Ludovic 'Archivist'
Which is best ide for. C and CPP programming
"Best" is very hard to say
Anonymous
Just choose the best for your needing
Артём
Hello everyone, could you help me please. How can I pass the vector<string> as argument to another program with the function execv ? int execv(const char*, char* const*) requires the char* const* as second argument, so I have a problem to assign the data from vector<string> with array char* const* to pass it, because I get error: assignment of read-only location. Do you know any another way, or how to solve it?
klimi
hm
klimi
you can type vector[0]
klimi
and that is std::string
klimi
you can then use some function to convert it to str
klimi
i think it is something like c_str()
Артём
you can then use some function to convert it to str
No, so I get const char*, just a c-string, but I need to pass the array of c-strings the vector contains.
klimi
okay
klimi
char *convert(const std::string & s) { char *pc = new char[s.size()+1]; std::strcpy(pc, s.c_str()); return pc; } // main something std::vector<std::string> vs; std::vector<char*> vc; std::transform(vs.begin(), vs.end(), std::back_inserter(vc), convert);
Dima
Who is going to clear your shet
Dima
😄
Dima
lol this is terrible
Dima
I mean the whole stl
klimi
std::transform
klimi
What is transform? I don't have this function.
Defined in header <algorithm>
klimi
i just know how to google
klimi
https://stackoverflow.com/questions/7048888/stdvectorstdstring-to-char-array
Ludovic 'Archivist'
im not good boy sadly
and you know where to find std::transform
klimi
doc
klimi
https://en.cppreference.com/w/cpp/algorithm/transform
Ludovic 'Archivist'
klimi
if i dontk now what header it is what else can i use XD
Ludovic 'Archivist'
klimi
ye
klimi
but im no dev
Dima
but im no dev
> admin badge
Dima
¯\_(ツ)_/¯
Dima
klimi
> admin badge
idk what this mean
klimi
is it like
klimi
no dev is greater than admin badge?
klimi
or is it that meme form
Dima
klimi
ye
klimi
klimi is admin here
klimi
i don't get it :C