Rajeev
Does we have to learn code of various algorithms in cpp?
Dima
you have to learn some English first
Dima
Rajeev
And what about data structure?
MᏫᎻᎯᎷᎷᎬᎠ
The catch statement can capture exceptions coming from the try statement in the initialization list, not from the constructor body
Rajeev
Actually i have learned the basics of cpp language but don't know what to do further as DS and algo seems very difficult to me. can you suggest something
Rajeev
Thanks
MᏫᎻᎯᎷᎷᎬᎠ
Weird Tbh It's the first time I knew try statement can be in the initialization list
MᏫᎻᎯᎷᎷᎬᎠ
I had to google that syntax by myself
MᏫᎻᎯᎷᎷᎬᎠ
Yeah Obviously since it's rarely to throw an exception in a constructor
Dima
practice and motivation lol
Dima
I am employeed as a software engineer but I’d like to keep my company name as a secret
Anmol
first of all, never take courses
why u suggesting not to take course ?
Dima
worthless
Anmol
worthless
well can explain how it is worthless
Anmol
well can explain how it is worthless
im not offensive just curious
Dima
well can explain how it is worthless
they just will show you how to do X without explaining how it works, so on
Dima
and take your money
Dima
well cs50x one is good
Dima
I am talking about pluralsight and other weird names
Anmol
they just will show you how to do X without explaining how it works, so on
ok. i was asking coz i learn c/c++ in collage so i never had chance to take a course on it
Dima
just practice yourself
Dima
will help much better
Dima
why you associate education with companies lol
Anmol
will help much better
yaa i learn more by practice then collage professors taught me
MᏫᎻᎯᎷᎷᎬᎠ
Okay Let's think of it in a different way You throw an exception in the middle process of an object construction If that catch is the last throwable place to that exception, you'll get freak object, since it wasn't contructed So that object had to re-throw the exception to the caller to handle it, but no caller found That's why it's an uncaught exception Right?
Dima
you can have the highest phd but work at factory
Dima
that all depends on you
Dima
no
MᏫᎻᎯᎷᎷᎬᎠ
no
XD
Dima
you better to separate university and practice
MᏫᎻᎯᎷᎷᎬᎠ
I wish I had a company that works with C++ here They all does java, js, c#...etc
MᏫᎻᎯᎷᎷᎬᎠ
I look like a stupid in front of my colleagues since I prefer a language that is not to the market needs
MᏫᎻᎯᎷᎷᎬᎠ
Yaaaaaa The reward xD
devil
Why cin.ingore() is used??
Sasuke
I learnt basics of C by Stephan prata's book. Which book should I now read to learn more in C?
devil
Which is basic book for c++ for beginners?
Sasuke
Suggest for intermediate C too plz
Dima
Lmao
Dima
People can’t google
Alion🦁
People can’t google
let's send your famous link 😉)))
Pritam
Any one done cdac..... ?? Someone please tell me about that process of exam cutoff nd then course
Alion🦁
🙄not me 😂
Anonymous
Well Because when we catch an exception basically outside of constructor that means that the object wasn't constructed so we need to know that to do some cleanup, for example ?
Álvaro
Hi! Has somebody injected into a process? I need to send a command along a process that uses Chrome Embedded Framework (from C#). I used interop/user32 pinvoke calls moving the cursor and clicking into the textbox but I prefer to avoid this. Can anybody help me? :P
Michele
Is it a real question or what?
Dima
#ot
Justin
Oh wow that was a total accident, sorry
Anonymous
Where is level of abstraction is high A program written using oops Or on other hand program written without using oops
Anonymous
?
Tushar Goel
Tushar Goel
Tushar Goel
Is there any error
Tushar Goel
I am unable to talke input from the user
Anonymous
/warn screen photo
Tushar Goel
#include <stdio.h> int main() { int n,m; scanf("%d",&m); int i,a[10000000]; for(i=0;i<n;i++) { scanf("%d ",&a[i]); } int c; c=candles(n,a); printf("%d",c); } int candles(int n,int b[]) { int i,j,t; for(i=0;i<n-1;i++) { for(j=0;j<n-1-i;j++) { if(b[j+1]<b[j]) { t=b[j]; b[j]=b[j+1]; b[j+1]=t; } } } int e,f=0; e=b[n-1]; for(i=0;i<n-1;i++) { if(b[i]==e) { f++; } } return f; }
Tushar Goel
Is there any error?
Tushar Goel
I am unable to take input from the user
Anonymous
And you read m and your condition i < n?!
Tushar Goel
Don't use & operator while taking input in an array
Still not working. It doesn't matter though
Tushar Goel
Anonymous
Of Course I couldn't see the error?!
Anonymous
Try to use ideone.com
Tushar Goel
#include <stdio.h> int main() { int n,m; scanf("%d",&n); int i,a[10000000]; for(i=0;i<n;i++) { scanf("%d ",a[i]); } int c; c=candles(n,a); printf("%d",c); } int candles(int n,int b[]) { int i,j,t; for(i=0;i<n-1;i++) { for(j=0;j<n-1-i;j++) { if(b[j+1]<b[j]) { t=b[j]; b[j]=b[j+1]; b[j+1]=t; } } } int e,f=0; e=b[n-1]; for(i=0;i<n-1;i++) { if(b[i]==e) { f++; } } return f; }
Tushar Goel
Tushar Goel
but the problem is my program is not able to take input from the user
Anonymous
I used it
Tell me what is statement for error
Tushar Goel
Tushar Goel
Can i send you a picture
Anonymous
OK
Tushar Goel
Tell me what is statement for error
The admin will not allow
Tushar Goel
I mean it is against the rules
Огни
what language you can offer me? (after Python)