Re: CR/LF even better

2001-11-10 Thread Alan Shutko
[EMAIL PROTECTED] writes: > #include > #include Are you posting homework assignments here, or are you unaware of the much simpler ways to do this? -- Alan Shutko <[EMAIL PROTECTED]> - In a variety of flavors! If this fortune didn't exist, somebody would have invented it.

CR/LF even better

2001-11-09 Thread xucaen
#include #include using namespace std; void process_file(int argc, char **argv); void process_stdin(); void check_char(char &ch); int main(int argc, char **argv) { if(argc > 1) process_file(argc, argv); else process_stdin(); return 0; } void process_file(int argc,