Anonymous
I don't take in count the last (?)
Artöm
You access v[v.size()] which is not allowed
Artöm
apariciones works fine
You don't count first element
Anonymous
aaaa thanks budd
Zel
Do not count the 1st element or the element that matches the array size. Not all functions will accept the first element of an array. Also, the element that matches the array size does not exist. It is outside the size of the array.
Zel
So if a[3] is the size of the array, the elements are a[0], a[1],a[2].
Anonymous
please a need help
Ws2_32 maybe? (you typed ws2_32) https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop#requirements
Zel
Kk, eitherway just trying to help.
Anonymous
yeah thx budd
Anonymous
Hello. I have this function: int* extract_coords_from_str(string str) { int coords[2]; ... return coords; } void set_map_values(string str) { int* ptr = extract_coords_from_str(str); cout << ptr[0] << ":" << ptr[1] << endl; } Why not work? The program stop!
Artöm
You return a pointer to local array ehich is deestroyed right after function returns
Anonymous
true ...
Anonymous
thank u!
Anonymous
You return a pointer to local array ehich is deestroyed right after function returns
but what is the problem? I create in any function exec a new array ... it is a for and I am creating a new array everytime
Artöm
Anonymous
ok, thank you!
Anonymous
and how can I return a array without pointers?
Artöm
Allocate it
Artöm
Or maybe pass it as argument
Anonymous
thank you!👌🏻👌🏻
Zel
You cannot free the data associated with a pointer and the callfor the pointer later and expect to act on that data. You can return the pointer and the free the array from the function using the data, or you can have both functions in the same scope and in that case one modifies the array and then other reads it.
Anonymous
If the method POW in the STL returns a CONSTEXPR. Why can I do it? int a =0; cin >> a; a = pow(a,2); In theory if something is CONSTEXPR should be now during the compilation time.
Gnana Teja
.
Anonymous
amss okay
Anonymous
Thanks :-p
𓆉 𝖙𝖚𝖗𝖙𝖑𝖊𝕶𝖎𝖓𝖌 ࿐
/cbook
𓆉 𝖙𝖚𝖗𝖙𝖑𝖊𝕶𝖎𝖓𝖌 ࿐
#cbook
...
Hai everyone.. I'm getting implicit declaration of function strrev when I used strrev() function. I also copied a program on the function and I run it. But no use. Anyone please help me..
...
Yes
Artöm
You need to implement it yourself
...
Bro do u get the code I had pasted the code please check it once
Anonymous
Guys suggest some good tutorial for C++ STL
Anonymous
I didn't understand bro
oh. i thought you were asking the question from Let Us C by Yashwant Kanetkar
Anonymous
Let us C is recommended by many people 😅
it's a good filter. you get to immediately know whose advice should never be followed for any topic
noop
As second argument, i need to pass a pointer to pointer
That's right, thanks, I corrected it.
Dima
nice
Anonymous
nice
❤️
Dima
@MimDev ’s message: "Good afternoon. With approved. I added two useful tools to my site. Site is not commercial, advertising is not, did with a soul. Text tools: https://biba.dev/en/online-tools/text/lowercase-uppercase-length-base64. Class name generator: https://biba.dev/en/online-tools/development/class-name-generator. I’m sure it will be useful to you 🙂 Glad to hear your suggestions, there is a feedback form on the site. All good day! 😊”
Asiman
hello there! can anyone share source of information about required skills for game development?
klimi
hello there! can anyone share source of information about required skills for game development?
about gave development? you mean low level or something high level?
klimi
low level
know how gpu works, maths for matrix and vectors
klimi
know pipeline (opengl/directx)
klimi
(shaders obviously, multiplexing)
klimi
where’s Vulkan
+ Vulkan sure.... but the pipeline is similar to opengl
Dima
not at all
klimi
Alright Dima
klimi
i just don't like vulkan
klimi
and opengl and directx are the big ones (but sure vulkan is awesome)
Francisco
I think that person might not even know what you're talking about
Asiman
I think that person might not even know what you're talking about
i just don't know difference between opengl and Vulkan everything else obviously
Francisco
i just don't know difference between opengl and Vulkan everything else obviously
But do you know any of those? Because they're pretty fundamental for game development (or directX if you're in Windows)
klimi
thx a lot
do you have some background?
klimi
web, python
alright... thats a huge jump
Francisco
i just don't know difference between opengl and Vulkan everything else obviously
You can also learn more higher-level libraries for graphics, like SDL or SFML (I'm using this last one quite often nowadays), but don't expect your game to be really that efficient
klimi
web, python
if you want to just get into game development you could try pygame
Francisco
(or even higher GML/Unity/Godot)
That works if you have an idea and want to implement it as fast as possible, but I haven't really learnt a lot using those
klimi
bruh python
it's like the language i know the most Dimka
klimi
wait wha...
i am no programer dima