C++ Program To Print ASCII value of Digits,Uppercase and Lowercase Alphabates

#include<conio.h>#include<iostream.h>#include<dos.h>#include<process.h> void main(){ clrscr(); char ch,a[]={“Made By : Neeraj Mishra”}; int j=0; cout<<“Uppercase Alphabatesnn”; for(int i=65;i<91;++i) { j++; ch=i; cout<<ch<<“:”<<i<<“t”; if(j==10) { cout<<“n”; j=0; } } j=0; cout<<“nnnLowercase Alphabatesnn”; for(i=97;i<123;++i) { j++; ch=i; cout<<ch<<“:”<<i<<“t”; if(j==10) { cout<<“n”; j=0; } } cout<<“nnnDigitsnn”; for(i=48;i<58;i++) { ch=i; cout<<ch<<“:”<<i<<“t”; } cout<<“nnnntt”; for(i=0;a[i]!=’’;++i) { cout<<a[i]; sleep(1); } exit(0);}

C++ Program to read from a text file and than write in another text file

#include<fstream.h> void main(){ ofstream fout(“sare1.txt”); //create a file to writeifstream fin(“sare1.txt”);fout<<“Hello….!!”;fout.close();                            //closing the file fout.open(“sare2.txt”); //create file to writechar ch;while(fin) //loop wiill run till end of file{fin>>ch;       //reading data from filefout<<ch;       //writing data to file}fin.close();fout.close();}/*you can …

C++ Program to read from a text file and than write in another text file Read More »

Tic-Tac-Toe Game

#include<iostream.h> #include<conio.h> #include<dos.h> #include<process.h> char mat[3][3]; void table(void);            //function to print the table void welcome(void);     //function for welcome screen void main() {  welcome();      A: clrscr();  int i,j,m,n,sum=0;  char ch;  for(m=0;m<3;++m)   for(n=0;n<3;++n)    mat[m][n]=’’;  table();  while(sum<10)  {  //for player 1  cout<<“Player 1 is’x’nChoose the position:”;  cout<<“nRow:”; …

Tic-Tac-Toe Game Read More »