klimi
That is it will have the range of 0 to 3
no, there are 5 possible values: 0,1,2,3,4
Liang
if u dont want to help, is ok
Liang
just speak out
Liang
not necessary to that
Anonymous
I'm trying to understand the cause of this error message: Any help? warning: implicitly-declared 'Account:Account(const Account&)' is depreciated [Wdeprecated-copy]
Chat Boss
Dmitrii sent a huge message, it has been re-uploaded as a file struct A { const std::string& getName() const {return name;} std::string name {"A class"..
Dm
1. Read rules 2. Ask you question directly without this useless text
Notaxmar
I'm trying to do C on android and i am facing some little issues. Is there a substitute header file for <winsock2.h>?
Notaxmar
start: must be root [Program finished] what does that mean
%Nikita
start: must be root [Program finished] what does that mean
I guess you should give it access to root files
Dm
and how can i do that
Run program with sudo (ranas) ./a.exe
Anonymous
Hello everyone here,i want to ask question about a c/c++ library call dear imgui. is there anybody who know the best place to find the best documentation for that ?
Chat Boss
M O H I T K U M ∆ R sent a code, it has been re-uploaded as a file
M O H I T
it is not showing anything in the output window
klimi
it is not showing anything in the output window
you sure you want to have void first() in main and not first() ?
Wubalubadubdub
I need help own how to implement tokens on my machine
Mr
And don't ask meta questions
Wubalubadubdub
payment tokens
Wubalubadubdub
I need a customer to make payments and generate tokens
Wubalubadubdub
that he/she could use on the meter I am building
Wubalubadubdub
prepaid tokens
...
Can anyone please tell me what's wrong with my code, according to me it's logically correct, but its failing test case.
...
May I send problem link?
Mr
ask your question directly
Rashid
Heyy how are you members
Rashid
I need help
Rashid
About the concept of constructor
01001000001001100101
Guys, it best to learn in deep all concept in C and after that maybe go to c++, or it's depends on some goals, i mean, one could be a complement to another?
Anonymous
Guys, it best to learn in deep all concept in C and after that maybe go to c++, or it's depends on some goals, i mean, one could be a complement to another?
If you have just basic knowledge in C you can start with C++, according to me often i use C Concept in my C++ Code
Rashid
Chat Boss
In c++
Inconnu sent a code, it has been re-uploaded as a file
Anonymous
class A { private: int x,y; public: A(){ } A(int a,int b){ x=a; y=b; } }
Anonymous
In c++
So now if in your main function int main(){ A a;//this one call the first constructor called default constructor A b(1,3);//and this one will call the second constructor with parameters }
01001000001001100101
If you have just basic knowledge in C you can start with C++, according to me often i use C Concept in my C++ Code
Actually I don't have knowledge in anyone, I know JavaScript, but I like to learn something more closed to the hardware for the only reason that maybe it could help me be a better programmer
Anonymous
Thanks
You're welcome, it's just a basic concept for more information you can Google it or i recommend you to check geeksforgeeks website
klimi
Actually I don't have knowledge in anyone, I know JavaScript, but I like to learn something more closed to the hardware for the only reason that maybe it could help me be a better programmer
if you want something really close to hardware, take C, then C++, if you don't, you can just learn C++ and maybe sometime you would touch the ugly truth about pointers and stuff
Anonymous
Ok so u can send me the link of the website
https://www.geeksforgeeks.org/c-plus-plus/
klimi
I get @K11M1, thanks you and others. I will try c, let's see what happens 😁
C lang doesn't have much syntax so i think it will be quite easy for you to grasp it :)
Perush
I want to learn C programming How to do so
Perush
I know, I know I should do that but really am directionless Searched for various community and got here
Perush
I know some syntax But the logic is the problem
Perush
How I should go about being familiar with it?
Perush
Where i should go and do questions to be familiar with it
Perush
Lot of questions
klimi
How I should go about being familiar with it?
Study and practice, from experience you will gain overlook at what algorithm exist and what you can use
Perush
I'm listening
Perush
@K11M1 Could you recommend me some sites that provide questions for all levels?
klimi
@K11M1 Could you recommend me some sites that provide questions for all levels?
I dont have definitive resource since I learned this in my own and then in university. You can find a lot of content on for example YouTube thought. Maybe we have something in https://t.me/cpp20programming but I'm not sure
Host
Hello! I have a question, How I can study Artificial Intelligence (AI) with c and c++?
Gregory
Then you can read the documentation of the libraries used to develop the A.I
Dm
How to print write custom linkedlist which support different typed Nodes? The most important thing add support to print this list I have this scratch but it isn't fully correct https://godbolt.org/z/MnjvrrxeP
Jose
Hello! I have a question, How I can study Artificial Intelligence (AI) with c and c++?
Not using C and C++ at first glance. C or C++ will force you to "think in C or C++" when you want to go to your solution, instead of think about the solution itself. Create a calculator and you will understand quicly how bad is create a mess using while/switch spaguetti code approach. For example in the AI field, creating a model part, with the creation itself, exporting it and importing it. Would you create one astonishing giga-file with the embedded model, initialize with start parameters, and use that in the same file? Or would you attack the problem separating objectives with more mini-files? The same goes to the dataloader pattern, the train (with its loss and metrics), the deploy of the trained model... It is NOT a starting project in C or C++. It's a medium/large scale project with that languages, indeed.
Dm
Do you mean, you want to print all the Nodes(data in nodes) linked together as a linked list?
Yes. And all nodes can store different data (as in python) Anyway I already solve it
Anonymous
hello everyone! I have a question regarding code structure in c++ normally in some languages the code can be written in line like in php, css... without breaking the line too much is it wrong, sometimes to put my code in line when the instruction to be executed is short? I say this because when I use the “if” structure on certain occasions the code in it is quite short and instead of giving several line breaks I put only one example line: standard form .... if(i == nums.size()){ a = nums.at(i); } .... other way ..... if(i== nums.size()){a=nums.at(i);} ..... can i write like this?
Anonymous
Yes it will compile
Jose
If you work in a team or in a large project, this approach would be rejected. Think in terms of readability. If your code contains tons and tons of this "smart, hacky sentences", it will be hard to understand whats going on there. Let me show a perfect example of how not to do that
Jose
https://github.com/mrc-ide/covid-sim/blob/master/src/ReadParams.cpp#L1126-L1158 The perfect example of how a bad code design decision at style level could become a maintainability nightmare