how to remove spacesfroma sentence

March 30, 2009 at 21:50:25
Specs: Windows XP

plz ans my question

See More: how to remove spacesfroma sentence

Report •


#1
March 30, 2009 at 22:04:27
Much depends on:

the sentence structure
the OS
the language


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
April 3, 2009 at 05:45:38
/*Hi this is R.S.A.
The following program will serve your purpose*/
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char *s;
clrscr();
gets(s);
for(int i=0;i<strlen(s);i++)
{
if((int)s[i]==32)//since ASCII value for 'space' is 32
s[i]=s[i+1];
}
puts(s);
getch();
}


Report •

Related Solutions


Ask Question