Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Rajesh1978

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    546

    Re: stat() system call

    I even tried with set. Not much difference i see.
    In all the cases i see stat is faster.
    May be it is chacheing and using the the entries from the cache.

    also the operation is happening in a...
  2. Replies
    14
    Views
    546

    Re: stat() system call

    unordered set is there in c++ 11. As I am using older gcc compiler I do not have that.
    One more thing is there any system call in linux which notifies the changes in a directory ?
  3. Replies
    14
    Views
    546

    Re: stat() system call

    I tested with below scenario.
    1. I put 15K files on a directory
    2. used stat command to check the existance of some 5 files
    Time taken 2 miliseconds
    3. Did same thing using opendir. Loaded all...
  4. Replies
    14
    Views
    546

    Re: stat() system call

    i am accessing the location every 1 sec. Some time 3-4 files of size 800k is getting added per 1sec.

    I am getting delay once the number of files are more in the path
  5. Replies
    14
    Views
    546

    Re: stat() system call

    I want to check some 5 files one at a time.
    New files get added 2/min in that path.
  6. Replies
    14
    Views
    546

    stat() system call

    Hi,
    I am using stat command to check the existence of a file in a directory.

    The directory is having some 10K files. I feel the stat() call is expensive as i do not need the structure to be...
  7. Replies
    2
    Views
    427

    Re: Multi threaded insertion into STL Map

    Yes without synchronization there will be lot of problem.

    Thankss
  8. Replies
    2
    Views
    427

    Multi threaded insertion into STL Map

    Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
  9. Re: calling mem ber function by object pointer

    Thanks u all
  10. calling mem ber function by object pointer

    Hi,
    I have the following piece of code.


    #include<iostream>
    using namespace std;

    class Test
    {
    public:
  11. Replies
    6
    Views
    539

    Re: Reference and const pointer

    Thanks.
    So is it wrong to say Reference is constant pointer?
  12. Replies
    6
    Views
    539

    Reference and const pointer

    Hi,
    what is the advantage of using reference over constant pointer?
    Can they be used interchangeably?
  13. Re: [RESOLVED] Implicit default ctor - what is it for?

    Thanks laser.
    Now it seems to be correctly resolved thread
  14. Re: Implicit default ctor - what is it for?

    I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
    Think that I have all the POD attributes then what is the use?
    Also...
  15. Replies
    11
    Views
    1,288

    Re: virtual destructor

    If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
  16. Replies
    4
    Views
    461

    Re: Using Comparator in Set

    Thanks.
  17. Replies
    4
    Views
    461

    Re: Using Comparator in Set

    Thanks.
    I got it now.

    while testing this i got one more confusion.

    if i make the comp as below



    class comp
  18. Replies
    4
    Views
    461

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  19. Replies
    3
    Views
    567

    Re: 2 Argument Conversion Function

    This i did not get from any book or tutorial;
    I thought logically it should work.

    In the first case when Demo d=100 ( constructor with one argument is called)
    It is same as Demo d(100) ->the 1...
  20. Replies
    3
    Views
    567

    2 Argument Conversion Function

    i have used single argument conversion function which gets called in below scenario.



    #include<iostream>
    using namespace std;

    class Demo
    {
    public:
  21. Replies
    9
    Views
    1,373

    Re: Final Class in c++

    There is not keyword like "final" is present in c++
  22. Replies
    9
    Views
    1,373

    Re: Final Class in c++

    One more doubt. why the most derived class calls the virtual Base class directly
  23. Replies
    9
    Views
    1,373

    Re: Final Class in c++

    thanx for answers
  24. Replies
    9
    Views
    1,373

    Final Class in c++

    i got this program is in http://www.parashift.com/c++-faq-lite/final-classes.html

    the code is


    #include <iostream>
    #include <memory>
    using namespace std;

    class Fred;
  25. Replies
    6
    Views
    822

    size of Polymorphic class

    Hi,
    I did know that the size of a class is increased by 4 bytes (32bit compiler) if the class has a virtual function.
    I wrote one program and it is giving strange output.
    I am using linux g++...
Results 1 to 25 of 233
Page 1 of 10 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center