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.20 seconds.

  1. Replies
    0
    Views
    562

    url-pattern in web.xml

    Hi,
    I am very new to servlet. I am trying to understand few things

    Can a <url-pattern> have *.do kind of string.
    like <url-pattern>*.do </url-pattern>

    I do not require struts to mix up with...
  2. Re: Getting return value without using return from a function

    Thanks it worked without any warning..
    Adopted the above method of defining by 2kaud.
  3. Re: Getting return value without using return from a function

    Yes that is the problem I am facing now..
    I can not have duplicate code also.

    One way i am thinking to have a class member and use it ( I have only posted the function.. It is a class method)
  4. Getting return value without using return from a function

    Hi,
    i have one existing function say



    int fun(int arg1, double arg2=0)
    {
    bool error=false;
    ....
    ....
  5. Replies
    7
    Views
    733

    Re: Reusing the code

    Thanks all..
    So if in a class there are two variables like


    class MyClass{
    int val;
    bool someAttribute;
    };
  6. Replies
    7
    Views
    733

    Reusing the code

    Hi,
    I have below piece of code


    class Derive1
    {
    public:
    Derive1():val(0){}
    Derive1& operator ++()
    {
  7. Replies
    1
    Views
    536

    confused with code snippet

    Hi,
    I see a piece of code and trying to understand. I think it is c++11 code.



    auto post = [](const string & out,const bool flag){
    if(flag)
    cout<<out<<endl;

    };
  8. SocketImpl connect is not throwing exception

    Hi,
    I am very new to java I am trying to execute one piece of code which should fail and throw exception. But it is not trowing any exception.
    please correct me if i am wrong.



    import...
  9. Replies
    2
    Views
    519

    Re: Type of iterators

    Yes that is correct. Random iterator is able to do the functionality of all other iterators.
    http://www.cplusplus.com/reference/iterator/
  10. Replies
    2
    Views
    519

    Type of iterators

    Hi,
    Among the 5 iterators (input,output, random, bidirecational, forward and backward) which is associated with vectors?

    What i think is vector is associated with all the above iterators.
  11. Replies
    4
    Views
    975

    Re: copy and unlink

    Thanks all. I got it now
  12. Replies
    4
    Views
    975

    Re: copy and unlink

    across drives mean?

    in linux i saw a code where i see copy and unlink to /mnt/mypath instead move

    thats why the doubt
  13. Replies
    4
    Views
    975

    copy and unlink

    i have one doubt is it good to move the file from one path to other path.
    Or it is good to copy the file and unlink.
  14. Replies
    10
    Views
    1,920

    Re: Handing more than one exception at a time

    Thanks. Now i undersood
  15. Replies
    10
    Views
    1,920

    Re: Handing more than one exception at a time

    Very good knowledge is being exchanged.
    Thanks to all gurus

    Now my real question is repeated


    I meant the above quoted thing in the beginning.

    question is why two exceptions can not be...
  16. Replies
    10
    Views
    1,920

    Handing more than one exception at a time

    It is advisable not to throw the exception from destructor. Because if exception happens stack unwinding happens. suppose the destructor again throws the exception then on part of first exception...
  17. Replies
    14
    Views
    2,260

    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...
  18. Replies
    14
    Views
    2,260

    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 ?
  19. Replies
    14
    Views
    2,260

    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...
  20. Replies
    14
    Views
    2,260

    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
  21. Replies
    14
    Views
    2,260

    Re: stat() system call

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

    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...
  23. Replies
    2
    Views
    1,100

    Re: Multi threaded insertion into STL Map

    Yes without synchronization there will be lot of problem.

    Thankss
  24. Replies
    2
    Views
    1,100

    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...
  25. Re: calling mem ber function by object pointer

    Thanks u all
Results 1 to 25 of 249
Page 1 of 10 1 2 3 4





Click Here to Expand Forum to Full Width

Featured