Dm
Hi everyone I have a question I want to take a long string as an input and then split it according to spaces The length of string is not clear Any idea ?
You can store really huge string in memory if you need (depends on available RAM) if string is bigger than gigabates so you have to split it and work with parts of input string.
\Device\NUL
where is the mistake
The mistake is your indentation is so bad
CommandX
How i can the code source code then
Msec
Hello first of all. I'm using Vs code and msys2 mingw to code in C++. I can't install wxWidgets. I need help. Can someone with knowledge help?
Farrukh
I am eating code in java. Now I need to create a virtual camera in c ++, I found a way, but I don’t know how to connect mfvirtualcamera.h. Can anyone explain how this can be done for the project is very important
DaviChan
or build system generator in case of cmake
DaviChan
like how do you build your program 😅
DaviChan
using cmake?
DaviChan
nmake?
DaviChan
just the compiler directly? 😅
Msec
I'm trying to compile with g++ but it won't compile
DaviChan
yep, you need to tell the compiler where the includes are and also tell the linker to link against wx. That usually happens in the build system. On windows I don't know how to install libraries easily though. I would probably go with FetchContent in cmake, that will allow you to automatically download the library. Im sure you can even find examples online
CommandX
Guys how to send github link ?
DaviChan
probably not allowed 😅
DaviChan
as seen here
CommandX
probably not allowed 😅
Sad then how to send source code
CommandX
What is markdown formatting
𝐏𝐀𝐁𝐋𝐎 ✟ 𝐄𝐒𝐂𝐎𝐁𝐀𝐑
Someone send me link where I can download c++ compiler
CommandX
Also the source code is huge
CommandX
Guys How to fix [ 0.001096] <6>-(0)[0:swapper/0]assertion failed at drivers/misc/mediatek/sched/sched_avg.c:1001 Source code : https://github.com/camellian-devs/kernel_xiaomi_camellia/blob/camellia-r-oss/drivers/misc/mediatek/sched/sched_avg.c
CommandX
Assertion is failing on C++ anyone can help is appreciated Full Logs : https://katb.in/agohuqosiqu
Anonymous
which is best c++ or python for placements?
Матin Salehizade
I got a serious problem in implementing vs code for coding c, I tried every way in google but I always get errors coding with vs code, dont you know of a good link to teach how to ?
Anonymous
Guys how to send github link ?
You can send a GitHub link. But new users are restricted from sending links for a day to prevent spam. Moreover, I am not sure if anyone will go through the process of debugging your code for you. If an assertion fails, the assertion would say why it failed. Can't you take it from there?
CommandX
It's just say Failed nothing else
Anonymous
It's just say Failed nothing else
It is failing because init_heavy is set to false and it is expected to be true after calling init_heavy_tlb function. Now go and figure out why that is the case
Stefano
Guys, a serious framework to develop a commercial 2d game? Lowlevel if possible, with commercial games made with it? I am already evaluating Raylib, Unreal, smfl2 etc . If anyone have experience developing 2d games will be appreciated. Thanks
Respect
Guys, a serious framework to develop a commercial 2d game? Lowlevel if possible, with commercial games made with it? I am already evaluating Raylib, Unreal, smfl2 etc . If anyone have experience developing 2d games will be appreciated. Thanks
I dont have much 2d experience, but i searched for 2d in my stars on github. So checkout all on github: godotengine / godot, erincatto / box2d, urho3d / urho3d , opentoonz / opentoonz , cocos / cocos-engine , nCine / nCine , fishfolk / jumpy (more like example of 2d game), NoelFB / blah , diegomacario / Dyna-Kinematics , jhasse / jngl .
Anonymous
Hey Does anyone know any website to learn cpp?
Stefano
I dont have much 2d experience, but i searched for 2d in my stars on github. So checkout all on github: godotengine / godot, erincatto / box2d, urho3d / urho3d , opentoonz / opentoonz , cocos / cocos-engine , nCine / nCine , fishfolk / jumpy (more like example of 2d game), NoelFB / blah , diegomacario / Dyna-Kinematics , jhasse / jngl .
Thank so much for your rich answer. I used Godot to develop a game already, for 2 years, i can say its a very good engine but you have to enter in their particular philosophy made of stage/objects (similar to flash) wich can be confusing. Actually i am moving to what so far i can say are the best for 2d games: raylib,sdl, smfl. If somebody knows something better please tell me. Thanks
Stefano
Hey Does anyone know any website to learn cpp?
https://www.w3schools.com/cpp/ https://en.cppreference.com/w/ But i suggest you to learn it from a good book.
TOMCAT
QRegularExpression functionPattern("\\b[A-Za-z_][A-Za-z0-9_]*(?=\\()"); what dose this regex expression in qt mean? I can't understand the meaning behind the '?' mark
M͓̽ ͓̽a͓̽n͓̽k͓̽ ͓̽I͓̽N͓̽D͓̽
Hello my Friends Excuse me what platform is the best for c in Linux and why?
M͓̽ ͓̽a͓̽n͓̽k͓̽ ͓̽I͓̽N͓̽D͓̽
I use qt creator It's portable and auto complete syntaxes
Anonymous
hey guys any idea how to initialize LPWSTR variable?
M͓̽ ͓̽a͓̽n͓̽k͓̽ ͓̽I͓̽N͓̽D͓̽
It's very useful channel for learn c Thanks 🙏🙏
Yui
https://godbolt.org/z/7Ex7M8f45 I wonder why value_type need copyable
Marco
Hello guys, the specification I'm working with uses a templated member function to get information about a class. I want to extend this class and provide the ability to get new information using the same fashion. However, I'm stuck with a linking time error. I think I understand the reason for it, but I cannot find a way to circumvent this. I provide you the sample code to have a clear idea. Github gist: emdant/2b88358fbd1d2383bca6c7d4c6c440e5 Linking error: undefined reference to spec::info::queue::context::return_type library::extended_queue::get_info<spec::info::queue::context>() const'
Sergey
Hi
Sergey
Why is my message being deleted? I doesn’t have any links
Sergey
Can you please help me understand how to work with std::move()? I’ve included a JSON lib in my project. The typical usage is to call it like this: JSON myjson = JSON::Load( "[ { \"Key\" : \"Value\" }, false ]" ); Now I want to return the myjson object from a function. How would I do it? By simply return myjson?
Sergey
Worked this time...
Sergey
The lib I am using is called SimpleJSON, from NotAPenguin0 on github, include/include/json.hpp line 646
Hizmu(Vlad)
Hi. Who can help with bit operations?
Hizmu(Vlad)
I need to convert an array of int8_t to int32_t using no functions. I have been suffering for a long time, but it does not work. I have numbers (-120, -127,0,0) and I know that the answer should be 33160, but when I try to do a bitwise shift, it turns out some kind of nonsense
Hizmu(Vlad)
beware of the fact that you are working with signed types
Can you help me please, what operation should I do with signed values? for example size s = 4; int8_t data[s] {-120,-127,0,0}; int32_t result; for(int i = 0; i < s; i++){ result |= (data[i] >> i*8); }
klimi
another one that data[i] >> 8 is probably 0
Anonymous
Can you please help me understand how to work with std::move()? I’ve included a JSON lib in my project. The typical usage is to call it like this: JSON myjson = JSON::Load( "[ { \"Key\" : \"Value\" }, false ]" ); Now I want to return the myjson object from a function. How would I do it? By simply return myjson?
Depends on how the class JSON is implemented. You have to check it's header file to see if it supports move operations. If it doesn't, returning it by value is the best option. You can then expect compiler optimisations like NRVO to kick in which would make it less costly.
Jillur Rahman
can anyone enlighten me about "json".Currently i am learning js.But i don't have a clear idea about json/json file.
Anonymous
Hello guys, the specification I'm working with uses a templated member function to get information about a class. I want to extend this class and provide the ability to get new information using the same fashion. However, I'm stuck with a linking time error. I think I understand the reason for it, but I cannot find a way to circumvent this. I provide you the sample code to have a clear idea. Github gist: emdant/2b88358fbd1d2383bca6c7d4c6c440e5 Linking error: undefined reference to spec::info::queue::context::return_type library::extended_queue::get_info<spec::info::queue::context>() const'
The problem is that the template specialization is in an entirely different namespace. Your compiler can't figure out where to find this template specialization based on the class or the arguments. So the compiler won't know that it has to search in the namespace spec for the specialization. It will just assume that it will be provided in another object file. This is the reason why you are getting the linker error. Typically there is no workaround unless you are willing to hack around a bit which would make your code ugly. My question would then be "Why do I want to do this"? If extending the original namespace is not a choice, then that should be a clear indication that the author of the class does not wish for his class to be extended the way you think it should be
klimi
Tran
Can anyone tell me which is better between Cocos and Unity... And why? 😢
klimi
Can anyone tell me which is better between Cocos and Unity... And why? 😢
not that this is related to c/c++ (be sure to read the rules), but Unity is more popular than cocos, so if you are choosing between those two and you don't see any pros and cons, you can choose unity
klimi
I use c++ for cocos... Just one more question... Which is better between Unity and Godot?😢
Oh, right, cocos uses c++; depends that you want to use it for; godot gained a lot of popularity in the last years, unity has been a solid options for some years now
Матin Salehizade
Hey fellows. I got a menu including number 1 and 2 and 3. How to implement a loop that, if user entered non of 1 or 2 or 3, the program shows the menu again and again if non of 1 2 3 was entered ?
Матin Salehizade
@K11M1 Is it possible to enable sending photos to the group ?
Матin Salehizade
can be done with do while
I've passed some steps with do while, but I got stuck, how is it exactly?
Arvin
do{ }while(input < 1 or input > 3)
klimi
@K11M1 Is it possible to enable sending photos to the group ?
Yes, it is possible in telegram supergroups to enable sending photos. (although we have decided to turn sending photos and videos off for this group)
Матin Salehizade
Tran
Better at what?
Hm..Easy to create a game and which is lighter...
Матin Salehizade
do{ }while(input < 1 or input > 3)
Bro, Tnx for reviewing do while syntax, but I'm looking for how to. And I'm wondering it's banned to send photos to express the problem clearly.
Tran
I used unity and it's really heavy