Well the computer you're connecting to is going to have to be running a server of some sort. Also, your going to need the port that the server is listening on. I would read up on socket programming...
Type: Posts; User: broncoslb
Well the computer you're connecting to is going to have to be running a server of some sort. Also, your going to need the port that the server is listening on. I would read up on socket programming...
Do you know the maximum numbers that are in the sequence. If you do use an array and a loop.
Also, is this being read from keyboard input or file input?
-Dustin
C tutorials
Well the easiest way would be to save it to a buffer then write the buffer to the file, as the first responder said. But if you really wanted you can look into file redirects using pipe() and dup2()....
If you are trying to count the number of words in each line try this:
1. read in each line into a buffer using fgets
2. use strtok on the buffer using a while loop and have a counter in the loop
Why don't you just store the value after tax is applied into a float?
-Dustin
C tutorials
You might want to take a look at fdopen(). This allows you to create a stream from your FILE*. Then you can use fread() and fwrite() which is sometimes easier.
-Dustin...
When you cast a variable you are changing the type. Here is a good site to explain things: http://www.cplusplus.com/doc/tutorial/typecasting.html
-Dustin
http://www.theCprogrammer.com
In order to make sure you have 5 valid numbers try something like this:
int valid;
for (i=0; i<SIZE; i++){
printf("Enter an integer (50-100):\n");
valid =...
When I designed my shell I read in the command and stored the tokens in an array. Then I went through the array to check where the pipes and redirects were. As I went along with the forks() and...
The best that I have ever read was Advanced Programming in the Unix Environment by W. Richard Stevens
-Dustin
www.theCprogrammer.com