int main (int argc, char** argv) {
int code, incomment=0, newlinelast=1;
while ((code=getchar())!=EOF){
if (code=='#' && newlinelast){
incomment=1;
}
if (!incomment){
putchar(code);
}
if (code=='\n'){
incomment=0;
newlinelast=1;
}else{
newlinelast=0;
}
这是我写的,,但是还是不对