Our class was challenged by a professor at uni that if we were able to find a algorithm that fittingly describes the following Big-O-Notation, we'd instantly pass his class. I wanted to ask if any of you know how this could be done since I've been...
I'm designing and programming an elevator-like robot for a high school project. Could I possibly do anything to make this any simpler? Or better? I have attached a picture of my design that I made in AutoCAD Inventor with labels.
I have to dynamically create push buttons depending on user inputs, therefore if the user gives a large input number, the widget containing the push buttons has to have the ability to scroll up and down.
I am trying to attach a servo on an Arduino (branded) Robot but not sure whhich pin to use for the bellow code. Most people seem to recommend to use pin 9 and 10 to control the servo for arduino Unos. However, I can't use Pin 9 because that is...
Everything works perfectly fine but the thing is that everytime a user creates an account, it replaces the old credentials stored in the already existing file. I want to be able to store multiple user credentials so that multiple users can login....
Processing large amounts of data (gigabytes) I use indexes to data arrays. Since access to data could lead to cache inefficiency, I want to cache some data from array together with the index which gives dramatic speedup for operations through...
at the moment I am using a windows machine and wanted to try out windows subsystem for linux(wsl) for c++ development. Visual studio code(vsc) provides a neat extension for working on the subsystem that works quite well. One thing I could not get to...
With the attribute [ ] used for plain old data (POD) arrays like ‘std::size_t[]’ the template specialization for zero structure size could be as small as index member is has, not occupying memory for the data array.
I make an executable file using cmake, and it runs perfectly on my computer, but when I share it to another computer and I open it, it says libcrypto-x64.dll was missing. I tried to find it on web and searched everything but I didn't find anything....
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
I'm working on a native Windows app to stream part of my desktop to a microcontroller as part of a creative tech project. It's written using C++ and is curently a console app. I have no intention of switching to Javascript, C# or anything else....
Processing large amounts of data (gigabytes) I use indexes to data arrays. Since access to data could lead to cache inefficiency, I want to cache some data from array together with the index which gives dramatic speedup for operations through...
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
PIMPL stands for P ointer to IMPL ementation. The implementation stands for implementation detail : something that the users of the class need not to be concerned with.
Qt's own class implementations cleanly separate out the interfaces from the...
I have suprising observation that steady_clock gives poor 10ms resolution when measuring durations. I compile for windows under cygwin. Is it sad true or am I doing sth wrong?
auto start = std::chrono::steady_clock::now(); /*...*/ auto end =...
Question:
I've been exploring different types of casting in C++, particularly const_cast, which is used to cast a const T to T, where T represents a data type. However, I encountered a perplexing behavior when experimenting with const_cast....
I am currently working on adding CMake support to a library that currently uses waf as its build system. The code I have for CMake is excruciatingly slow compared to the existing build system with waf, and I believe it is because of the following...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения