Author: Dave Gomboc
Date: 19:03:22 05/29/02
Go up one level in this thread
#include <iostream>
int main(void) {
while (1) {
std::cout << "Fernando\n"; // doesn't flush output buffer each time
};
// function main allows implicit 'return 0'
};
On May 27, 2002 at 08:50:05, Andrew Williams wrote:
>On May 26, 2002 at 17:34:35, Jason Williamson wrote:
>
>>Here: I decided to port your program to C++:
>>
>>#include <iostream>
>>
>>using namespace std;
>>
>>int main() {
>>
>> while(1){
>> cout << "Fernando";
>> return 0;
>>}
>>
>
>Actually:
>
>#include <iostream>
>
>using namespace std;
>
>int main() {
>
> while(1){
> cout << "Fernando" << endl;
> }
> return 0;
>}
>
>
>I've spent this morning assessing C++ programs. Now I can't stop...
>
>
>Andrew
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.