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...
Type: Posts; User: taurus
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...
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();
ah figured it out, its fabs()
Why when i do this:
printf("%f\n", abs(2.0-3.0));
do I get 0.00000
shouldnt I be getting 1.0000?
ah of course, dont know why it didnt complain before
Thanks
when i do this:
for(s=0; s<full; s++)
{
if((int)abs((ident[s].top/ident[s].bottom) - (tempIDTop/tempIDBottom)) < value);
{
value =...
false alarm, found an example:
int n = mkdir("./test", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
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.
Could I see an example of the use of the function mkdir in C
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...
1) I have this:
struct data
{
int numOfObjects;
int positions[40];
};
typedef struct data info;
I have a variable defined as: info stuff
How can i return a structure, I have tried this:
#include <stdio.h>
struct list
{
int one, two=0;
};
typedef struct list item;
I read about statistical pattern recognition but not sure how to perform it to compare images
i mean from right to left
so
1 2 3 4
^
should become
1 2 4
given 3 is deleted
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;...
what about this:
....
int twoD[height][width];
//DO SOMETHING
func2(twoD, height, width);
....
void func2(int array[][], height, width)
so i could still do with a simple basic idea to compare two objects?
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;
Yea I know that but not sure how with 2D arrays
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:
I have this:
#include "func.h"
int main()
{
char array[5] = "hello";
func(array);
}
COuld you explain how I can do it then Yann please?
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);...
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)
{
I know where its happening, its by qsort(), something wrong with the way I declared it but not sure what.