klimi
not android dev myself
Gabriel
Yeh I have tested and it's works, i put on the cmake script "set(CMAKE_CXX_STANDARD 20)" and "set(CMAKE_CXX_STANDARD_REQUIRED True)"
Gabriel
It's is working as expected, but some headers file like "source_location" couldn't be found
Artem
If somebody will help me with this project, I would be so grateful! Problem with Google tests: error is "ran 4 times instead of 3". Cannot fix it ☹️. And I couldn't... google this error 🤣 https://github.com/fav0r-1t/Test-for-Special-Technology-Center
Anonymous
If somebody will help me with this project, I would be so grateful! Problem with Google tests: error is "ran 4 times instead of 3". Cannot fix it ☹️. And I couldn't... google this error 🤣 https://github.com/fav0r-1t/Test-for-Special-Technology-Center
The ByteConverter class calls hasDataNext in a while loop till it returns false. In your test code, you mention that hasDataNext in MockSource is expected to be called only 3 times and it returns true all the times. But the ByteConverter class will call it one more time because it is in a while loop. This is what causes your test to fail by saying the method was called 4 times when you expect it to be called only 3 times. You can change your test code by expecting 4 calls to hasDataNext and make it return false the 4th time
Doraemon
try learning C++
01001000001001100101
Hi guys. Someone has experience with the serie handmade hero from Casey? I am totally beginning with C and like to know if too hard to follow the serie in this condition, and maybe it's necessary take same profound knowledge about the language first. I watched the 3 first episode and Casey explain very well but the API frow windows it's a mess. Anyway, someone has an opinion to shared.
haemoglobin
Can someone share material to learn linked list? I'll delete this message as soon as I get one. I'm finding it hard to grasp. Thank you
IDCAN
Has anyone encountered the problem that when generating a C++ exception: throw std::runtime_error("TEST"); in a previously loaded library with its own DLL loader, the process crashes?
Tokin
Use this https://guide.handmadehero.org/intro-to-c/day1/
Tokin
Also great help to just type the keywords in the search filter to jump around stuff when you feel you can take off without him
Sartaj Ansari
Can anyone tell what does utility functions mean is it same as a memeber fuction?
Nomid Íkorni-Sciurus
Can anyone tell what does utility functions mean is it same as a memeber fuction?
utility functions are something you create because they can be useful for something usually it is common code whose logic can be generalized
Sartaj Ansari
utility functions are something you create because they can be useful for something usually it is common code whose logic can be generalized
Someone has told me the functions which are declared inside a class under private section is called utility function,is is it right or wrong
Nomid Íkorni-Sciurus
the accessors on a class only mark their visibility from outside the class. Whether it is a "utility" function or not, it's up to the programmer. technically speaking, it doesn't have to be a function. It could be a procedure as well.
Sartaj Ansari
Exactly.
Ok Thanks
Albatross
Hello, I have a question regarding the process of including a downloaded C++ library in Visual Studio 2022 for my project. In the past, I was able to successfully link the library by adding the path of the include folder to the "Include Directories" setting in Visual Studio's VC++ Directories. This setting is responsible for specifying the path to search for include files while building a VC++ project and corresponds to the environment variable INCLUDE. However, I am currently facing difficulties when trying to include the same library for a different project. Even though I have added the path to the include source folder, I am encountering a compile error that states the .h file of the downloaded library cannot be opened. If anyone has knowledge or experience in resolving this issue, I would greatly appreciate your assistance. Thank you
Rahim
Hi guys I need some help
Rahim
In c programming
klimi
Hi guys I need some help
read rules, thank you
MM
Send rules
Anonymous
Send rules
It is in the pinned post
Chat Boss
GOPA Priya Jena sent a code, it has been re-uploaded as a file
GOPA
can anybody help me finding my errors
Null
Ali , hi, @ChatBossRobot is just a bot, it won’t answer your questions in dm
Anonymous
can anybody help me finding my errors
size of(copy_MDA.id) will be the size of a pointer and not the size of the array pointed to. I haven't gone through the whole of your code. Just saw the constructor and noticed this problem right away.
Anupam2.7
Do I have to import some library to use ^(XOR) operator in c++? As VS code is giving me error no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int') cout<<1^1;
Anupam2.7
cout << (1 ^ 1);
silly me 🥲 thanks
András
Hi. I have a question
Kevin
Yes?
Chat Boss
András sent a huge message, it has been re-uploaded as a file I'm writing code using CLion and CMake. When I try to compile the code within CLion, I get the f..
Anonymous
Why constructors cannot be declared in protected section of class
Anonymous
They can be declared there
How can i send u the question picture? Group doesnt allow
klimi
Anonymous
2 Which of the followings are true about constructors? A. A class can have more than one constructor. B. They can be inherited. C. Their address can be referred. D. Constructors cannot be declared in protected section of the class. E. Constructors cannot return values. a. Only A, B, D b. A,B,D,E c. A,C,E d. A,D,E Answer is given option d
Dima
There is no correct answer
why are you so kind today
Pavel
2 Which of the followings are true about constructors? A. A class can have more than one constructor. B. They can be inherited. C. Their address can be referred. D. Constructors cannot be declared in protected section of the class. E. Constructors cannot return values. a. Only A, B, D b. A,B,D,E c. A,C,E d. A,D,E Answer is given option d
So, let's go one by one A: is true in every answer anyway B: there are "inherited constructors" in C++11, but the person who wrote question may mean something else C: the address of a constructor cannot be taken D: they can be declared in the protected or even private section. First is usually used to allow only derived class to construct the class using that constructor, the second was often used before to prohibit some of the default constructors (probably can be used now to reduce code duplication in some cases) E: true, they don't have a return value So how I see it: A, B, E Or A, E (if the person who created the test didn't know about "inherited constructors") In any case, there are no correct variants in the list
Danya🔥
A is correct
The possible answers are given with lower case letters
András
The possible answers are given with lower case letters
Agree. There is no correct answer, but answer "a" is sorta correct. We cannot inherit ctor, but we can call using to inherit all ctors
Danya🔥
CMake is the official build system of Qt
Danya🔥
They deprecated qmake afaik
Danya🔥
https://cmake.org/cmake/help/latest/manual/cmake-qt.7.html
András
But D is incorrect, and "a" includes D
Constructors CAN be declared in protected section
András
Ohh, I see, I missread, sorry
András
Why do even use qmake with CMake?
Idk, that is a third-party library that try to query and parse some info from qmake
Rejwana
Can anyone told me that,what is the size of an object in c++?
Rejwana
Like char name [100 ], float salary,int age; is that 108 byte?
Rejwana
sizeof(obj)
Oh accha. 108 byte not correct?
Danya🔥
Anonymous
Oh accha. 108 byte not correct?
sizeof(char[100]) will always return 100. sizeof(int) maybe 2,4 or 8. sizeof(float) will return 4 on most architectures. So if int were 2 bytes long, the answer would be 106. If int were 4 bytes long the answer would be 108. If int were 8 bytes long, the answer would be 112 bytes .
Muhammadsolih Umarov
Like char name [100 ], float salary,int age; is that 108 byte?
Integer is usually 4 bytes, char name[100] means 100 char type array. It stores 100 character type objects. Char type is 1 byte, so 100 ×1 byte = 100 bytes Float type is 4 bytes usually. So in total 100+4+4=108 bytes Your answer is correct! But it may change according to the compiler/OS
Amelie
Excuse me, how to write a program to control the hba card in linux?
Amelie
There is a SAS Host Bus Apater card in my computer. I use Ubuntu 22.04. The corresponding driver name of this card is mpt3sas. I don’t know how to program the program to operate this HBA card. The purpose of operating the card is to disable/enable/read/write hard disk. The libraries I found include libhbaapi and libhbalinux, but they all seem to communicate with the fiber-optic HBA card. How should I write a program to operate this SAS HBA card now? What library do I need?
Ali
Hi, is there anyone out there who has used wx?
Rejwana
Anyone can told me,what is memory padding? Or can anyone suggest me any video?