Help with writing a program in Putty

Help with writing a program in Putty




In my computer science class we've started writing c++ programs. My homework was to write a program so that my name appears in a box. I used putty for this and this is what I wrote:



#include<iostream>

#include<string>



using namespace std;



void createbox ();



int main () {

createbox ();

return 0;

}



void createbox() {

cout<< " ";

for (int i=0; i<5; i++)

cout<< "_";

cout<< endl <<"|" <<"Anthony" <<"|" <<endl <<" ";



for (int j=0; j<5; j++)

cout<<"-";



it works but I was just wondering if there was any way to help make it look better?





No Answers Posted Yet.