Search:

Type: Posts; User: Bargi

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds; generated 24 minute(s) ago.

  1. Understanding pthread_cond_wait() and pthread_cond_signal()

    Hi all

    I was trying to understand pthread cond and signal api functionality. So from online tutorials, I found that when a thread is want to wait for any condition to satisfy, it will go into wait...
  2. Replies
    4
    Views
    1,790

    Hi I change the code, but getting issue when...

    Hi I change the code, but getting issue when initializing in constructor.

    The code is crashing. I have taken pointer.

    But for every new object its intializing to 0 and program is crashing.

    ...
  3. Replies
    4
    Views
    1,790

    Ya. I got that point. In that case, if I create...

    Ya. I got that point. In that case, if I create for object type B, then instead of having count of 1, it will show count of first type object (say first type object is type A).
  4. Replies
    4
    Views
    1,790

    Suggestion Smart Pointer Class Implementation

    Hi All

    I have created a smart pointer implementation. Below is the code. Could you guys have a look and suggest that approach is correct or not.
    One point I want to mention that, for count I...
  5. Replies
    9
    Views
    1,088

    Thanks a lot Laserlight...:)

    Thanks a lot Laserlight...:)
  6. Replies
    9
    Views
    1,088

    So it means, when we inherit, protected...

    So it means, when we inherit, protected constructor was by default get to be accessed from derived class constructor. But if tried to create a new object, in derived class, it is same as creating new...
  7. Replies
    9
    Views
    1,088

    But what I have read is that,...

    But what I have read is that, constructor,destructor,assignment operator and copy constructor do not inherit to sub classes. Isn't it contradict?
  8. Replies
    9
    Views
    1,088

    Then how, A() constructor get called when B...

    Then how, A() constructor get called when B object was created. It was too protected in class A, and was called from B class constructor?
  9. Replies
    9
    Views
    1,088

    Inheritance Related Question

    Hi all

    I was thinking on the behavior of inheritance. So I have declared protected constructor in base class. In derived class, I inherited base class as private, I have created a function which...
  10. Difference between using Inheritance and Templates

    Hi

    I have read about inheritance and templates. What I have understood is that,both of them provide reusabilty of code, then what is the basic difference between them and which one should be used...
  11. Replies
    6
    Views
    2,186

    When to use private Inheritance?

    Hi all

    I am learning about the private inheritance and found a little bit confusing.
    In all other type of inheritance we can reuse the code in derived class but not in case of private( unless we...
  12. Replies
    6
    Views
    17,207

    How can I make abc to give permission to bargi...

    How can I make abc to give permission to bargi for write permission?
  13. Replies
    6
    Views
    17,207

    copying file from one user directory to another

    Hi,

    I am writing a shell script for copying file from one user account directory to another.
    The code is:


    #!/bin/sh
    src_path=/home/bargi
    tgt_path=/home/abc
    cp ${src_path}/a* ${tgt_path}/
  14. Replies
    7
    Views
    1,918

    Edeco, Actually I have to generate random with...

    Edeco,
    Actually I have to generate random with unique key.
    Currentky I am using sytem time with date,month,year,hr,min,sec,picosec.
    With this type of seed I always got the unique number.
    That why...
  15. Replies
    7
    Views
    1,918

    Adak , Is that you mean that, if I divide random...

    Adak , Is that you mean that, if I divide random no. with 100000,it will give me always 6 digit no. and more than that.
    Since currenlty I am getting random no. of range 5,6,7,8,9,10,11 digit number....
  16. Replies
    7
    Views
    1,918

    Need help in recursion program

    Hi ,
    I am facing a problem in using recursion.
    I am creating random number of 6 digit for some purpose.
    The check I have to made is that the generated random number should be of 6 digit,if it is...
  17. Replies
    6
    Views
    2,428

    Thanks For help ...... Its really solve the...

    Thanks For help ......
    Its really solve the problem
  18. Replies
    6
    Views
    2,428

    Help regarding random number

    Hi ,

    I am working in a problem in which I have to print elements in array using random number logic.

    The logic is that the elements of character should be printed randomly from the array. I...
  19. Replies
    7
    Views
    5,425

    thanks laser for your help....... I want some...

    thanks laser for your help.......

    I want some help from regarding C programming....

    Actually I have just started working on C specific project and there are lots of pointer memory intialization...
  20. Replies
    7
    Views
    5,425

    Thanks for help.... It mean that I have to...

    Thanks for help....

    It mean that I have to declare the size of str....



    But it printing something this:
  21. Replies
    7
    Views
    5,425

    strcat not working

    Hi ,

    I have a problem with strcat...
    The code is:



    char *str="/home/bargi/";

    strcat(str,"temp.txt");
  22. Replies
    4
    Views
    2,039

    Increased the size but result is same....?? ...

    Increased the size but result is same....??
    Should I write single character and iterate whole string??
  23. Replies
    4
    Views
    2,039

    Still not working... Giving segmentation fault

    Still not working...

    Giving segmentation fault
  24. Replies
    4
    Views
    2,039

    Problem in writing string to File

    Hi ,

    I am writing a code for writing a whole string to file,but it is running in infinte loop ??
    Means the final string is written infinte times.

    The code is:
  25. Replies
    4
    Views
    1,701

    yes ,I can do that...... but string can increase...

    yes ,I can do that......
    but string can increase later...
Results 1 to 25 of 113
Page 1 of 5 1 2 3 4