Click here to Skip to main content
15,894,343 members

Comments by yesotaso (Top 193 by date)

yesotaso 7-Sep-11 17:37pm View    
Common C Programming Errors or you can say "C alike"...
double fifty = (1/2) * 100;
This code sets fifty to 0 not 50! Why? Because of integer division.
If you want something nailed use hammer, if you want something sliced use a knife...
yesotaso 4-Jul-11 2:36am View    
Indeed regex has all the tools in capable hands to chop the strings. +5
yesotaso 30-Jun-11 2:58am View    
+5, one modification may be added: format could have been done with 2 arguments, anyway thats unnecessary detail. What I wonder is what advantage does StringBuilder holds against plain string concatenation. I know thats another question but is it simply "performance" or "principles of oop".
yesotaso 30-Jun-11 2:45am View    
What he wrote is essentially correct OP should have reset the counter... But why there is a 2nd loop(That is from original code)?
yesotaso 30-Jun-11 2:43am View    
Nice, but why does he even need 12 of each record (144 total). I think the inner do-while is put there out of confusion.