Search Results

Search: Posts Made By: trapeze
Forum: Programming 03-19-2008
1,322
Posted By trapeze
int abc(int *sum, int *diff) { int a=2,...
int abc(int *sum, int *diff)
{
int a=2, b=1;
*sum = a+b;
*diff = a-b;

return 0;
}


int main()
{
int sum, diff;

abc(&sum,&diff);

return 0;
}

voila :o
Forum: Programming 03-19-2008
1,322
Posted By trapeze
quicky but needy question....
int abc()
{
int a=2, b=1, sum, diff;
sum = a+b;
diff = a-b;


}


int main()
{
int sum, diff;

abc();

...
...
...
Forum: IP Networking 02-02-2008
33,208
Posted By trapeze
i see... 32 bit is for ip , and 16 bit is for...
i see... 32 bit is for ip , and 16 bit is for port. one quicky question: ip address consists of 2 parts, one is network address, the other is host address. since unix.com is at 81.17.242.186,...
Forum: IP Networking 02-01-2008
33,208
Posted By trapeze
thanks folks. do you have an esay quick real...
thanks folks.

do you have an esay quick real example of what 32-bit(and 16-bit) data are like ? :confused:
Forum: IP Networking 02-01-2008
33,208
Posted By trapeze
What does 'AF' of AF_INET stand for ?
as title. and how is it different from PF_INET ?

also, any one knows sin_family , sin_port , sin_addr ..etc ? why are they called 'sin' ?

finally, htons() host to network short , htonl() host...
14,013
Posted By trapeze
?
thanks...it still gives dong dong sound...not like sharp beep beep sound...maybe it's related to my laptop's(i'm using laptop to get connected to remote server) or the server's terminal settings.....
14,013
Posted By trapeze
thanks
thanks... it worked. however, some questions. :confused:

1. i tried 8 and 6 instead of 7 but did not work. why ? what's magical about this 7 ? lucky 7 ?

2. (int argc, char...
14,013
Posted By trapeze
How to make sound using C under UNIX
i'm programming using C under UNIX. i wonder to how make sound using C ? any sound like "beep" would be fine. thx. :confused:
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 09:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy