Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: Large Numer Calculation Pin
kamran2313-Apr-14 10:54
kamran2313-Apr-14 10:54 
GeneralRe: Large Numer Calculation Pin
Meysam Toluie13-Apr-14 18:02
Meysam Toluie13-Apr-14 18:02 
QuestionLognormal distribution Pin
Member 1074517412-Apr-14 23:16
Member 1074517412-Apr-14 23:16 
AnswerRe: Lognormal distribution Pin
Richard MacCutchan13-Apr-14 0:21
mveRichard MacCutchan13-Apr-14 0:21 
GeneralRe: Lognormal distribution Pin
Member 1074517413-Apr-14 0:39
Member 1074517413-Apr-14 0:39 
GeneralRe: Lognormal distribution Pin
Richard MacCutchan13-Apr-14 0:47
mveRichard MacCutchan13-Apr-14 0:47 
QuestionHow to create form search (c#-winform-sql server) with multi-field Pin
joga778512-Apr-14 0:06
joga778512-Apr-14 0:06 
AnswerRe: How to create form search (c#-winform-sql server) with multi-field Pin
Peter Leow12-Apr-14 0:34
professionalPeter Leow12-Apr-14 0:34 
GeneralRe: How to create form search (c#-winform-sql server) with multi-field Pin
joga778513-Apr-14 16:39
joga778513-Apr-14 16:39 
AnswerRe: How to create form search (c#-winform-sql server) with multi-field Pin
Mycroft Holmes12-Apr-14 14:50
professionalMycroft Holmes12-Apr-14 14:50 
AnswerRe: How to create form search (c#-winform-sql server) with multi-field Pin
joga778513-Apr-14 16:40
joga778513-Apr-14 16:40 
AnswerRe: How to create form search (c#-winform-sql server) with multi-field Pin
Bernhard Hiller13-Apr-14 23:01
Bernhard Hiller13-Apr-14 23:01 
GeneralRe: How to create form search (c#-winform-sql server) with multi-field Pin
joga778520-Apr-14 16:47
joga778520-Apr-14 16:47 
AnswerRe: How to create form search (c#-winform-sql server) with multi-field Pin
joga778520-Apr-14 18:44
joga778520-Apr-14 18:44 
QuestionMessage Closed Pin
11-Apr-14 18:31
Angeljodim11-Apr-14 18:31 
AnswerRe: Q&A site that answers C# topics AUTOMATICALLY Pin
Peter Leow11-Apr-14 18:59
professionalPeter Leow11-Apr-14 18:59 
AnswerRe: Q&A widget please. Pin
Dave Kreskowiak12-Apr-14 11:02
mveDave Kreskowiak12-Apr-14 11:02 
AnswerRe: Q&A widget please. Pin
Shady George12-Apr-14 11:28
Shady George12-Apr-14 11:28 
GeneralRe: Q&A widget please. Pin
Richard Andrew x6412-Apr-14 15:10
professionalRichard Andrew x6412-Apr-14 15:10 
GeneralRe: Q&A widget please. Pin
Shady George12-Apr-14 17:40
Shady George12-Apr-14 17:40 
AnswerRe: Q&A widget please. Pin
OriginalGriff13-Apr-14 2:42
mveOriginalGriff13-Apr-14 2:42 
AnswerRe: Q&A widget please. Pin
Jay Nardev13-Apr-14 7:44
Jay Nardev13-Apr-14 7:44 
QuestionI found This Error When I run My programe The data reader is incompatible with the specified 'DBLaxmiTatkalModel.TblAttendence'. A member of the type, 'AttendenceId', does not have a... Pin
Šangeet Šhah11-Apr-14 18:10
professionalŠangeet Šhah11-Apr-14 18:10 
AnswerRe: I found This Error When I run My programe The data reader is incompatible with the specified 'DBLaxmiTatkalModel.TblAttendence'. A member of the type, 'AttendenceId', does not have a... Pin
Mycroft Holmes11-Apr-14 22:55
professionalMycroft Holmes11-Apr-14 22:55 
Questionif a real number has two dots in it it must display error that it is not a real number Pin
Member 1074041211-Apr-14 15:09
Member 1074041211-Apr-14 15:09 
i am working on lexical analyzer phase of compiler construction.... i have written a code that display a that the given number is real if it contain one dot int it but if it contains two dot i does not generate error....
here is my code

C#
bool containReal = ss.Any(char.IsDigit) && ss.Contains('.');
                                       if (containReal)
                                       {
                                           MessageBox.Show("this is a Real Number");
                                           break;
                                       }
                                       //invalid b/c of two dots
                                       string str2 = ss.Substring(1, ss.IndexOf('.'));
                                       string str3 = ss.Substring(ss.IndexOf('.') + 1);
                                       bool chk_dot = (str2.Any(char.IsLetter) || str3.Any(char.IsLetter) || str2.IndexOfAny("!@%^&*()#$-_+<>".ToCharArray()) != -1 || str3.IndexOfAny("!@%^&*()#$-_+<>".ToCharArray()) != -1);
 if ( chk_dot)
                                        {
                                            MessageBox.Show("Error: Line num  " + linecount + "  Invalid b/c of two dots in a real number");
                                            errorcount++;
                                            break;

                                        }




can you help me to correct it......

modified 11-Apr-14 21:26pm.

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.