Anonymous
Obama
So write it
Help me, I don't know how to write it, I need assistance
MilkBeforeCereal
tf is calculating a polynomial lol
Anonymous
Help me, I don't know how to write it, I need assistance
Your statement is similar to
"Help me, i don't know how to pay taxes, I need assistance"
It's not an attitude you should live with
You can ask a specific question here but asking to "assist" you or writing program for you is forbidden
J
wow, what kind of stupid elitist horse shit is that?
Boryan
Hello👋 I want a tiny consultation. I've got a table of float values with column titles from csv file and used to store its as follows:
vector <string>hat (due to column order in file)
hash<string, vector<float>> dat
and make all itarative process through hat. So I want to know, maybe my way is not an efficient(or even bad) and how other people store those structers in programms.
J
what is your way? how are you processing the file? how are you creating and populating the vectors and hashes?
Alex
Pavel
J
what did you expect to happen?
Alex
create another identifier more than 31 chars, with common first 31 chars
J
no. read again.
J
the 31 char limit applies to internal identifiers
J
also, forget that limit. that's some shit straight out of 1982
Boryan
J
take a look at this, as an example: https://github.com/d99kris/rapidcsv
J
warning flags enabled? pre-historic standard compliance flags turned on?
J
is your compiler from the 80s?
J
that's the standards mandated minimum significant character count. no compiler in practice actually works at those limits, except maybe "your grand-dad's borland™"
J
hmm... i see it's an IDE app for phones, but i dont see what it calls for the compiler (i dont think androiden comes with pre-installed compilers, which would be super hilarious)
J
maybe it's some fork of clang/llvm that they redistribute. you'd need to find that out first. but defo try the flags first. you're effectively testing the compiler for standard compliance at that point tho
J
if you're feeling extra adventurous - you can maybe grab feature tests from another compiler (gcc, clang) and try building them with that cppdroid compiler. see if it understands all the features.
Garvine
Who has an idea of how you can generate one random number between 1 and 500 using a function then that number should be passed to another function to check if it is prime or not.
J
Garvine
I had thought about the rand function too
Thanks 👍😊
Dark
This be a stupid question but I have been looking on google for an answer for 4 hours and got nothing.
My problem:
I have a CreateWindowW()
And I need to change the size of the Window. But I can’t for the life of me
J
are you talking about the Windows API function?
J
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindoww
void CreateWindowW(
lpClassName,
lpWindowName,
dwStyle,
x,
y,
nWidth,
nHeight,
hWndParent,
hMenu,
hInstance,
lpParam
);
V01D
J
nWidth and nHeight are what you're looking for
Dark
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindoww
void CreateWindowW(
lpClassName,
lpWindowName,
dwStyle,
x,
y,
nWidth,
nHeight,
hWndParent,
hMenu,
hInstance,
lpParam
);
Grate I am an idiot to miss that one
J
hahaha, nah, it's fine
J
we all have our days like that
Anonymous
Dark
Anonymous
Making GUI using WinApi is terrible
Anonymous
J
what if he's writing a facade for WinAPI and X?
J
...and wayland
Anonymous
J
because he wants to?
Dark
I am only using the Window.h library no external ones
Dark
So I think I am using WinApi
V01D
Winapi is fine
Dima
winapi is one hell of a thing
J
well, no one asked what you THINK he wants to do...
Anonymous
J
if he'd asked "what my options for writing portable GUIs are?", we could have that discussion.
Anonymous
J
yeah, and your opinionated interjections are as well
Anonymous
Anonymous
Even if the only target is Windows
J
yeah, let the person writing that system be the judge of that
V01D
Dark
Look I don’t like WinApi but I really don’t want an external library because I want it to be a standalone application
Anonymous
Not a good way to learn C++
V01D
Anonymous
Anonymous
V01D
I think he meant he does not want an external lib that is not installed by default
Dark
Anonymous
Dave
Devs should i learn C or C++
Anonymous
Dark
Anonymous
Anonymous
Why?
WinApi is piece of shit
Dave
Anonymous