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

VulpesRank #55 · 29.2K reputationPosted Jul 24, 2011, 5:34 AM EDT
Subject to that, the following should do what you want:
Vilas GiteRank #951 · 2.1K reputationPosted Jul 24, 2011, 12:55 AM EDT
Please refer :
If this reply helps your post…then check "This is correct answer"
Arezoo Sh7 reputationPosted Jul 24, 2011, 10:06 PM EDT
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?
VulpesRank #55 · 29.2K reputationPosted Jul 25, 2011, 1:12 AM EDT