I now this is a C++ forum but if you want ijava can do it right off the box using the java.lang.Robot class methods. :D
Type: Posts; User: pedro_velho
I now this is a C++ forum but if you want ijava can do it right off the box using the java.lang.Robot class methods. :D
sorry for the last reply the anwser is here, (i have some dumbness while typing tab key)?:
//your way
while(!feof(fp))
{
c = fgetc(fp);
Probably you are reading an invalid character before living the while loop try this:
while(!feof(fp))
{
c = fgetc(fp);
putc(c, sfp);
Hey bud here are some tips:
in function void adding
This is a bad idea, it must be just a string, and it is a matrix of chars.
//your code...
There is a real tuff question, I am programming using Gcc and pthreads. I wanna know what will happen if I send a pthread_cond_broadcast before some of my threads enter the pthread_cond_wait for wait...
That helps me a lot...
I have read that is unsafe read from stdin like I do:
[code]
char buffer[40];
fscanf(stdin, "%s", buffer);
[\code]
Anyone know a safe way to do this? I am a noob linux user.