This page is a NO-INDEX summary of comments posted in this blog.

Total 849 Comments (22/34 Pages) - Newer Comments - Older Comments

526. 2016-10-18 16:02:24 Luc Bloom Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:

The last line is rather inefficiet: 1) you always do the check so you can do it anywhere. Do it early for an early-out. toHex is expected to have a high chance of zero being passed is most programs anyway. 2) the string == "0" is super inefficient. String compare instead of in? No no!


527. 2016-10-18 12:54:42 ACMer Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
it is the same because x is unsigned.


528. 2016-10-18 12:47:07 Mani Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
Yes. so the while loop should be x != 0 instead of x greater than zero.


529. 2016-10-18 12:30:41 ACMer Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
unsigned means non-negative. so unsigned integer includes zero.


530. 2016-10-18 12:29:47 Mani Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
I think x is always greater than zero since is an unsigned integer. Correct me if i am wrong.


531. 2016-10-18 12:13:46 ACMer Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
Yeah. wordpress comments do not support formatting.


532. 2016-10-18 11:42:32 Carlos Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
I only noticed now. It got weird with the formatting. I don't know what happened. You can see the code here: https://github.com/ClaymorePT/ArchNet/blob/SQLite3_Database/headers/dataTypes/helpers.hpp


533. 2016-10-18 10:33:03 ACMer Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
Thanks! yes, yours look modern.


534. 2016-10-18 10:28:46 Carlos Comments on C/C++ Coding Exercise - Convert a Number to Hexadecimal?:
I also have a similar templated function helper. constexpr const array nibleToHexTable {{'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}}; template inline const string to_hexString(const uint8_t* byteArray, const LengthType& SIZE){ string final_str("\0", SIZE*2); for (LengthType i(0); i > 4]; i+= static_cast(2); } return (final_str); }


535. 2016-10-10 21:35:56 ACMer Comments on PPAP in C++ and Javascript for Beginner:
to make it stand out. 😛


536. 2016-10-10 21:27:08 Stuardo Comments on PPAP in C++ and Javascript for Beginner:
WHY U NAME FUNCTIONS UPPERCASE??


537. 2016-10-08 17:18:22 ACMer Comments on The Childhood Memory - Subor Famicom Clone SB-486D (Xiao Ba Wang):
Have just fixed the broken Images.


538. 2016-10-08 16:56:42 ACMer Comments on The Childhood Memory - Subor Famicom Clone SB-486D (Xiao Ba Wang):
I sold mine on ebay a few months ago. You could try aliexpress


539. 2016-10-08 14:52:25 Jesse Comments on The Childhood Memory - Subor Famicom Clone SB-486D (Xiao Ba Wang):
I know this thread is outrageously old but I just bought a SUBOR486 and I'm interested in getting some of these carts that feature BASIC and whatnot. Do you have any advice for finding any of these? Cheers, Jesse


540. 2016-10-04 09:41:16 ACMer Comments on How to Disable Onboard Graphics Card?:
I know. you could either (1) use a desktop (2) raise a support ticket to your games


541. 2016-10-04 09:38:55 AHMED ALI Comments on How to Disable Onboard Graphics Card?:
It works fine if I enable the Intel ,but bothers me with games and applications that looks at the Intel card as the only card there This double card thing sucks


542. 2016-10-04 09:02:31 ACMer Comments on How to Disable Onboard Graphics Card?:
maybe your nvidia is damaged?


543. 2016-10-04 08:59:09 Ahmed Comments on How to Disable Onboard Graphics Card?:
the nvidia control panel doesn't even open if i disabled the Intel graphics card says that I don't have nvidia hardware connected


544. 2016-09-21 22:36:50 ACMer Comments on Bit Manipulation: How to Set All Bits Between i and j in N equal to M?:
Thanks.. typo fixed. I see how you got there. The problem is how to decide the bit at 100. I think it only expands M till the MSB (which should be 1)


545. 2016-09-21 21:34:14 Wenbin Comments on Bit Manipulation: How to Set All Bits Between i and j in N equal to M?:
Probably I misunderstood the description. My understanding is bits from [i, j] would be replaced with value of M. For example, this case, N=111111 (binary), M=0, i=1, j=2. I think the result should be 57 (111001), but the program gave 61 (111101). BTW: this line in original article needs to be updated (it should not be i << j): int left = max - ((i << j) - 1);


546. 2016-09-21 21:16:44 ACMer Comments on Bit Manipulation: How to Set All Bits Between i and j in N equal to M?:
No, it is "int left = max - ((1


547. 2016-09-21 21:04:50 Wenbin Comments on Bit Manipulation: How to Set All Bits Between i and j in N equal to M?:
Shouldn't it be: int left = max - ((1 << (j + 1)) - 1);


548. 2016-09-21 08:42:02 asimonassi Comments on Fast Integer Log10:
The default compiler that ships with Visual studio 2015 professional.


549. 2016-09-21 08:37:16 ACMer Comments on Fast Integer Log10:
Which compiler are you using?


550. 2016-09-21 08:36:21 ACMer Comments on Fast Integer Log10:
Binary Search is only good for large N, for small N, it is faster without if-checks.


Newer Comments - Older Comments

–EOF (The Ultimate Computing & Technology Blog) —

46 words

The Permanent URL is: List of Comments