Hi,
I want to send Selected data.I wrote this program but it is not working.
while(1)
{
gets(msg);
if(strncmp(msg,"end",3)==0)
MPI_Send(msg,10,MPI_CHAR,0,tag,MPI_COMM_WORLD);
else
printf("%s",msg);
MPI_Recv(recvmsg,10,MPI_CHAR,0,tag,MPI_COMM_WORLD,&status);
if(strcmp(msg,"") != 0)
create(recvmsg,022);
}
This program should work like...if user input "end" then its send data
otherwise it should print the input string. But it is neither writing input
string nor sending the string.
it is Stuck some where...
Please help me in this regard
Badly need help
thanx
Imran
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|