shopify
Hello all
Chernykh
Need
Marián
quick question
Marián
const char* is a pointer to char and u can't change the value of that char on the location, but u can change the pointer itself
Marián
char * const is a pointer to char where u can't change the pointer itself, but you can change the value it's refering to
Marián
is this right?
Marián
and if so, what exactly is this?
Marián
qwert
const pointer to pointer to GLchar
qwert
or pointer to const pointer to GLchar
qwert
i assume second
Marián
so it's a pointer to const GLchar pointer
qwert
pointer to const pointer
Marián
aka pointer, to a GLchar pointer, which cannot be change
qwert
but you can change pointer to const pointer, and values under const pointer
qwert
this pointer refering to another pointer?
https://godbolt.org/z/nh4Tf-
Marián
hmm
Dima
@K11M1 bruh
klimi
Baby delete bot do do do doo
I_Interface
Baby delete bot do do do doo
What is love ? Baby don't hurt me ! Don't hurt me ! No more!
Ludovic 'Archivist'
What is love ? Baby don't hurt me ! Don't hurt me ! No more!
Reminds me of that time in a MMORPG we put a rare item on sale at very low price and as an afk message: "Never gonna give you up[...]"
Anonymous
Anonymous
kinda awesome stuff
Anonymous
this is the only love programmers know about
Dima
Ban him
Anonymous
Exception should be thrown when you have exceptional error and needs to jump over other methods in try block to error handling in catch block. Why would you want to return? What problem do you have that requires this?
i'm using boost v1.71.0 library and iterate on c:/ drive files when the directory permission denied i need to skip that directory, in the exception i catch it but when code back into try block all variable data ... gets cleaned up and starts From the first ...
klimi
Marián
anyone who uses c++ debugger in vscode combined with makefile (doesn't use c-lang in vscode to build project)
Marián
Marián
i have a makefile which creates this executable, i just want to launch a debug it via gdb, but it doesn't work for some reason
Marián
Marián
this is my tasks.json
Igor🇺🇦
i'm using boost v1.71.0 library and iterate on c:/ drive files when the directory permission denied i need to skip that directory, in the exception i catch it but when code back into try block all variable data ... gets cleaned up and starts From the first ...
Why can't you check permissions before reading /writing? If you can't do that you should wrap only the code that opens file for reading/writing with try catch block and continue with the loop. IMHO
Marián
this is my tasks.json
fixed! 1] i was missing gdb package (please, kill me...) 2] -g tag while g++ compilation
Marián
XD
ikr kill me pls
klimi
ikr kill me pls
No, you need to suffer
Marián
what if i like it
klimi
Then its alright
Arjun
Hii
András
Can, not must
It IS realized. Ofc you can rewrite it and offer in c++23, but who knows will it included or no
András
It can be even fully non-balanced tree
Artöm
Not sure about that. It couldnt perform search in logn then
Artöm
So tree should be balanced, in any possible way
バレンタインがいない柴(食用不可)
*deep breath* I hate c++ for not having an ide to auto compile like java does...
Artöm
What do you mean auto compile?
Artöm
All ides do it when you click green arrow or something
バレンタインがいない柴(食用不可)
Like compile on the fly and report errors when you do a wrong statement
バレンタインがいない柴(食用不可)
Syntax... compilation errors , etc
Artöm
Lol they do it
Artöm
Vs, creator, clion all do it
Artöm
Even eclipse
Artöm
What ide do you use?
Mat
What ide do you use?
Probably just trolling 🤷‍♂
Artöm
Even eclipse
Even vscode, which is not an ide
gallo
Dev C++ is the best
Francisco
Anonymous
Vim is the best
gallo
Doubt it
It was a bait
Francisco
Just saw "Dev C++ best" and I was triggered, wasn't even following the conversation
Caio
Pavel
yes values on stack
AFAIK, when you raise an exception and it got catched by the catch block, the stack is unwinded and the values that was created in the try block get destroyed. https://stackoverflow.com/questions/5476454/why-doesnt-catch-block-share-the-scope-of-the-try-block
Dima
Dev C++ is the best
I hope this is sarcasm
Nameful
infi ptr
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here unsigned short int t; cin>>t; while(t--){ unsigned short int n; unsigned long int p; cin>>n>>p; unsigned long int d[n]; for(unsigned short int i=0;i<n;i++) cin>>d[i]; bool flag=true; for(unsigned short int i=n-1;i>=0;i--) { if(p%d[i]!=0) {flag=false; int x=p/d[i]; d[i]=x; p-=d[i]*x; } else d[i]=0; } if(flag) cout<<"YES"; else cout<<"NO"; for(unsigned short int i=0;i<n;i++) cout<<" "<<d[i]; cout<<endl; } return 0; }
PG
https://www.simplilearn.com/skills-required-to-become-a-full-stack-developer-article