Wednesday 25 July 2012

Lecture: 121


                                                Lecture 121

// Loop do while
//Drawing a Graphics Character
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
{  
   int n; 
   char ch[5]="\xD9";
   n=1;
   do{
        cout<<"\t"<<ch;
        n++;
     }while(n<40);
  getch();
  return 0;
}

Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10