Anonymous
Anonymous
Are anyone free here to help me in a cpp code
m
what is this error?»"exception has been thrown by the target of an invocation"
+
hahaha Just guessed
in the end I find out lzo dll don't export lzo1c function correctly -_- sadly lzo code is a mess 😐 and I cant understand anything from it
Charu
Hi
klimi
Hi
nohello.com
Anshul
i want to keep the 3 biggest sum i encounter in a vector! can anyone tell me why this is not correct all the time
Engineer
Brain exercise In a C++ build system What is the difference between CMake and make? #brainexercise #buildsystem
Anshul
int max1=0,max2=0,max3=0;
Anshul
int temp2=max1; max1=max(curr_sum,max1); if(max1!=temp2) { max3=max2; max2=temp2; } else if(max2<curr_sum) { max3=max2; max2=max(curr_sum,max2); } else if(max3<curr_sum) { max3=max(curr_sum,max3); }
Anshul
in curr_sum i am keeping the current sum
Anshul
and if someone have a better approach to it please explain me too
Anshul
Case could be used but it is good for 12+ values, else if is good.
Can you share the code? Then I'll be able to understand it better
Talula
Can you share the code? Then I'll be able to understand it better
It is already pretty good, you can't improve more than this...
Engineer
Can you share the code? Then I'll be able to understand it better
https://en.cppreference.com/w/cpp/language/switch
Anshul
Engineer
ooo ic
Do have a list of interview questions? I am trying to learn
klimi
Suka
Do have a list of interview questions? I am trying to learn
nope. try leetcode or geekforgeek they have it. afaik
Engineer
i think there are few books about that
It is not the same - interviews seem to be not using them any more
Engineer
i wonder why...
Exactly 😂
Arrithnius
Hi, Good day. Is there any way that I could use to let a user enter a char(symbols; *&#%@€) and an integer at the same time?? Like for example, *111# or *188#, then hit enter to continue, else terminate.
Engineer
ANYONE??
Did you covert it to a switch case statement?
[UI/UX-7] - Mhd Afifan Aly Rahman
excuse me, anyone have a reference about CRUDS in c ++?
Engineer
No! I couldn't
Do you know how to?
Anshul
No
Engineer
🤦‍♀
Anshul
🤦‍♀
Can you tell??? Please
Engineer
Can you tell??? Please
http://www.cplusplus.com/forum/general/110104/
Arrithnius
What have your written so far?
I wrote a long chain code, So I am trying to change the first 10 lines which all other lines depends on. At first I wrote : int num; cin >> num; if (num!=111) { //terminates the program } else { //program contunues } SO I WANT TO CHANGE THE CONDITION TO SOMETHING LIKE : if(num != *111#) I want a user to enter *111# not only 111.
Anshul
http://www.cplusplus.com/forum/general/110104/
I know switch case stmt but I just don't know how to convert my question to switch case
Anshul
Actually the question is from leet code and there's no solution given to that. There's a grid given (2-D). And in that grid I need to find the 3 biggest rhombus sum.
Anshul
You cannot... leave it what you have done is perfect.
Okay! Can you explain me about the question ..??
Engineer
You will need to be able to read in the strings then process them such that your code accepts the valid ones and rejects the invalid inputs.
Best thing is to create a function that does one action on the input strings. So you can have multiple actions executed in your code.
Engineer
Is this the one?
Jason
Hello here please l face difficulties in creating the implementation of a code to play cards
Jason
IN C++
Anshul
What is Rhombus sum?
https://leetcode.com/problems/get-biggest-three-rhombus-sums-in-a-grid/
Anshul
If I share my code for this problem then is anyone interested to help me find out why it's (my code) not passing all test cases
Pavel
Hmmm, if I have CRTP variadic template like this template<typename... Filters> class CompoundFilter : public Filters... { }; And my Filters are templates that have same functions like template<typename... Components> class MyFilter { public: std::tuple<Components*...> getComponents() const { ... } }; Can I somehow make it in a way so I can choose function of which class I call based on template arguments? Like this CompoundFilter<MyFilter<Foo, Bar>, MyFilter<Bar>> filter; auto [foo, bar] = filter.getComponents<Foo, Bar>(); auto [bar2] = filter.getComponents<Bar>();
Pavel
Well, or at least somehow specify what class I want to call this function on, right now if I call filter.getComponents() it's just ambiguous reference (which makes sense)
Divya
Hello
Divya
Are programming language tutorial available here?
Anonymous
@admin rose not muting people
Divya
No :)
Ok thank you :)
Φ ☭
Ok thank you :)
You can find tutorials on YouTube :)
Anonymous
?
they typed messages without pressing "I've read the rules and I agree with them"
Roxifλsz 🇱🇹
klimi
what do you mean?
Anonymous
what do you mean?
oh. i saw the message and rose's message about reading rules and pressing button did not change so i thought something was broken.
klimi
¯\_(ツ)_/¯
Pavel
Rose is lagging?
Anonymous
weird, i think the button used to get edited out before
Anonymous
Are programming language tutorial available here?
anyway, actually read the rules instead of just pressing the button. there are commands for books and stuff
Engineer
Anyone have examples of greedy algorithms in C++?