Anonymous
There are bugs
Artöm
True
Anonymous
I've even seen some of them
Anonymous
And I'm not a professional user
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Yes it does
It doesn't
Sher
Visual C++ compiler is better for Windows only but not for Linux though
Anonymous
Hello Can someone explain me why we use "using namespace std"?
to bring names from the std namespace to the global namespace
MᏫᎻᎯᎷᎷᎬᎠ
Hello Can someone explain me why we use "using namespace std"?
To write cout instead of std::cout std is called a namespace You can make your own namespace MyNamespace{ void Myfunc(){} } in main: you can call Myfunc like this MyNamespace::MyFunc(); Or bring it the namespace to the current scope using namespace MyNamespace; then call MyFunc () with or without MyNamespace Hope you got it
Kanahaiya
Can anyone suggest me which language should I learn after completing C++?
MᏫᎻᎯᎷᎷᎬᎠ
to bring names from the std namespace to the global namespace
Actually To be accurate it brings it to the current non-class scope
Kanahaiya
Lunatic*
Artöm
Python may be good as backup language
MᏫᎻᎯᎷᎷᎬᎠ
Can anyone suggest me which language should I learn after completing C++?
Well After you get old you might wanna get Java/Kotlin if you wanna turned to Android What is your interest?
Anonymous
that's a joke
MᏫᎻᎯᎷᎷᎬᎠ
Can anyone suggest me which language should I learn after completing C++?
No one could complete the entire C++ There is always something more to learn There is always someone who knows better than you do So you just have to specify your stop
MᏫᎻᎯᎷᎷᎬᎠ
I wanna make career in app development sector
Android Then You have Java/Kotlin/Dart And use C++ in NDK to make your app goes faster in performance critical situations
MᏫᎻᎯᎷᎷᎬᎠ
I involved C++ in the answer so to not get kicked out of the group because it's soo OT
Kanahaiya
It's because I have just started to learn coding for making a career in it and don't have that much of knowledge and all about it
MᏫᎻᎯᎷᎷᎬᎠ
I probably know why C++ gets you a high boost and knowledge in programming language in general
Kanahaiya
Just watching YouTube and moving ahead in hope of success 😊
MᏫᎻᎯᎷᎷᎬᎠ
Just watching YouTube and moving ahead in hope of success 😊
Don't watch videos a lot Books are also important
Anonymous
Just watching YouTube and moving ahead in hope of success 😊
Just go with c++ and its good for competitive programming too
Kanahaiya
Don't watch videos a lot Books are also important
I use to watch videos for reference only
MᏫᎻᎯᎷᎷᎬᎠ
I hope I can one day have the patient to a complete a single book correctly
Kanahaiya
Lunatic may I know from where are you ?
MᏫᎻᎯᎷᎷᎬᎠ
Let's just say he has a free time Everyone schedule his goal
MᏫᎻᎯᎷᎷᎬᎠ
Kanahaiya
Let's just say #ot
#ot What's that?
Anonymous
Android Then You have Java/Kotlin/Dart And use C++ in NDK to make your app goes faster in performance critical situations
or move to Rust 🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️
Artöm
#ot What's that?
Offtopic, go to linked chat
MᏫᎻᎯᎷᎷᎬᎠ
Rose seems so indocile to me
Anonymous
Any frontend developer????
MᏫᎻᎯᎷᎷᎬᎠ
or move to Rust 🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️🏃‍♂️
Rust is good But the fear of not getting popular or being thrown into a junk is PROBABLY yeah
MᏫᎻᎯᎷᎷᎬᎠ
I feel the language targets to just be a better C++ instead of real life language
Anonymous
UwU
MᏫᎻᎯᎷᎷᎬᎠ
And java still exist by the way
Anonymous
Rust is good But the fear of not getting popular or being thrown into a junk is PROBABLY yeah
i mean even if it does, the concepts it introduced will probably stick.
MᏫᎻᎯᎷᎷᎬᎠ
I remember everyone was saying Kotlin will replace Java And here we are
MᏫᎻᎯᎷᎷᎬᎠ
i mean even if it does, the concepts it introduced will probably stick.
C++ is an old grandmother who likes to steal a lot of concepts and make them better, more customizable, in worst case make them complex
Anonymous
is there anything special about Kotlin? or does it exist just because Google had a lawsuit with Oracle about Java?
MᏫᎻᎯᎷᎷᎬᎠ
I had an article of how we have a similar issues like media in programming world The big dogs control the markets
MᏫᎻᎯᎷᎷᎬᎠ
"Oh check this A language which as fast as C++ but only much safer"
MᏫᎻᎯᎷᎷᎬᎠ
Muamall
does any one know how to solve this in c++?
MᏫᎻᎯᎷᎷᎬᎠ
From ISOCPP FAQ in comparison questions
MᏫᎻᎯᎷᎷᎬᎠ
Now that is INTERESTING
Anonymous
#include<stdio.h> int main(){ int m, n,s, j, i,z,k,p,a,r; printf("enter the n "); scanf("%d",&n); for(i=i;i<n;i++){ while (i>0){ m=i/10; s=i%10; if((m-s==1) || (s-m==1)){ printf("(%d%d)",m,s); } else if (i<=10){ printf("(%d)" ,i); } break; } } for(k=100;k< n;k++) { z=k/100; r=k% 100; p=r/10; a=k%10; if ((z-p== 1) || (p-z== 1)){ if ((p-a == 1) || (a-p== 1)){ printf("(%d%d%d)",z,p,a );
Anonymous
does any one know how to solve this in c++?
#include <iostream> #include <list> #include <algorithm> #include <iterator> #include <cmath> typedef unsigned long long ull; using namespace std; int main() { list<ull> alist={1,2}; ull n; cin>>n; list<ull>::iterator second=++alist.begin(); for(ull i=3;i<n;i++) { list<ull>::iterator upbound=find_if(second,alist.end(),bind2nd(greater<ull>(),sqrt(i))); list<ull>::iterator item=find_if_not(second,upbound, bind1st(modulus<ull>(),i)); if(item == upbound) alist.push_back(i); } if(n==2) copy(alist.begin(),second,ostream_iterator<ull>(cout," ")); if(n>2) copy(alist.begin(),alist.end(),ostream_iterator<ull>(cout," ")); return 0; }
Anonymous
Anonymous
why?
Anonymous
find prime number
Anonymous
I'm just the guy answer his questions
Muamall
ohh my God
Anonymous
Ohk, will use bind next time
Anonymous
Yeah, I found it while i coding, but just lazy to improve
Anonymous
I probably should use a temporary iterator to save the result of find_if in line 17, and use it as the first argument of next find_if of that line.
Anonymous
Thanks for the advice though
Anonymous
Ok, i'm practicing this time, never use stl before
Kanahaiya
Hello I think some msg are missing
Dima
lol people can’t read
Kanahaiya
It's written "purge complete" and I don't know what is that😅
Kanahaiya
Oo I searched about it on Google and it means to purify in hindi That is "शुद्ध करना".
Dima
bruh.
Dima
looks like a bridge in trees around
Anonymous
Lol
RRR
Logic for to print palindrome numbers from lower range to upper range where the digit contains 2 will not be printed