Count asterisks by Maedhros777

#include<iostream>\x0d
int n=-1;char c;main(){while(!std::cin.eof()){std::cin>>c;n+=(c==42);}std::cout<<n;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page