Hello!
I have typedefs like the following:
typedef std::set<std::string>TBookKey;
typedef std::vector<bookObjs>TBookValues;
typedef std::map<bookKey, bookValues> TBookMap;
Type: Posts; User: learn
Hello!
I have typedefs like the following:
typedef std::set<std::string>TBookKey;
typedef std::vector<bookObjs>TBookValues;
typedef std::map<bookKey, bookValues> TBookMap;
Got it! Thank you~
Hi all,
I have a question about process exit condition due to memory leak.
If no system memory available caused by memory leak and that lead to processes termination, what will be the exit code...
I think the exact difficulty is being asked to replace the simple solution as you described above with a "Linux system call". And, such a "Linux system call" does not actually exist.
Hi Mike,
Thank you very much for the information and explanation! It's perfect!
Hello guys,
I am not asking how to write a C/C++ program to get total number of days in a given month. :redface:
I was asked to use the Linux system call to get the number. The only thing I...
Got it. Thanks!
Never mind. :-)
%U: Week number with the first Sunday as the first day of week one (00-53), so the return value 1 actually means week #2.
I think that is the expected week number to be used.
Hi all,
I have a question about how week number should be defined/counted (in Linux) in terms of week number of a year and week number of a month.
For instance, 2011-01-07:
January 2011
...
Thank you so much for providing the information!
I will try and find out which may match the style.
Hi,
I am trying to format a C++ code base to conform to a propitiatory coding style, such as how braces are placed, indentations, white spaces, etc. I tried Eclipse CDT formatter, but it would...
Hi,
I use C or java mostly, but not C++. , Recently, I must start to write c++ code and have a question about Class definition.
I have seen Class are defined in either a header (.h) or an...
Hi MK27,
Thank you very much for your help. The information are very clear, informative, and to-the-point. Especially the illustration/analysis from the man page and your personal view. Thanks!
Hi everyone,
df command can help to print out various disk space information for each file system and its underlying implementation relies on the statfs function.
I do not know why, in its...
Many thanks. :-)
Hi everyone,
I am confused about the definition of the unsigned. Could anyone please help to explain the result of running a simple test code. As below.
void main()
{
unsigned long...