R
Richard Harter
That's C++, this is comp.lang.c.
That's scarcely surprising since he said it was C++ in the text you
quoted.
That's C++, this is comp.lang.c.
The question is whether disguised loops and conditions count.dev_cool said:#include<iostream.h>
class abc{
public:
static int i;
abc()
{
cout<<i++<<endl;
}
};
int abc :: i = 1;
int main() {
int n = 100;
abc *pt;
pt = new abc[n];
return 0;
}
Malcolm McLean said:The question is whether disguised loops and conditions count.
I'm only posting this solution because I'd like the gurus to tell me
what's wrong with it (it seems to work):
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
void handleZero( int ignore ) {
}
void handleOne( int ignore ) {
printf( "\n" );
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.