Sunday, March 8, 2009

C++ program

// Transform a string into ASCII code

#include"iostream.h"
void main()
{
char a[32];
int x = 0;

cout << " enter the word \n";

cin >> a;

cout << "The ASCII for this word is:\n"; while (word[x] != '\0') { cout <<>