Flames for Fun


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 Friend
L for Lover
A for Affair
M for Marriage
E for Enemy
S for Sister

How the calculation?

Take guy name and girl name

Example: Rama and Sita

  1. cut  all common words in those names, now the reaming words are rma and sit.
  2. Now calculate all the words, that is 6 words.
  3. Now take FLAMES calculate from the F and cut it on 6th letter.
    Example:
    After cutting the FLAMES
    FLAME
  4. Now again calculate form the next word keep on calculate until you will get one word that will decide your relation.

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 left
public 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 FLAMES
if(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..

Up Next
    Ebook Download
    View all
    Learn
    View all