Search:

Type: Posts; User: midnight

Search: Search took 0.01 seconds.

  1. Thread: Ctrl+d

    by midnight
    Replies
    4
    Views
    3,149

    My program works, and I use EOF, but the problem...

    My program works, and I use EOF, but the problem is, that I have to catch a signal, not char, smth like CTRL+Z in Windows.
  2. Thread: Ctrl+d

    by midnight
    Replies
    4
    Views
    3,149

    Ctrl+d

    Hello, guys!

    I have a question for you, how could I implement a catch of CTRL+D? I have a program, which reads strings untill is pressed CTRL+D, and I don't wanna have ^D in a console :(. After I...
  3. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    struct Data {
    char *name[50];

    } ;

    struct Data *the_array = NULL;
    int num_elements = 0; // Keeps track of the number of...
  4. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    I'd like to, but the program must be written in...

    I'd like to, but the program must be written in C. I have already it in C++, it works perfectly, but I don't know how it to do in C. This is the problem :(
  5. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    struct Data {
    char *name[50];

    } ;

    struct Data *the_array = NULL;
    int num_elements = 0; // Keeps track of the number of...
  6. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    Do you know how could I get the size of...

    Do you know how could I get the size of structure? I need to sort values in it... but i dont know how :(
  7. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    yup, I'll try to implement a dynamic array. thx a...

    yup, I'll try to implement a dynamic array. thx a lot :)
  8. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    Vectors are commonly used instead of arrays,...

    Vectors are commonly used instead of arrays, because they expand automatically when new data is added to them.
  9. Thread: Vector in C

    by midnight
    Replies
    14
    Views
    3,761

    Vector in C

    Hello, guys!
    I'm a begginner with C. And I wonder if there is Vector in C? Or how could I implement it? Need help. pls.
  10. Replies
    1
    Views
    3,605

    Absolute path C

    Hello,

    Do anybody know, how could I get an absolute path? I tried this, but I have strange results...


    #include <stdio.h>
    #include <unistd.h>
    #include <string.h>

    int main(int argc, char...
  11. Replies
    10
    Views
    1,184

    yup, yup, I'm dump :))), it works now :), thanks...

    yup, yup, I'm dump :))), it works now :), thanks RockyMarrone :) thnx a lot :))
  12. Replies
    10
    Views
    1,184

    oops, rmdir

    oops, rmdir
  13. Replies
    10
    Views
    1,184

    i work on Windows, and I tried this code if(...

    i work on Windows, and I tried this code


    if( remove( argv[1] ) == -1 )
    printf( "ERROR. " );

    But seems, that it doesn't work, or I do smth wrong...
  14. Replies
    10
    Views
    1,184

    I actually tried, but nothing usable :(

    I actually tried, but nothing usable :(
  15. Replies
    10
    Views
    1,184

    int main(int argc, char* argv[]) { ...

    int main(int argc, char* argv[])
    {

    if (argc == 2 && (strcmp(argv[1], "-h")==0)){
    callHelp();
    }

    else if (argc ==2 && (strcmp(argv[1],...
  16. Replies
    10
    Views
    1,184

    Directories in C

    Hello, everyone,
    I'm new in C prog-g, and I have a task, to make a directory(mkdir), but I need to check if a directory with the same name already exists... Thnx a lot.
  17. Replies
    1
    Views
    1,053

    need help, How do I Get Dir name?

    Hello, everyone,

    I am new with C, and I need to get a dir name :(, I need to implement LS command (Shell). Plz, I need help. Thx a lot.
Results 1 to 17 of 17