Ya deway
The crafted dont work as well
Ya deway
Yes, i have done the checksum and ip full length
Ziky
but you don't have connection i guess
Ya deway
Send a crafted packet but i have this problem. I have a RAW buffer
emiteclap
i have a question but is bool keyword a enum?
Danya🔥
i have a question but is bool keyword a enum?
You could've just googled https://en.cppreference.com/w/cpp/language/types
Anonymous
i have a question but is bool keyword a enum?
In C, bool is not a keyword. It is a macro that expands to _Bool which again is a built in type. In C++ bool is a built in type.
Tokin
Sounds like the most impossible task ever after learning css
I meant it was 'the project' to teach you a lot!
Ziky
I meant it was 'the project' to teach you a lot!
I would rather start with a function adding two numbers called from C (then c++) in i386 and then x86 assembler...
Hitesh
Has anyone used LightGBM library in C++?
𝔖𝔞𝔯𝔬
Ludovic 'Archivist'
Ludovic 'Archivist'
Look at the OSDev wiki and start from there
𝔖𝔞𝔯𝔬
𝔖𝔞𝔯𝔬
Why I should
klimi
Why I should
there is no need for you to build a kernel :)
fan
Hey guys. I use boost::fibers in my code. But seems it block in ```boost::fibers::use_scheduling_algorithm<boost::fibers::algo::work_stealing>( std::thread::hardware_concurrency());```. Anyone know how to fix it?
Shuvo
Write a program that will print the following figure using suitable charactes
Shuvo
a diagram but can't share that photo is there anyone who can help me by solving c language
Ziky
Write a program that will print the following figure using suitable charactes
Well could you at least count length of string using for cycle?
Danya🔥
check your inbox
@FoxVK are you ok with that?
Shuvo
just want to know the algorithm.
Shuvo
Is there anyone who can be my mentor?
Ziky
@FoxVK are you ok with that?
Don't know why am I doing it to myself but yes...
N
If someone like competitive programming which computer science domain may be best for him??
Chat Boss
Лазиз Каримов sent a code, it has been re-uploaded as a file
Ziky
Лазиз Каримов sent a code, it has been re-uploaded as a file
Лазиз Каримовyes yes you are allowed to pass to the function what ever you want BTW are you sure each 256B of your file will start with "v " or "t " ?
ছাগল শীতল প্রাণী
piska
\Device\NUL
Any ideas for c langauge project?
Create an OOM killer for windows
Chat Boss
Александр Магнус sent a huge message, it has been re-uploaded as a file Hello I am writing a multithreaded application with Linux C++ API. In my threads I have to execu..
LowKeY😎
please why does my code does not allow me to input the next line of codes then executes everything. (c++)
N
Computer science.
No I'm asking seriously like i like cp but I'm thinking of going into machine learning domain both are very different once uses very less amount of code and one is you know so is kt good to join machine learning
LowKeY😎
AlanCcE
Alright bro. Thanks
Hello, everyone, i'm having some troubles with gdb I'm trying to run gdb in a really simple C code that just prints a name passed as an argument to the program, just like: ./main <name> I'm running gdb using these commands: gdb -q main > Reading symbols from main... disas main >Dump of assembler code for function main: > 0x0000000000001169 <+0>: endbr64 > 0x000000000000116d <+4>: push rbp > 0x000000000000116e <+5>: mov rbp,rsp . . . b *0x1169 > Breakpoint 1 at 0x1169: file main.c, line 4. run >Warning: >Cannot insert breakpoint 1. >Cannot access memory at address 0x1169 And when i try to run i get this error message, anyone knows how to solve this? I was using the gdb earlier and suddenly it start to have this problem
𝕱𝖗𝖔𝖟𝖊𝖓
How to control the speed of output screen ?
Anonymous
Александр Магнус sent a huge message, it has been re-uploaded as a file Hello I am writing a multithreaded application with Linux C++ API. In my threads I have to execu..
@Александр Магнус Think about what happens when you call fork from a process with multiple threads. Depending on which thread calls fork, only that thread alone will exist in the duplicated process. Even though the entire memory is duplicated, only the thread which called fork is duplicated in the child process. This may lead to unexpected behavior because your thread might then have to be written in a way such that it can continue running meaningfully irrespective of whether the other threads run or not. Most of the times, threads are written in a manner where they co-operate rather than working independently (embarrassingly parallel and also independent, the use cases for which occur very few times in real life). In such cases, calling fork from individual threads will be problematic. Instead of using fork, why don't you just work with threads?
Chat Boss
mito sent a code, it has been re-uploaded as a file
mito
mito sent a code, it has been re-uploaded as a file
#cpp I was solving a problem on LeetCode, Link : here I got "Time limit exceeded". I think my solution is O(n*logn) Any ways to improve it ?
Anonymous
#cpp I was solving a problem on LeetCode, Link : here I got "Time limit exceeded". I think my solution is O(n*logn) Any ways to improve it ?
Your complexity is not O(n lg n) but it is O(m*n). Since m and n can be 10^5, your algo may exhibit TLE. A simple improvisation over your algorithm is to use Binary search on your potions vector instead of having to sequentially scan potions vector for each entry in spells. This would reduce your complexity to O(m lg m + n lg m).
Anonymous
Ilya
???
Complexity will be O(nlog m) but not O(m lg m + n lg m)
Danya🔥
Complexity will be O(nlog m) but not O(m lg m + n lg m)
No You don't count the std::sort algorithm
Ilya
No You don't count the std::sort algorithm
Didn't see it, thought it's already sorted, then Madhu is right
Chat Boss
ilyas Yilmaz sent a code, it has been re-uploaded as a file
ilyas
Hello , I wanto to conver this code snippet to c#
ilyas
how can I convert
klimi
how can I convert
you translate the code manually
ilyas
Yes But I dont konw c++
ilyas
whole function is like that
Danya🔥
Hello , I wanto to conver this code snippet to c#
First of all, it's not valid C++ Second of all, this is offtop Third, use ChatGPT
klimi
Yes But I dont konw c++
then you won't be able to do this; also this is offtopic here
Sorin
can you recommend me books about c++?
Sorin
Read the rules
sorry I didn't notice
Chat Boss
Leovan sent a huge message, it has been re-uploaded as a file Why memory leak here after operator<< call? Without operator<< everything is okey: #include <cst..
Saeed
What is the difference between intermediate file and translation unit?
Ziky
What is the difference between intermediate file and translation unit?
I you want to understand it this looks promising https://csgeekshub.com/c-programming/c-program-compilation-steps-example-with-gcc-linux/ https://csgeekshub.com/wp-content/uploads/2020/07/C-Program-compilation-steps-and-process.jpg
Anonymous
What is the difference between intermediate file and translation unit?
For a given source file, the process of compiling it generates many intermediate files and translation unit is one such intermediate file. The translation unit is the intermediate file that the C++ compiler starts working on and at this time the preprocessor has completed its work i.e. it is done with the first 4 phases of translation that is defined by the standard as mentioned here. Following this the C++ compiler does some additional work like concatenating adjacent string literals and lexical analysis of the preprocessing tokens. The output of this is what is considered a translation unit. Apart from translation unit, there are multiple other intermediate files that are not always written to the hard disk unless you specifically direct the compiler to do so. They are usually kept in memory. Such files include assembly code, object files etc. Sometimes additional files related to Link Time Optimization may also be considered as intermediate files.
Anonymous
Leovan sent a huge message, it has been re-uploaded as a file Why memory leak here after operator<< call? Without operator<< everything is okey: #include <cst..
How did you determine there is a memory leak? valgrind and address sanitizer don't show anything wrong with the code. I would however avoid using local variables named cout and so on but.
The
Are namespaces on windows case insensitive?
\Device\NUL
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions