Chat Boss
how can ı call function wroted in cpp from c ?
Danya🔥 sent a huge message, it has been re-uploaded as a file To call a function written in C++ from C, you need to use the extern "C" linkage specification i..
aronCrow
I hate this bot
Remove it 🥲
Ludovic 'Archivist'
I hate this bot
When you see common questions like that, forward them to me, I'll make something to answer those easy and common questions, like a Don't Repeat Myself list of things
Ludovic 'Archivist'
It won't help No one reads those unfortunately
It is so that you can just send a link later instead of a message that gets devoured by the bot
Ya deway
I don't understand why if I modify the memory of a system process on Windows 10 with kernel privileges everything gets messed up and I go to bsod. The pointer in memory is correct including the replaced bytes, there shouldn't even be any problems managing the stack trace of my thread that could cause any crashes, do you have any ideas?
V
But this is still a C++ community, not a system debugging one
יורם
The Reylib installer does not run on my system and it has an error: a problem caused the program to stop working correctly. Please close the program
Siddhesh
Hi guys I want to develop some c and c++ programs for pratice which programs should I do?
Aryan
Does someone know how to call CPP from python code actually I have seen some videos on ctype and boost but they didn't work.
Aryan
.
Create a shop in which you will first ask username then how many products you want to add in shop following by product name and ID the at end of the program you will ask user to want to find product by Id or name then give him/her result.
Guddu
String define
Rose
User K has 1/2 warnings; be careful! Reason: ad/ot
Aryan
Ludovic 'Archivist'
The Reylib installer does not run on my system and it has an error: a problem caused the program to stop working correctly. Please close the program
Did you check the instructions at https://www.raylib.com/ ? Also, it is Raylib. It is easy to build as you just have a half dozen C files and also a couple of headers. Check the dependency list (no deps on windows)
Vladimir
Hi there, is there any analog of fwrite_unlocked for macbook clang?
Soprat//Котик
Hello, I have a code like: int choose_level() { int level; printf("choose level of harness (1-5), 6 to get info about levels\n"); scanf("%d", &level); printf("level: %d\n", level); return level<6?level:level_info(); } int level_info() { printf("levels: ...\n"); choose_level(); } And here is implicit declaration error in choose_level function. May I fix it in any way, or can I leave it in this way?
klimi
You'll have to write the function signature above it so it knows what level_info is
klimi
Okay, how should I do it?
Write the level_info signature above the choose level deaeration
Eric Czeladka 🇫🇷
Search and read about prototype of function in C
Prakash
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
pasta
#gitgud
Rose
#gitgud
Becoming a pro in C++ requires practice, dedication, and a willingness to learn new things. Here are some steps you can take to improve your C++ skills: Read C++ books: One of the best ways to improve your C++ skills is to read books written by experts in the field. Some recommended books include "C++ Primer" by Stanley Lippman, Josée Lajoie, and Barbara E. Moo (updated for C++11), and "Programming: Principles and Practice Using C++" by Bjarne Stroustrup (2nd Edition - May 25, 2014, updated for C++11/C++14). These books provide a comprehensive introduction to C++ that covers just about everything in the language in great detail. Practice coding: The best way to improve your C++ skills is to write code. Start by solving small problems and gradually move to more complex ones. You can practice on online platforms like LeetCode, HackerRank, and Codeforces, which provide a range of problems of varying difficulty. Try to write clean, well-structured code that follows best practices like commenting, naming conventions, and avoiding global variables. Read documentation: There are many libraries and frameworks available for C++, and reading their documentation can help you gain a deeper understanding of how they work. For example, you can read the C++ standard library documentation or the Boost C++ libraries documentation. Participate in online communities: Join online forums and communities where C++ programmers gather to share knowledge and ask for help. This will allow you to learn from others and get feedback on your code. For example, you can join the C++ community on Reddit or the C++ Slack community. Build projects: Try building some projects on your own, such as a game or a utility program. This will give you an opportunity to apply your C++ skills in a practical setting and help you learn new things. Start with a small project, and then gradually move to more complex ones. For example, you can build a text-based adventure game or a calculator app using C++. Watch C++ conferences: Attend or watch C++ conferences like CppCon, ACCU, and Meeting C++ where experts in the field share their experiences, ideas, and best practices. These conferences provide a great opportunity to learn about new features, techniques, and tools in C++, as well as network with other C++ developers. You can watch the recordings of past conferences on the conference websites or YouTube channels. Learn from your mistakes: As you write code, you will undoubtedly make mistakes. Don't be discouraged by them; instead, learn from them and try to avoid making the same mistakes in the future. Use debugging tools like gdb, valgrind, or lldb to identify and fix errors in your code. You can also seek feedback from other programmers and learn from their code reviews.
harmony5 🇺🇳 ⌤
#mcve
Rose
#mcve
When asking a question about a problem caused by your code, you will get much better answers if you provide code people can use to reproduce the problem. That code should be… …Minimal – Use as little code as possible that still produces the same problem …Complete – Provide all parts needed to reproduce the problem in the question itself …Verifiable – Test the code you're about to provide to make sure it reproduces the problem Taken from https://stackoverflow.com/help/mcve
Soprat//Котик
yep, I found answer, thx a lot for an answer!
Rose
That's 2/2 warnings; Low Price Paid Course is banned! Reasons: 1: java, ad, spam
Ricardo
#res
Rose
#res
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Rajo
any tech guy can show me a good place to discuss parallelism?like openmp or tbb lib
..............
i need some help in arduino code for callback function can someone please help
Rose
i need some help in arduino code for callback function can someone please help
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
..............
ok i have a problem in my arduino callback function where the mqtt broker connection is successful and mqtt are subscribed and i passed two values to each topic then i checked the mqtt and value is there but the arduino mqtt callback function doesn't get called or provide results
we
does anyone know how to write a concept that makes the class template contain specified data members
Mohamed
i need a mid level OOP Project to improve my skills. any ideas?
Rajo
is there any good approaches to schedule threaded mkl using tbb?
Rajo
i know the default option is to use openmp
Pointers
i need a mid level OOP Project to improve my skills. any ideas?
C/c++ win32 sdk GUI application Copying file from windows directory to unix directory Using dynamic meomary allocation.
Rose
That's 2/2 warnings; Teja is banned! Reasons: 1: spam 2: spam
onz
anyone can backdooring signed binaries ??
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
Rose
anyone can backdooring signed binaries ??
User onz has 1/2 warnings; be careful! Reason: hacker
Danya🔥
Or ban?🧐
Dima
unless he’s trying to reverse engineer or try to understand the abi, then no complains
Dima
onz
hacker ??? what
onz
ım blueteamer
GOPA
hi i am trying to devlop anote taking app that can display text and multimedia inside the sheet/note is it possible in qt
GOPA
any suggestions ?
GOPA
thanks but can you point to something specific
mito
thanks but can you point to something specific
https://github.com/nuttyartist/notes This is written in qt6, you can take inspiration from this.
Ahmed
What is the most useful programming language to excel in ML? I have a very strong background in C and cpp.
Ольга
https://onlinegdb.com/OCLzRZxoS Hello everyone! I encountered a certain problem in solving tasks on regular expressions. I understood how to use the regex library, but I need it without using it. And I don't quite understand how to do it. I hope for your help. Here is the request and also the code where I use regex, maybe it will help to understand better. I will be grateful for any help! The metacharacter is {number}. The content of a metacharacter is a chain of identical characters of a given length (number) must be present in the word in the desired position. (examples 10, 12). Create a new text by replacing the chains of the searched characters with one of the same characters in the found words.
mito
What is the most useful programming language to excel in ML? I have a very strong background in C and cpp.
I think probably cpp or python for now. Things may change in the future..
msc
Hey guys! I have an electric buzzer sound file with wav format. This wav file is 6 second containing multiple beeps in it and I want to extract count of beeps plus time of their occurrence. How can I do that?
C
I want to have multiple c++ source files inside a project/directory in codeblocks and i want to compile and run them independently like i do in VSC. But if i have same function name (main) in 2 source files then it's not compiling... how do i use codeblocks like VSC and run source files independently.
Danya🔥
Just use cmake and visual studio code
Danya🔥
Codeblocks is shit