std::fill_n(std::ostream_iterator < const char* >( std::cout ), n, "* ");
#include <stdio.h> int main() { char c = '*'; const char s = c ^ ' '; const int n = 8; int i = n*2*n; while(i--) { putchar(c); if(!(i%(n*2))) putchar('\n'); else c ^= s; } return 0;}
#include <iostream> int main() { int n = 8; for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) { cout << "* "; } cout << endl; if(i%2 != 0) cout << " "; }}