Anonymous
even fundamental types too?
Anonymous
A statement A constructor is user-provided if it is user-declared and not explicitly defaulted on its first declaration. what does not not explicitly defaulted on its first declaration mean?
Artöm
=default
Anonymous
=default
User provided constructor = user-declared and it should be the default constructor.
Artöm
User provided constructor = user-declared and it should be the default constructor.
No struct S { S() = default; // forced to be implicitly-defined S(const S&); // user-provided S(int) { } // user-provided };
Artöm
Yes
Anonymous
What's the cleanest and reliable thing available in cpp for inter process communication
Anonymous
bTW, why do they use first declaration as there will always be onlye 1 declaration of any kind of constructor.
klimi
Excuse me, WHAT THE FUCK
Bojan_Krdemn
hey, how to write a char loop that iterates from alphabet_i to alphabet_i, that is from b to b from c to c.
Bojan_Krdemn
c,d,e,f,g ->c; d, e,f,g >d
Artöm
What?
Artöm
for (char c = 'c', c <= 'g'; ++c) { // ??? }
Anonymous
How to share an image between two cpp programs? I am trying to achieve interprocess communication
Anonymous
?
Anonymous
hello
Ilya
hey, how to write a char loop that iterates from alphabet_i to alphabet_i, that is from b to b from c to c.
for ( const auto &ch : {'a', 'b', 'd', 'z'} )
Artöm
This isnt template code
Anonymous
const& is redundant
Ilya
const& is redundant
but I like it like this.
Anonymous
What's the easiest way to create an api using cpp?
Anonymous
For eg in Python you create a django api and request it. Is there a similar option in cpp
Anonymous
Something like setting up a local server and requesting results from it
Ilya
For eg in Python you create a django api and request it. Is there a similar option in cpp
This is not API. API is f.e. when you call some C|C++ library from Python, the interface Python calls from C is named library API.
Anonymous
This is WEB server I suppose
Yup I wanted to achieve this
Ilya
Yup I wanted to achieve this
and? What is the quesition?
Bojan_Krdemn
consider a code spinner that changes word data to the word code (BFS algorithm). it uses two loops one for {0 to word.length()} the other for char a->z. without certain precautions there can arise a situation where changing first letter from a to z won't give us a valid english word, {aata bata cata... zata } but should the algorithm stop at letter z no english word would fit a pattern z{a-z}ta i think if first iteration over alphabet doesn't return a valid word i should return to the letter original word started, that is {d}ata and only then change the set of all words where only second letter is changed what do you think.
Bojan_Krdemn
while (true){ //if (xword==word) goto endloop; for (i=0; i<=word.length(); i++){ for (char c='a';c<='z';c++){ xword[i]=c; bool inDictionary=lex.contains(xword); if (inDictionary){ bool checkUsedWords=(usedWords.find(xword)==usedWords.end())? true:false; if (checkUsedWords){ mystack.push(xword); usedWords.insert(xword); mydict.enqueue(mystack);} if (xword==word) goto endloop; } } xword[i]=word2[i];
Anonymous
and? What is the quesition?
I wanted to try having a local webserver, running in cpp which is currently hosting my neural network model. Everytime I do a request to it, I get results from it. But I have no idea as to how to achieve this. Every cpp library I've looked at for eg, pistache, azure cpp rest. All of them have hello world examples but I have no idea how to achieve my current task
Dima
/warn Read the rules!
Anonymous
What is a simplest / cleanest way to send image data to a webserver in cpp
Dima
get all image byte data and use partioning in chunks and send it over
Anonymous
#cppbook
Anonymous
#cbook
Undecidable
what is the difference between below two function prototype: void str(char s[]); void str(char *s);
Artöm
No difference
Anonymous
what about void str(char *s[])
Anonymous
one is a character array
Anonymous
other is a pointing to the memory address of s character
Anonymous
am i right ?
14•08
am i right ?
ABSOLUTELY
Anonymous
so the function argument will point to the memory address of whatever you pass to the function
Anonymous
whats the difference between something like char *s and char **s and char* s
Artöm
Type
14•08
Same as char**
Not arg .v
Artöm
Anonymous
Not arg .v
for command line options?
Anonymous
int main(int argc, char *argv[])
14•08
for command line options?
He means passing arg to char
Anonymous
oh
14•08
oh
That why he said no difference
Anonymous
That why he said no difference
did you go to college?
14•08
did you go to college?
Dm me admin gonna ban yo
Anonymous
lol
Anonymous
isnt college c++ related if you are talking about comp sci
professor
Anyone have used winafl?
Artöm
Anonymous
???
sorry practicing my C programming now
Anonymous
lmao
Anonymous
the cheesiest pointer lesson