This is mahesh from jamshedpur(INDIA) . This is my second application using C#. In this Application I used GDI+ .In India NorthIndian teenagers (but I am southIndian (A.P)) following small formula for choosing love partner. That is FLAMES.What is FLAMES?F for FriendL for LoverA for AffairM for MarriageE for EnemyS for SisterHow the calculation?Take guy name and girl nameExample: Rama and Sita
This application I developed in java also after writing this same logic in C# I came to know in C# easy to develop applications.Enter in to the code//for checking how many words leftpublic void check1(){String flames="FLAMES";String guy1=guyt.Text;String gal1=galt.Text;StringBuilder sb=new StringBuilder(guy1);StringBuilder sb1=new StringBuilder(gal1);StringBuilder sb2=new StringBuilder(flames);int x=sb.Length;int y=sb1.Length;if((x==1)||(y==1)||(x==0)||(y==0)){MessageBox.Show(Invalid Entry");} else {begin:for(int i=0;i<gal1.Length;i++) {int xx=guy1.IndexOf(gal1[i]);if(xx!=-1) {sb.Remove(xx,1);sb1.Remove(i,1);guy1=sb.ToString();gal1=sb1.ToString();goto begin;} }int count=sb.Length+sb1.Length;//checking in FLAMESif(count!=0){int c=0;int c1=0;--count;int u=flames.Length;do{if(c1==count) {....sb2.Remove(c,1);flames=sb2.ToString();c1=0; }u=flames.Length;--u;if(c>u) c=0;if(c==u) c=-1;++c;++c1;}while(flames.Length!=1);hello this is my logic improve you own logic if that is better than me please send me..Note: Hello guys and gals this flames is a funny logic in this testing if that is hurted to your heart please excuse me..
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: