Forum: C Mar 25th, 2007 |
| Replies: 2 Views: 6,196 argv[ 0] is the program name. You can see the contents by using this line
printf( "%s", argv[ 0 ] );
To get the first argument, and convert it to an integer, try this code.
#include... |
Forum: C Mar 15th, 2007 |
| Replies: 8 Views: 3,932 What is wingoze? Whatever it is, it may be an Operating system, and there should be a socket API for it. Look that up. |
Forum: C Nov 12th, 2006 |
| Replies: 4 Views: 2,531 Why are you using the strcpy function? These are C++ strings. Use the = operator.
thisRecord.fieldName =next |
Forum: C Nov 1st, 2006 |
| Replies: 13 Views: 4,853 This (http://irc.essex.ac.uk/www.iota-six.co.uk/c/f3_passing_arrays_to_functions.asp)should serve as a good example. As the arrays are passed by reference, the modifications you make inside the... |
Forum: C Sep 16th, 2006 |
| Replies: 1 Views: 670 Change the registry key value for
HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper |
Forum: C Sep 7th, 2006 |
| Replies: 8 Views: 1,408 Please post your question outside code tags. I corrected your first two posts, do this one yourself, or I will delete this thread. Since it has been only 2 minutes since your post, you can edit it... |
Forum: C Sep 6th, 2006 |
| Replies: 3 Views: 3,950 Because if you are allowed to do so, creating one variable of that type will go on creating nested variables inside it and eat all available memory. |
Forum: C Aug 30th, 2006 |
| Replies: 5 Views: 9,064 Try int a = b - -c; Stop the course which asks silly questions like this. |
Forum: C Aug 27th, 2006 |
| Replies: 3 Views: 4,328 Look for the API called FindFirstFile. |
Forum: C Aug 8th, 2006 |
| Replies: 6 Views: 1,597 do
{
flag=arrange(array,num);
}while( flag==-1);
This is the only place where flag is being used. So isn't it simple? flag is used to store the result of arrange and arrange is... |
Forum: C May 18th, 2006 |
| Replies: 2 Views: 1,073 program a client to make a connection request from a single server, and display the server name or IP if the connection is granted, and logout.
Use it to make connection requests from each computer... |