Rakesh
No it's not my homework
https://hastebin.com/share/pogoguguxa.cpp
I have some errors in the code
Anonymous
No it's not my homework
https://hastebin.com/share/pogoguguxa.cpp
I have some errors in the code
What sort of errors? And it is so difficult to understand your code with the variable names you have chosen. I understand that you are trying to simulate SJF. But the main problem with SJF is that short running processes can arrive at any time preventing a long running process from ever executing. I don't see you trying to do that.
Explain what you are trying to do and maybe we can help you then.
Leovan
Hello guys,
what is better for release build (which i will give to users):
1) link all dlls into one exe
2) deliver exe along with dlls near it
Under dll I mean something standard like libwinpthread-1, so it's not my libraries
\Device\NUL
\Device\NUL
While in Linux world, Libc often broken so its suggested to use static linking eh
Anonymous
is qt for designing GUI?
Qt is a framework created for developement the GUI's more advanced the sample form with resources like Widgets, QML, Qt Designer... So you can use Qt for many languages, but the principales language is C++ e Python. In first place you must know the documention and I know that in begin everything is dificult, but only read. And after read and watching some videos you going understand. Also make the course that can be pay because free courses it's not recommendable for who getting started.
Anonymous
Yes! I am working on automotive embedded
Anonymous
FriedRice
FriedRice
dlls are dynamic libs that are loaded by Window OS, it is not part of the exe.
FriedRice
The good thing about it is Windows only needs to load it once and do virtual memory mapping into all processes that need it. The drawback is apparently due to the same reason, there is only one copy in the physical memory so it can't have global variables.
Ar
hi do I need to learn c++ to use c++ in unreal engine?
void
i wrote something and it got deleted
zawkin | 🇵🇸
I need gcc compiler to use neovim on windows. But I can't find any way to install it without mingw64 or cygwin. To use neovim in powershell I guess gcc also should run on powershell.
\Device\NUL
zawkin | 🇵🇸
huh?
I need to install gcc to powershell
\Device\NUL
Me use winget install Neovim.Neovim
\Device\NUL
zawkin | 🇵🇸
\Device\NUL
There are prebuild binaries
zawkin | 🇵🇸
\Device\NUL
https://github.com/neovim/neovim/wiki/Installing-Neovim
zawkin | 🇵🇸
Then why not use it?
Error detected while processing C:\Users\zawkin\AppData\Local\nvim\init.lua:
No C compiler found! "cc", "gcc", "clang", "cl", "zig" are not executable.
zawkin | 🇵🇸
that's the error. Should I install gcc with ming64?
\Device\NUL
zawkin | 🇵🇸
zawkin | 🇵🇸
\Device\NUL
with scoop
What Windows version that you currently using? winget should have be installed
zawkin | 🇵🇸
\Device\NUL
windows 11
Bruh, just run winget install Neovim.Neovim
\Device\NUL
It's the official package manager from Microsoft
\Device\NUL
not yet, ok
I recently installed the msi package, they have included some external lib like pthreads
\Device\NUL
So no need to use additional toolchain
zawkin | 🇵🇸
albert
👍
Edy
Hi
CupónErredē
Hi everyone, I'm working on a school project, building a vending machine with RFID, I'm storing a valid tag UID so I can validate it when the RC522 module read the tag and despite l'm using a const String for the Valid UID, the comparison between the read Tag and the string of my valid tag UID keeps unvalidating my tag. This is my code:
void loop() {
if (mfrc522.PICC_IsNewCardPresent() && mfrc522.PICC_ReadCardSerial()) {
String uidString = "";
for (byte i = 0; i < mfrc522.uid.size; i++) {
uidString += String(mfrc522.uid.uidByte[i] < 0x10 ? "0" : "");
uidString += String(mfrc522.uid.uidByte[i], HEX);
}
// Compare the UID with the validUID
if (uidString == validUID) {
Can someone help me correct it? I assume that it is due to the format or size between my valid UID string and the one scanned with the RC522 module
But i dont know how to correct it
Rakesh
Suka
FriedRice
Just drop vim and use vscode instead tbh. You can install vim extension on vscode. Vim is too old.
FriedRice
because there are too many new features in C++ like auto decltype template stuff, they require a modern IDE like vscode to analyze the context and give you hints. Without the help of the IDE it would be really hard to track type deductions in very long code using the bare human brain. vim is a good editor but not as good as a modern IDE.
Danya🔥
Danya🔥
VS Code is not an IDE
Danya🔥
VS Code C++ extensions work with language server protocol
\Device\NUL
FriedRice
It is an IDE depending on how you define an IDE
Danya🔥
And the same engine can be and is used by vim and the functionality is very same
FriedRice
You can compile, debug, and do tests on vscode.
Danya🔥
Danya🔥
And the same can be done with vim
FriedRice
Fine, it is not an IDE. If you look at the C++ extensions you will notice a lot of the extensions are ported from Visual Studio.
Danya🔥
Danya🔥
The Microsoft extension is not useful for anything serious
Danya🔥
Only the debugging functionality is nice but works not great sometimes
FriedRice
IDK what makes you think so
FriedRice
They share the same code
FriedRice
Just ported with different frontend
FriedRice
For example
FriedRice
https://github.com/microsoft/MIEngine
Danya🔥
I wish I could find time and energy to learn to be able to debug with gdb or lldb without GUI
Danya🔥
https://youtu.be/stqUbv-5u2s
FriedRice
I learned that 5-6 years ago in college
FriedRice
Intellisense is decent I rarely found any issues, the last time I found were some false alarms in a very complicated C++ design pattern which a friend class was not recognized properly and MS literally fixed it in a pre-release next week, it is being actively developed right now and they will fix any bugs you find.
FriedRice
And it's free service that's really good.
FriedRice
I use vim key mappings in vscode tho, I have used vim for around 6 years since I learned programming in college. Although I still use it sometimes during work but only for some basic server settings 😂