Very cool code that prints a tick sign in asterisks. This is awesome C++ code.

Posted: August 29, 2013. At: 9:24 PM. This was 3 years ago. Post ID: 6178

This code prints out a tick sign using asterisks. I tested this code on Fedora 19 and gcc 4.8 and it compiles without any problems.

#include <iostream>
#include <iomanip>

using std::cout;

int main() {


	cout<<"*  *"<<"n"<<"* *"<<"n"<<"*";
	cout<< "n";

	return 0;

This is what you should get when you compile and run this code sample.

[email protected] $ ./loop 
*  *
* *

Very cool indeed.

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *