Click here to Skip to main content
16,007,779 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert String to int zero is missing.... Pin
spalanivel15-Dec-09 0:45
spalanivel15-Dec-09 0:45 
GeneralRe: Convert String to int zero is missing.... Pin
OriginalGriff15-Dec-09 0:53
mveOriginalGriff15-Dec-09 0:53 
JokeWrong forum Pin
dan!sh 15-Dec-09 1:16
professional dan!sh 15-Dec-09 1:16 
GeneralRe: Wrong forum Pin
Luc Pattyn15-Dec-09 1:35
sitebuilderLuc Pattyn15-Dec-09 1:35 
GeneralRe: Wrong forum Pin
dan!sh 15-Dec-09 1:42
professional dan!sh 15-Dec-09 1:42 
GeneralRe: Convert String to int zero is missing.... Pin
#realJSOP15-Dec-09 3:49
professional#realJSOP15-Dec-09 3:49 
GeneralRe: Convert String to int zero is missing.... Pin
#realJSOP15-Dec-09 3:48
professional#realJSOP15-Dec-09 3:48 
AnswerRe: Convert String to int zero is missing.... Pin
Luc Pattyn15-Dec-09 1:39
sitebuilderLuc Pattyn15-Dec-09 1:39 
two comments:

1.

spalanivel wrote:
Output : 6461 (note 0's missing)


yes, sure. and how many zeroes are missing? 1? one hundred?

2.

you could (I don't say "should") do what you want with strings and characters, i.e. come up with a method that "increments a string". This is how it would go:

a. copy the original string;
b. look for the rightmost digit that you haven't processed yet;
c. add one to it i.e. replace '0' by '1', or '1' by '2', etc
d. if in step c you replaced '9' by '0' then goto b
e. done

with possible refinement: if b fails, prefix a '1'

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


QuestionDownload first and last 1000 kb of a file? Pin
jafingi14-Dec-09 23:46
jafingi14-Dec-09 23:46 
AnswerRe: Download first and last 1000 kb of a file? Pin
Eduard Keilholz14-Dec-09 23:56
Eduard Keilholz14-Dec-09 23:56 
GeneralRe: Download first and last 1000 kb of a file? Pin
jafingi15-Dec-09 0:05
jafingi15-Dec-09 0:05 
GeneralRe: Download first and last 1000 kb of a file? Pin
Eduard Keilholz15-Dec-09 0:47
Eduard Keilholz15-Dec-09 0:47 
Questionreport viewer Pin
Member 59031014-Dec-09 23:13
Member 59031014-Dec-09 23:13 
QuestionMathematical Expressions from strings. Pin
Randal Vance Cunanan14-Dec-09 22:53
Randal Vance Cunanan14-Dec-09 22:53 
AnswerRe: Mathematical Expressions from strings. Pin
Migounette14-Dec-09 23:02
Migounette14-Dec-09 23:02 
AnswerRe: Mathematical Expressions from strings. Pin
Alan Balkany15-Dec-09 3:59
Alan Balkany15-Dec-09 3:59 
AnswerRe: Mathematical Expressions from strings. Pin
PIEBALDconsult15-Dec-09 4:37
mvePIEBALDconsult15-Dec-09 4:37 
AnswerRe: Mathematical Expressions from strings. Pin
BillWoodruff15-Dec-09 11:01
professionalBillWoodruff15-Dec-09 11:01 
QuestionDataGridView Delete Slow Pin
stancrm14-Dec-09 22:36
stancrm14-Dec-09 22:36 
AnswerRe: DataGridView Delete Slow Pin
Eddy Vluggen14-Dec-09 22:47
professionalEddy Vluggen14-Dec-09 22:47 
AnswerRe: DataGridView Delete Slow Pin
Migounette14-Dec-09 22:56
Migounette14-Dec-09 22:56 
GeneralRe: DataGridView Delete Slow Pin
Eddy Vluggen15-Dec-09 0:16
professionalEddy Vluggen15-Dec-09 0:16 
AnswerRe: DataGridView Delete Slow Pin
Ashfield14-Dec-09 23:45
Ashfield14-Dec-09 23:45 
QuestionSEHException was unhandled External component has thrown an exception Pin
Xelalem14-Dec-09 22:07
Xelalem14-Dec-09 22:07 
AnswerRe: SEHException was unhandled External component has thrown an exception Pin
Migounette14-Dec-09 22:51
Migounette14-Dec-09 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.