Search:

Type: Posts; User: learn

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,070

    [Newbie] C++ call by reference question

    Hello!

    I have typedefs like the following:


    typedef std::set<std::string>TBookKey;
    typedef std::vector<bookObjs>TBookValues;
    typedef std::map<bookKey, bookValues> TBookMap;
  2. Replies
    2
    Views
    1,826

    Got it! Thank you~

    Got it! Thank you~
  3. Replies
    2
    Views
    1,826

    memory leak and process terminated

    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...
  4. I think the exact difficulty is being asked to...

    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.
  5. Hi Mike, Thank you very much for the...

    Hi Mike,
    Thank you very much for the information and explanation! It's perfect!
  6. [Question] Is there a Linux system call to get number of days for a given month?

    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...
  7. Replies
    4
    Views
    2,382

    Got it. Thanks!

    Got it. Thanks!
  8. Replies
    4
    Views
    2,382

    Never mind. :-) %U: Week number with the first...

    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.
  9. Replies
    4
    Views
    2,382

    week number definition for Linux ?

    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
    ...
  10. Replies
    5
    Views
    4,094

    Thank you so much for providing the information! ...

    Thank you so much for providing the information!
    I will try and find out which may match the style.
  11. Replies
    5
    Views
    4,094

    Code formatter for indentation, 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...
  12. Thread: class definition

    by learn
    Replies
    1
    Views
    966

    class definition

    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...
  13. Hi MK27, Thank you very much for your help. ...

    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!
  14. implemenation of "df" command to find out free disk space information

    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...
  15. Replies
    2
    Views
    2,265

    Many thanks. :-)

    Many thanks. :-)
  16. Replies
    2
    Views
    2,265

    [question]unsigned number with negative value?

    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...
Results 1 to 16 of 17