Forum: C Jun 8th, 2008 |
| Replies: 1 Views: 458 Hi there.
All mail sent through the SMTP server, i need to modify the message being sent through.
I thought of making either a C,bash,perl script to take in the message, modify it and return it to... |
Forum: C Jul 16th, 2007 |
| Replies: 17 Views: 1,919 I repeat.. " It's not good resourcefully if you use this method".. |
Forum: C Jul 16th, 2007 |
| Replies: 13 Views: 4,962 Haha, i thought he ment passing variable arguments.. as you can pass an array as a parameter (using pointers of course), so i thought he ment how do you pass a variable to a function.
Oh well :) |
Forum: C Jul 16th, 2007 |
| Replies: 13 Views: 4,962 1) What's the OP?
2) didn't want to over complicate things for the guy, as he seems to be just starting out in C, giving him a basic understanding of parameter passing would be more beneficial... |
Forum: C Jul 16th, 2007 |
| Replies: 3 Views: 7,267 The above links will help you learn about sockets.
What you're looking to do is..
Create a socket (using socket() ).
Setup destination for this socket, and the port you want to make this... |
Forum: C Jul 16th, 2007 |
| Replies: 13 Views: 4,962 Simply to answer your question.
#include <stdio.h>
int sum;
int main() { |
Forum: C Jul 16th, 2007 |
| Replies: 17 Views: 1,919 You can also use system("PAUSE"), DevC++ puts this in for you automatically, i'm not sure about linux at all since i don't need to use it on Linux :)
It just outputs "Press Any Key To Continue..."... |
Forum: C Jul 8th, 2007 |
| Replies: 17 Views: 3,384 I understand the code, it was for the C beginners trying to understand the code (as there were 0 comments in his code) |
Forum: C Jul 8th, 2007 |
| Replies: 17 Views: 3,384 Some comments might help the beginners Aia |
Forum: C May 9th, 2007 |
| Replies: 14 Views: 2,579 Optimization is implied, especially for procedural programming. No-one will write 10 lines of code of they can write one.
And i agree, my lecturers gave silly exercises out, and you werent allowed... |
Forum: C May 9th, 2007 |
| Replies: 14 Views: 2,579 Well are you going to design a for loop to loop through and output chars each time? or just call one function to do it. I think we all know which is the most appropriate. |
Forum: C May 9th, 2007 |
| Replies: 14 Views: 2,579 Yes that's understood. What my point was. that. putc() outputs one character so if you wish to output words to the console, you'll need to LOOP for each character you wish to output. thus being very... |
Forum: C May 9th, 2007 |
| Replies: 14 Views: 2,579 Andor is correct.
the puts() function takes a String (char array) as the parameter.
putc() would output 1 character only, and not really useful or effective in this case. |
Forum: C May 9th, 2007 |
| Replies: 6 Views: 4,737 When you type characters into the console, its going to STDIN.
you're wanting to modify the character value coming from the keyboard.
There are Windows API functions available for this. off the... |