NazTfgh
Hi guys I have a problem connecting my db to my mfc project. Can someone help?
klimi
you mean you want c/c++ prettier ? you can use clang-format for that for example
Anonymous
thanks
klimi
klimi
thanks
you didn't have to delete your message tho. now it looks bad out of context
Yulia
Anyone familiar with unlimited web traffic
Yulia
Sorry🤷🏻‍♀️
Ludovic 'Archivist'
Ludovic 'Archivist'
My advice is to build LLVM 13 and then whatever version you need from it
klimi
Anyone familiar with unlimited web traffic
that's quite not on the topic of this group, you can use the offtopic group for that :)
klimi
only c/c++ questions/answers and discussion about those is permitted as stated by the rules
Anonymous
well smalltalk isnt C++ and the OO paradigm is very different
Anonymous
Best way to understand a linked list
klimi
Best way to understand a linked list
? what is the best way to understand a linked list?
Anonymous
Yeah
klimi
Yeah
you are not making any sense
Anonymous
Im asking like how to remember the deep concepts of linked list
klimi
Im asking like how to remember the deep concepts of linked list
oh, you are asking? that message did not look like a question at all :D for linked list you can think of it as a snake in the snake game or like some games where you need to complete one level that will tell you where to go next
Anonymous
Right now i was sloving ith linked list and ll linked list
Anonymous
Fro some approaches
Ziky
Im asking like how to remember the deep concepts of linked list
draw it before programming. Create a notation where is clear where is pointer stored and where is pointing
Chat Boss
𝐇𝐢𝐬𝐬𝐚𝐡 | حصہ sent a code, it has been re-uploaded as a file
𝐇𝐢𝐬𝐬𝐚𝐡 | حصہ
𝐇𝐢𝐬𝐬𝐚𝐡 | حصہ sent a code, it has been re-uploaded as a file
Can Someone Explain the the recursion part In the function ?
𝐇𝐢𝐬𝐬𝐚𝐡 | حصہ
Thank u so much
Chat Boss
𝐴𝑀𝐸𝐸𝑁 𝑁𝑂𝑀𝐴𝑁𖤍 sent a code, it has been re-uploaded as a file
Chat Boss
𝐴𝑀𝐸𝐸𝑁 𝑁𝑂𝑀𝐴𝑁𖤍 sent a code, it has been re-uploaded as a file
𝐴𝑀𝐸𝐸𝑁
Is my work correct in creating a calculator ?!
Danya🔥
There is no slaves to read your code and test it
𝐴𝑀𝐸𝐸𝑁
There is no slaves to read your code and test it
Ok , Can you tell me how to do it ?
Anonymous
My advice is to build LLVM 13 and then whatever version you need from it
No we were talking about the version required to build LLVM. LLVM 15 can be built with C++14 compiler while LLVM 16 has migrated it's toolchain to C++17
Ludovic 'Archivist'
No we were talking about the version required to build LLVM. LLVM 15 can be built with C++14 compiler while LLVM 16 has migrated it's toolchain to C++17
Which is why, I recommend to use LLVM 13 to bootstrap any version as it supports C++20 and requires only C++11
Anonymous
Which is why, I recommend to use LLVM 13 to bootstrap any version as it supports C++20 and requires only C++11
Are you sure? LLVM migrated to C++14 with LLVM 9 in 2019. LLVM 13 was released in 2021
Anonymous
Which is why, I recommend to use LLVM 13 to bootstrap any version as it supports C++20 and requires only C++11
Just confirmed it. https://github.com/llvm/llvm-project/blob/release/13.x/clang/CMakeLists.txt The standard support is set to C++14
Ludovic 'Archivist'
I still would recommend LLVM 13 as it is the first release to support C++20 tho. It is a pretty low bar to compile to have a compiler from 2016 as a base for a more futureproof bootstrap base
Abdullah
How can one enhance his logic building ability for programming❓
Artur
Practise, practise and once more practise
Artur
Also read good source of information and watch conference talks and practise
Ziky
How can one enhance his logic building ability for programming❓
But onlinejudge may interest you https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=92 tehre are thousands of problems. Your task is to read textual input and produce textual output according description. Site will check your program.
Назар
Could you help me with one problem? "We have given two integer 'l' and 'r'. We have to find the biggest integer 'n' such there integer 'a' for a which 'l' <= 'a^n' <= 'r'."
KBS
Could you help me with one problem? "We have given two integer 'l' and 'r'. We have to find the biggest integer 'n' such there integer 'a' for a which 'l' <= 'a^n' <= 'r'."
Finding largest integer 'n'  Could you help me with one problem? "We have given two integer 'l' and 'r'. We have to find the biggest integer 'n' such there integer 'a' for a which 'l' <= 'a^n' <= 'r'." Yes, I can help you with that problem. To find the biggest integer 'n' such that there exists an integer 'a' such that 'l' ≤ 'a^n' ≤ 'r', we can use binary search on the values of 'n' and check for each value of 'n' whether there exists an 'a' such that 'l' ≤ 'a^n' ≤ 'r'. Let's define a function 'check(n, l, r)' that takes as input a value of 'n' and the given values of 'l' and 'r', and returns True if there exists an integer 'a' such that 'l' ≤ 'a^n' ≤ 'r', and False otherwise. The implementation of 'check(n, l, r)' can be as follows: def check(n, l, r): for a in range(2, r+1): if pow(a, n) > r: break if l <= pow(a, n) <= r: return True return False
KBS
KBS sent a code, it has been re-uploaded as a file
This implementation uses a brute-force approach to find the largest possible value of n that satisfies the given condition. The loop iterates from n=2 to n=32 (we can assume that n won't be larger than 32 because 2^32 is already a very large number), and for each n, it tries to find the largest integer a such that l <= a^n <= r. To find a, we use the pow() function from the math.h library to calculate a = l^(1/n). However, pow() returns a floating-point value, so we need to convert it to an integer by casting it to int. Also, we need to check if a^n is less than l, in which case we increase a by 1 to make sure that a^n is greater than or equal to l. Finally, if a^n is less than or equal to r, we update the value of max_n to n, since we've found a valid value of n. After the loop finishes, we print the value of max_n as the answer. Note that this implementation assumes that both l and r are positive integers. If you need to handle negative or non-integer inputs, you'll need to modify the code accordingly.
Chat Boss
Ибраги́м M sent a code, it has been re-uploaded as a file
Anonymous
Ибраги́м M sent a code, it has been re-uploaded as a file
Every closure is a different type even if they have the exact same body, captures and parameters
Wilie
Hi everyone I'm a beginner of c /c++ could anyone help me learn more.
Chat Boss
010001010111001001100100011001010110111000001010 sent a code, it has been re-uploaded as a file
Arch
010001010111001001100100011001010110111000001010 sent a code, it has been re-uploaded as a file
guys if i were to input in some number of array element amount (let's say 3), i will then have to input three elements. but the problem says as if i have to input 5 elements. what is the solution?
Arch
Can you explain with an example?
i have inputed, let's say, firstly 3. then program asks me to input any 3 numbers, i go with 6 3 9. then the program gonna filter out 6 as even and 3 and 9 as odd
Arch
Kartik
Now what is the problem?
Ehsan
Why
Dark
Ooof
klimi
Why
read rules
IDCAN
Guys what header need to import to get SHM_ANON (Linux)
IDCAN
I use POSIX Standard: 6.5 File Control Operations <fcntl.h>
Ziky
Guys what header need to import to get SHM_ANON (Linux)
The freebsd one I guess? https://manpages.ubuntu.com/manpages/trusty/man2/shm_open.2freebsd.html
IDCAN
Does someone knows how to change in Visual Studio Code CMake cache directory. By default it's use "build" dir, but I'd like to change it to another one?
Adeyemo
Please I need a mentor or study partner in C
Adeyemo
I'm really having trouble understanding some complex part I need someone we can share ideas together or just mentor me in a way
Mohsen
So I have coding competition in the coming week, It's about solving problems using C++ and questions will be similar to ones in CodeForces, is there any book/course/video that can help me? It's not really about "Learning" C++, it about how to solve problems and deploy algorithms into it.
Adeyemo
Could you be more specific?
@FoxVK bro, I want someone who can guide me develop confidence in programming
Adeyemo
I'm not completely absolute beginner actually I currently write JavaScript quite well but I really want to know C and C++ and develop quite in it
Adeyemo
But I've bought different online courses but at the end I still feel unconfident
Ziky
@FoxVK bro, I want someone who can guide me develop confidence in programming
Programming of what? programming of microcontrollers or programming of embedded systems with RTOS or Linux, or programming of desktop apps, or programming of big data algos. or programming of safety systems...
Adeyemo
Programming of what? programming of microcontrollers or programming of embedded systems with RTOS or Linux, or programming of desktop apps, or programming of big data algos. or programming of safety systems...
Wow! This is an overwhelming list I must say but I think I'll microcontroller and embedded systems, I feel those would be pretty deep stuffs
Adeyemo
Because I really wanna know deep stuffs
Ziky
Sir I am affraid you have only one life :D