Search:

Type: Posts; User: Ph0x

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    12,881

    Thanks a lot. I have fixed some issues. But still...

    Thanks a lot. I have fixed some issues. But still I have vital issue that when I want to send file with choice 3 then write file name, the connection is gone.I mean also I can't send more files .The...
  2. Replies
    2
    Views
    12,881

    multi-threaded file transfer with socket

    I try to make multi-threaded server-client file transfer system in C. There are clients which will send or list or do other choice(in switch case you can see) and a server storing the files and serve...
  3. Replies
    3
    Views
    3,342

    #define _POSIX_C_SOURCE 200809L #define...

    #define _POSIX_C_SOURCE 200809L
    #define _XOPEN_SOURCE 700
    #include <unistd.h>
    #include <dirent.h>
    #include <stdlib.h>
    #include <locale.h>
    #include <string.h>
    #include <ftw.h>
    #include...
  4. Replies
    3
    Views
    3,342

    traversing directories using fork()

    I try to go in folders and read files using fork(). I use file tree walk function to go in the folders recursively. The basic idea is that there will be children number of files and directory in a...
  5. Replies
    1
    Views
    712

    unable to understand guarantee of fork()

    I'm unable to understand whether there is a guarantee about arising after fork(). While studying on chain process and fan process, I'm stuck. If I fork two times, the hierarchy is roughly
    14687...
  6. printing grid with spaces regard to number of digits

    I try to print the grid with spaces regard to digits(units digit, tens digit,hundreds digit etc. ). It prints as expected when entered just one decimal numbers.(one digit numbers) If it is thought...
  7. Replies
    1
    Views
    372

    putting symbols center of board

    I try to put 4 symbols on a user-sized board. Firstly, it works for `n x n` but when I want to convert `m x n` I can't get expected result. It works for some tryings but not for all. For example:...
  8. Replies
    6
    Views
    4,349

    you are the experienced. what's your advice which...

    you are the experienced. what's your advice which one should I use?
  9. Replies
    6
    Views
    4,349

    position of const qualifier

    I generally prefer usage const after type. I mean like int const &a. As far as I read, it makes more sense. But, what about declaration and definition of operator overloading. Which one should be...
  10. Replies
    5
    Views
    2,058

    I can't see where is my wrong about it. Because I...

    I can't see where is my wrong about it. Because I have used like that. Could you improve my wrong?
  11. Replies
    5
    Views
    2,058

    rule of three problem

    Firstly, when I enter 9 as row and 8 as column I get malloc freeing error. Secondly, I get 0 as output I can't see what I enter. I want to write the program because I can reinforce rule of three....
  12. Replies
    2
    Views
    2,039

    month showing as first three letter classes

    I've written a class which name is Month. As taking a number and assinging to month variable works well. But, If I enter first three letter of month, it doesn't work as expected. Is my calling...
  13. Replies
    6
    Views
    789

    I know call by reference and call by value. My...

    I know call by reference and call by value. My question is that swap function has already been invoked by reference. So, why also need sort function by reference ?
  14. Replies
    6
    Views
    789

    Call by reference function and syntax

    The code sorts 3 numbers in ascending order. But, swap function has already been invoked by reference. Why must also sort be invoked by reference ? I'm confused. Secondly, cout << endl, doesn't give...
  15. Replies
    2
    Views
    681

    hey timmy, the codes have been written by me. Do...

    hey timmy, the codes have been written by me. Do you think I'm lying ? Just I'm stuck on first_occurrence to track char by char. i.e. abece.
    function invoked recursively and stop at null character....
  16. Replies
    2
    Views
    681

    explaining logic of two recursive code

    I've written two code recursively one of them find index of first character appearance. Other one is that find index of last character appearance. I've written but I'm confusing. Can someone explain...
  17. Replies
    4
    Views
    4,550

    Dear Nominal Animal, Firstly, you must know that...

    Dear Nominal Animal,
    Firstly, you must know that you are my luminary about programming. I'm studying computer engineering and taking unix system programming course in this term. (I wanted to write...
  18. Replies
    4
    Views
    4,550

    my scheme was wrong in my first post. here is...

    my scheme was wrong in my first post. here is right scheme:

    Every folder should be parent of files. The files are included by the folder.



    14065
  19. Replies
    4
    Views
    4,550

    understand and use of forking by using nftw()

    It counts total number of words in files. (i.e. txt). Now, I want to use multiple fork() to access and read every file. I studied in the last week. Besides, I use global variable to hold number of...
  20. Replies
    7
    Views
    2,821

    thank you Nominal Animal. So so much. I have...

    thank you Nominal Animal. So so much. I have started studying to understand step-by-step. When I got it I will write again. If I stuck, I want to pick your priceless ideas.
  21. Replies
    7
    Views
    2,821

    Can you give an example, because I don't...

    Can you give an example, because I don't understand mentioned logic.
    "where you set the current state (e.g., using an enumeration of possible states and a variable thereof), and depending on the...
  22. Replies
    7
    Views
    2,821

    new code to check for ( ;; ) { ...

    new code to check



    for ( ;; )
    {
    int ch = fgetc(inp1);
    if ( ch == EOF )
    {
    break;
  23. Replies
    7
    Views
    2,821

    thank you for your help. it is my first step, i...

    thank you for your help. it is my first step, i want to learn using fork(), there I want to create children from just one parent , I will explain it a new topic, the second step is after making forks...
  24. Replies
    7
    Views
    2,821

    counting words in files by using nftw()

    I'm trying to read files, count words in the files and go in directories. The problem is how I return numbers of total words and total directories. When it comes to nftw(), I am little confused.
    ...
  25. Replies
    6
    Views
    1,990

    wow. great thank you. I succeed. However, Can I...

    wow. great thank you. I succeed. However, Can I use fork() for every opening file? I mean, Can I make them using fork() for every reading file ? by using ntfw() ?
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4