Click here to Skip to main content
14,327,955 members

Articles by Eric Z (Jing) (Technical Blogs: 9, Tip/Tricks: 2)

Technical Blogs: 9, Tip/Tricks: 2

RSS Feed
No articles have been posted.

Average blogs rating: 4.72

C / C++ Language
C++ 11
Posted: 16 Aug 2014   Updated: 16 Aug 2014   Views: 16,770   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Understand std::atomic::compare_exchange_weak() in C++11
General
Posted: 25 Dec 2013   Updated: 20 Feb 2014   Views: 8,290   Rating: 4.89/5    Votes: 4   Popularity: 2.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Sign Extension of C++ Pointer: The cause of NIC’s failure to send packets
Posted: 13 Sep 2015   Updated: 13 Sep 2015   Views: 10,431   Rating: 4.53/5    Votes: 9   Popularity: 4.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Justify your use of "friend" in C++
Posted: 29 Aug 2016   Updated: 3 Sep 2016   Views: 8,270   Rating: 4.67/5    Votes: 2   Popularity: 0.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
How to create many-to-one mapping in C
C++ / CLI
General
Posted: 25 Dec 2013   Updated: 17 Oct 2017   Views: 12,190   Rating: 4.91/5    Votes: 18   Popularity: 6.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 0
I list various array-and-pointer-problems I have heard or encountered.
Algorithms & Recipes
Algorithms
Posted: 29 Aug 2015   Updated: 29 Aug 2015   Views: 8,980   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
The traditional way to solve the ZigZag Conversion problem is to either build a 2d table or find a pattern among the index of the letters on the same row. There is also a beautiful solution which builds on top of Breadth First Search. Continue reading..
General
Posted: 16 Feb 2015   Updated: 16 Feb 2015   Views: 7,170   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Evaluation order matters!
Threads, Processes & IPC
General
Posted: 27 Sep 2016   Updated: 27 Sep 2016   Views: 8,670   Rating: 4.08/5    Votes: 8   Popularity: 3.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Deadlock caused by Boost shared_ptr
Uncategorised Technical Blogs
General
Posted: 26 Dec 2013   Updated: 26 Dec 2013   Views: 5,750   Rating: 4.40/5    Votes: 3   Popularity: 2.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
(a |= b) Is Not Equal to (a = a | b) ?

Average tips rating: 4.08

C / C++ Language
General
Posted: 25 Dec 2013   Updated: 2 Oct 2016   Views: 23,000   Rating: 3.15/5    Votes: 9   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
This tip introduces struct hack and compares it with several implementation alternatives.
STL
General
Posted: 3 Nov 2016   Updated: 3 Nov 2016   Views: 8,781   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
There is an efficient way provided by std::map to solve a common programming pattern ("query-and-insert-if-nonexistent")
No reference articles have been posted.
No projects have been posted.

Eric Z (Jing)
Technical Lead National Instruments
China China
Senior software engineer at National Instruments, to implement various Ethernet-based industrial protocols, e.g., EtherCAT. Favorite languages are C/C++ and Python. For fun, I like watching films (sci-fi, motion), walking, and various reading.