dcsimg
manipulate string
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kasy_rahman
Posted On:   Monday, February 3, 2003 06:44 PM

Let say i got a string like this




#include


main(){


int i;


for(i=0;i <2;i++){


printf("welcome");


return 0;

}




How can i count this=

1.sum of character

2.lines

3.blank lines

and how can i detect some words like " int i ";

Re: manipulate string

Posted By:   Sujatha_Gopal  
Posted On:   Tuesday, February 4, 2003 03:48 AM

The code is a C program.And Can also be done in C itself




Can do this in any language supporting File System Object.


Just try to find out the methods supported by the File System Object in that language.


In JSP try find out the methods in java.io

Re: manipulate string

Posted By:   Sujatha_Gopal  
Posted On:   Tuesday, February 4, 2003 03:48 AM

The code is a C program.And Can also be done in C itself




Can do this in any language supporting File System Object.


Just try to find out the methods supported by the File System Object in that language.


In JSP try find out the methods in java.io
About | Sitemap | Contact