No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi all, I am trying to implement singleton class having static method. my requirement is as below: A.h Class A{ Public : Static A* getInstance(); } B.cpp #include A.h Class B : public class A{ A* A::getInstance() { //some code. Return *A } } D.cpp #include B.h A* pter = … |
|
Hi all, I am trying to conver string to decimal. the sting is 8 byte long and contains data as hex nembers e.g 0000000000000D72 i want to conver this data into decimal as 3442 i'm not getting how to do this help me... |
|
Re:
Hello How do I combine hexadecimal numbers? For example if I have the numbers: - aa - 14 - 5d How can I combine them to get : aa145d ? |
|
the hex value 00 00 00 00 00 BC 61 4E (LSB) which is stored in string as char data[8] = {0x4E, 0x61, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00}; now i want to convert it into int (equivalent of above hex string is 12345678) i have below code char a … |