hi
Would any body like to help me to write the programme below?
in the class Test, there are 2 property (string s3, s4), string s3 just keep the numbers and string s4 just keep the letters.
forexmple in the main program:
if we assigned "asd3426ghf" to Test.s3:
Test.s3="asd3426ghf";
propert s3 only keeps, 3426, not asdghf
and
if we assigned "asd3426ghf" to Test.s4:
Test.s4="asd3426ghf";
property s4 only keeps, asdghf, not 3426
how will it happen?
plz help me.
Loading
VulpesPosted Jul 24, 2011, 9:34 AM
Subject to that, the following should do what you want:
VulpesPosted Jul 25, 2011, 5:12 AM
Arezoo ShPosted Jul 25, 2011, 2:06 AM
many Thanks for ur reply.
but I have some question about ur code, would u pls help me?
why u use the list? is it necessary?
can we use the string Numbers or letters instead of list?
for example:
int i=0;
foreach(char c in value)
{
i++;
}
{
i++;
}
can write this programme simpler than u write?
Vilas GitePosted Jul 24, 2011, 4:55 AM
Please refer :
If this reply helps your post…then check "This is correct answer"