Muqiu
In addition to libponci , is there any C/C++ managing cgroups library?
Anonymous
In addition to libponci , is there any C/C++ managing cgroups library?
I seriously don't understand why you need an interface for cgroups. Any interface capable of creating files and editing files is good enough for cgroups
Muqiu
😉 I agree with your opinion
Fatih
Hello, I am a student, How can I learn c programming quickly, can you give advice?
Manav
Hello, I am a student, How can I learn c programming quickly, can you give advice?
There's no magical quick method. If you want a book recommendation, get Modern C by Jens Gustedt. It's under creative commons license (free).
Manav
Thank you 🤚
https://t.me/cpp20programming/183
Manav
Btw there's winlibs which provides standalone builds of clang, gcc and llvm. Don't always need to have msys2. https://t.me/cpp20programming/190 Also codeblocks does gets updates. Nightlies are being updated reguarly, not sure about new features 🤔.
Bright
I am c++ beginner and I want good books to learn it well
Chat Boss
Ali sent a code, it has been re-uploaded as a file
Ali
what is wrong in my code it give me "./main.cpp:28:3: error: expected unqualified-id do{"
RayF
hey guys , one question please , can someone tell me what exactly the role of the function " memcpy()" in C language
Anonymous
hey guys , one question please , can someone tell me what exactly the role of the function " memcpy()" in C language
It is used to copy bytes from one location to another in the fastest way possible. It is basically the best way to implement copying in C where all data instances are Trivially Copyable by default. It also can be used to overcome aliasing rules that often lead to Undefined Behavior when casts are employed. Memcpy allows you to interpret one type of data as an entirely different type.
Elfa Metesar
hey guys , one question please , can someone tell me what exactly the role of the function " memcpy()" in C language
it copies the value of one variable to another, especially useful working with pointers. lets say you created a heap allocated char array: char* arr = malloc(sizeof(char) * 10); now when you need to assign a value into it, you can't just do: *arr = "test"; because *arr refers to the first element's memory address which requires a char, not a whole string. you also can't do: arr = "test"; because this will override the heap allocated data's pointer. how? "test" is a const char*, and when you assign it to arr, you are effectively replacing the malloc created pointer with const char*. which causes memory leak. plus, you shouldn't be assigning const char* to a char* anyway. Instead, you have two options. 1: memcpy(arr, "test", sizeof("test" /* or just 5 */)); or 2: strcpy(arr, "test"); Both these options are valid. It is also great to use when you are copying the values of one array to another. Assume that you have an array of 25 integers and you are creating a new array of 25 integers. you want to copy the original 25 integers into the new array. The long way is to use a for loop and copy the values one by one into the new array. memcpy gives you the same result without needing to manually iterate and copy. it is a one line of code
RayF
i got it , thanks guys
Chat Boss
Rayf YF sent a huge message, it has been re-uploaded as a file in this prog # include <stdio. h> # include <string. h> int main() { char data[] = "Hell..
Maverick
Any good YouTube channel to learn computer graphics from c++
Bright
Hello please l have not gotten any text book to help improve my c++ programming
Bright
Can anyone please send me one or recommend me one to download
Emre Atakuru
Lake
Hey, so I looked through c++ courses but still cant understand these lines "int index = Item->Index; TasksList->Items->Delete(index);", is there course that will teach me the things like " Item->Index;" ?
Ludovic 'Archivist'
Hey, so I looked through c++ courses but still cant understand these lines "int index = Item->Index; TasksList->Items->Delete(index);", is there course that will teach me the things like " Item->Index;" ?
Context is very important. Item->Index probably recovers an index or location within the TaskList->Items datastructure to find what the delete line should remove
Ludovic 'Archivist'
I cannot be sure for I have not seen the context. But this much can be deduced because getting some matter of iterator to delete something is a common pattern
Bright
klimi
Can anyone please send me pdf
please read the rules and reconsider
Ludovic 'Archivist'
Can anyone please send me pdf
A free wikibook does exist, but buying something better would be a great idea
Ludovic 'Archivist'
If you can't, look things up and experiment. One of the best C++ devs I know learned C++ by using the internet to look things up, reading C examples in the OpenGL docs and making fluids mechanics simulations until they worked
Ludovic 'Archivist'
Just stay clear of auto_ptr and trigraphs and you will learn eventually
Anonymous
Hey, so I looked through c++ courses but still cant understand these lines "int index = Item->Index; TasksList->Items->Delete(index);", is there course that will teach me the things like " Item->Index;" ?
The -> operator is used to dereference a pointer and also access a member of the pointed to class. If p is a ptr to an instance of a class which has a member ins then p->ins is equivalent to (*p).ins Things become slightly more complicated for classes which overload operator->
Anonymous
Can anyone please send me pdf
Piracy is not allowed. You will be banned if you continue asking for pirated copies of books
T⁶
It's not even hard to find them, why ask here
Anonymous
Is there video course that can teach me that please?
I don't know of good video courses for C++. But any good book (especially those in the Resources section) would be able to teach you those concepts
Maverick
https://youtube.com/@TheCherno
Thank you ma'am for sharing, can you provide a pdf of any book Or notes where I can get theory and programming stuff at the same place. For this subject.
𝔖𝔞𝔯𝔬
Is there video course that can teach me that please?
The Cherno, a C++ 100 videos playlist which I think is gold for beginners
Michel
I had understood that when a variable is declared in the global scope with no initializer it is default initialized. Is that right?
k1k3
Do you know any bootcamp or online course with a certificate of completion that is worth learning C++ and making a resume and being able to apply for jobs related to C++?
Ziky
Do you know any bootcamp or online course with a certificate of completion that is worth learning C++ and making a resume and being able to apply for jobs related to C++?
your project / os contributions / thesis will work way better. Certificates usually means nothing more that you just paid for something...
k1k3
your project / os contributions / thesis will work way better. Certificates usually means nothing more that you just paid for something...
Yes, i know about that. Altough i think that the better way of demonstrating experience is doing real projects, unfortunately the recruitment system of some companies, mostly of them public, are based on points and they only see if you have certifications about some technology for the job. And if you dont have any certificate but you are a genius, you are directly discarded. Sadly sometimes the world works like a shit.
labyrinth
Guess which digit is going to be on the console: cpp template <template <typename...> class Data, typename... Params> static Field aggDataStateToField(const Data<Params...>& d) { std::cout << "1\n"; return Field{}; } template <typename... Params> static Field aggDataStateToField(const AggregateFunctionAvgData<Params...>&) { std::cout << "2\n"; return Field{}; } template <typename Data> static Field aggDataStateToField(const Data& d) { std::cout << "3\n"; return Field{}; } template <typename T> static Field aggDataStateToField(const AggregateFunctionAvgData<T, UInt64>& d) { std::cout << "4\n"; return Field{}; } TEST(DataType, SimpleTest) { aggDataStateToField(AggregateFunctionAvgData<Int64, UInt64>{}); } someone could help me understand why?
Anonymous
guys how can i solve my account as i am the owner of the group so i can not add memebrs and i also i can not make someone as an admin please guys i really need help for that , if someone need the fee for that i can give
labyrinth
It should print 4 because that template is the more specialized one corresponding to the argument AggregateFunctionAvgData<Int64, UInt64> and matches exactly.
correct, I thought the fourth function is a specialization to the one that outputs 3, but it is just a standalone template function, i dont think it is a specialization to anything.
labyrinth
how does the compiler determine if one is more specialized to the other? is there an equation or sth?
VD
correct, I thought the fourth function is a specialization to the one that outputs 3, but it is just a standalone template function, i dont think it is a specialization to anything.
I said more specialized. The C++ standard defines rules on how to choose between overloaded functions and for templates, the more specialized overload is chosen. The fourth one is the more specialized
klimi
#meta
Anonymous
how does the compiler determine if one is more specialized to the other? is there an equation or sth?
It is actually pretty straightforward. Substitute a parameter that can be accepted by one function into another. If it is not accepted then that function is a specialization In your case AggregateFunctionAvgData<Int64, UInt64> will be accepted by both functions but AggregateFunctionAvgData<Int64, UInt64*> will be accepted by only the first function and not the second function. So the second function is the specialization. This gets slightly more complicated with multiple parameters but the rules are similar.
Garry
https://www.udemy.com/share/101Wd4/ i've done this C++ course and now i'm practising on hackerrank what do i do after this, DSA ,another language , web development?? i dont know any other language or framework.
Vlad🐳
Hi guys, i am junior golang developer switching to c++, what sources would you recommend for those, who have already an exp of programming?
Anonymous
Hi guys, i am junior golang developer switching to c++, what sources would you recommend for those, who have already an exp of programming?
A Tour of C++ (latest edition) would be the best start. If you find that a little complicated, I would suggest starting with the books mentioned in the Begginer's section of the link above.
Vlad🐳
Thank you guys
March
you need build project to binary file download and install vs 2017 and install wdk build project
March
What does this mean, gentlemen?
klimi
What does this mean, gentlemen?
if you want to use it you need to compile it - install vs 2017 with wdk and build the project
klimi
oh well
klimi
Can you teach me how to do it?
I don't use windows, so i don't think i can, you haven't also provided enough context to even know what this is about. Also this group is for c/c++ help.
Night devil
Urgent need
Danya🔥
Urgent need
Go to the toilet
Dima
Go to the toilet
read the chat history, its funny
Dima
I mean the deleted mesausages
\Device\NUL
Visual Code Installer should have option to install WDK
\Device\NUL
But when it comes to undocumened windows api, I prefer this one https://github.com/MiroKaku/Veil