Search:

Type: Posts; User: taurus

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: broadcast audio

    by taurus
    Replies
    0
    Views
    1,585

    broadcast audio

    I am planning on developing a small lite weight application for windows to start with. It is to broadcast anything coming out the soundcard OR anything from winamp/wmp/vnc/etc. It should be simple...
  2. Replies
    1
    Views
    2,255

    process creation in unix

    How would I write a program that determines how many processes are created when a certain other program is executed such as this:



    int main ()
    {
    fork ();
    fork ();
    fork();
    fork();
  3. Thread: abs of float

    by taurus
    Replies
    1
    Views
    1,160

    ah figured it out, its fabs()

    ah figured it out, its fabs()
  4. Thread: abs of float

    by taurus
    Replies
    1
    Views
    1,160

    abs of float

    Why when i do this:

    printf("%f\n", abs(2.0-3.0));

    do I get 0.00000
    shouldnt I be getting 1.0000?
  5. Replies
    3
    Views
    1,063

    ah of course, dont know why it didnt complain...

    ah of course, dont know why it didnt complain before
    Thanks
  6. Replies
    3
    Views
    1,063

    Weird if/else error

    when i do this:


    for(s=0; s<full; s++)
    {
    if((int)abs((ident[s].top/ident[s].bottom) - (tempIDTop/tempIDBottom)) < value);
    {
    value =...
  7. Replies
    4
    Views
    1,444

    false alarm, found an example: int n =...

    false alarm, found an example:
    int n = mkdir("./test", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
  8. Replies
    4
    Views
    1,444

    Could I see an example of the use of the function...

    Could I see an example of the use of the function mkdir in C.
    I have tried:
    mkdir (const char *directory, mode_t mode);

    But not really sure, doesnt work.
  9. Replies
    4
    Views
    1,444

    Could I see an example of the use of the function...

    Could I see an example of the use of the function mkdir in C
  10. Replies
    4
    Views
    1,444

    Creating a folder

    Under Linux, how do i create a folder if it is not already created?

    I have this:
    sprintf(file_out, "./folder/%s", sorted[j]);

    where folder is a folder, but if the folder does not exist the...
  11. Replies
    1
    Views
    9,981

    default values in struct

    1) I have this:


    struct data
    {
    int numOfObjects;
    int positions[40];
    };
    typedef struct data info;
    I have a variable defined as: info stuff
  12. Thread: Return struct

    by taurus
    Replies
    2
    Views
    1,592

    Return struct

    How can i return a structure, I have tried this:


    #include <stdio.h>

    struct list
    {
    int one, two=0;
    };
    typedef struct list item;
  13. Thread: Object matching

    by taurus
    Replies
    21
    Views
    5,598

    I read about statistical pattern recognition but...

    I read about statistical pattern recognition but not sure how to perform it to compare images
  14. Replies
    4
    Views
    2,053

    i mean from right to left so 1 2 3 4 ^...

    i mean from right to left
    so


    1 2 3 4
    ^
    should become
    1 2 4

    given 3 is deleted
  15. Replies
    4
    Views
    2,053

    shifting 1D array items down

    I am trying the following but I think its not getting to the last, item or something, can someone have a look and see if im right for the shifting of the array (red bit):



    int smallItems=0;...
  16. Replies
    10
    Views
    4,383

    what about this: .... int...

    what about this:


    ....
    int twoD[height][width];
    //DO SOMETHING
    func2(twoD, height, width);
    ....

    void func2(int array[][], height, width)
  17. Thread: Object matching

    by taurus
    Replies
    21
    Views
    5,598

    so i could still do with a simple basic idea to...

    so i could still do with a simple basic idea to compare two objects?
  18. Replies
    10
    Views
    4,383

    I tried this basic one: void func(char...

    I tried this basic one:


    void func(char array[])
    {
    char name[255];
    strncpy(name, array, 255);
    printf("%s\n", name);
    int twoD[5][5];
    int i, j;
  19. Replies
    10
    Views
    4,383

    Yea I know that but not sure how with 2D arrays

    Yea I know that but not sure how with 2D arrays
  20. Replies
    10
    Views
    4,383

    Passing 2D arrays between functions

    Im a bit confused how I would do the following:
    I have the following functions:


    void bkSub(char arrayIn[])
    void blackNWhite()
    void cC()


    Now this is what the flow I am looking for:
  21. Replies
    12
    Views
    1,750

    Passing char array to fuction

    I have this:


    #include "func.h"

    int main()
    {
    char array[5] = "hello";
    func(array);
    }
  22. Thread: Object matching

    by taurus
    Replies
    21
    Views
    5,598

    COuld you explain how I can do it then Yann...

    COuld you explain how I can do it then Yann please?
  23. Replies
    18
    Views
    1,806

    char sorted[13][13]; int numOfItems=0; ...

    char sorted[13][13];
    int numOfItems=0;
    while((entry = readdir(mydir)))
    {
    strcpy(name, entry->d_name);
    if(strlen(name) > 5)
    {
    strncpy(&sorted[numOfItems][0], name, 13);...
  24. Replies
    18
    Views
    1,806

    I dont get it: #include #include...

    I dont get it:


    #include <stdio.h>
    #include <string.h>
    #include <sys/types.h>
    #include <dirent.h>

    int compare(const void *a, const void *b)
    {
  25. Replies
    18
    Views
    1,806

    I know where its happening, its by qsort(),...

    I know where its happening, its by qsort(), something wrong with the way I declared it but not sure what.
Results 1 to 25 of 275
Page 1 of 11 1 2 3 4