Click here to Skip to main content
15,897,519 members

Comments by Engineer khalid (Top 111 by date)

Engineer khalid 4-Feb-24 10:41am View    
i added 3.1415 as a word the count increased by two not by one
may be i need to add some thing to
int WordCount = Regex.Matches(text, @"\b[A-Za-z0-9]+\b").Count;
the above line seems to ask for all words from A to Z and From a to z and numbers from 0 to 9
how can i cover float numers , number that start by + or minuse signe (i almost forgot most of pure c language)
Engineer khalid 7-Jan-24 18:17pm View    
ok
Engineer khalid 7-Jan-24 17:01pm View    
Deleted
public class Cv
{
public Ch[] sunof_cv;
private int icv;

public Cv() { }
public Cv(int Xicv)
{
ICV = Xicv;
}
public int ICV { get { return icv; } set { icv = value; } }
public Ch this[int i] { get { return sunof_cv[i]; } set { sunof_cv[i] = value; } }
}//Cv
//
public class Bv
{
public Bh[] sunof_bv;
private int ibv;

public Bv() { }
public Bv(int Xibv)
{
IBV = Xibv;
}
public int IBV { get { return ibv; } set { ibv = value; } }
public Bh this[int i] { get { return sunof_bv[i]; } set { sunof_bv[i] = value; } }
}//Bv

public class Ch
{
private int ich;
public Ch() { }
public Ch(int Xich)
{
ICH = Xich;
}
public int ICH { get { return ich; } set { ich = value; } }
}//Ch
public class Bh
{
public Ch[] sunof_bh;
private int ibh;

public Bh() { }
public Bh(int Xibh)
{
IBH = Xibh;
}
public int IBH { get { return ibh; } set { ibh = value; } }
public Ch this[int i] { get { return sunof_bh[i]; } set { sunof_bh[i] = value; } }
}//Bh

public class Ah
{
public Bh[] sunof_ah;
private int iah;

public Ah(){ }

public Ah(int Xiah)
{
IAH = Xiah;
}
public int IAH { get { return iah; } set { iah = value; } }
public Bh this[int i] { get { return sunof_ah[i]; } set { sunof_ah[i] = value; } }
}//Ah
Engineer khalid 7-Dec-23 6:13am View    
may be the end character of files[i] is not \n
look at this
string[] mystr=new string[50];
i still could not save files[0],files[1],files[2]....so on
to
for(i=0;i<3;i++)//assume we have only 3 files
mystr[i]=files[i];
Engineer khalid 7-Dec-23 1:21am View    
i should get all file names in the text file ListOfFileName.txt
but i found it is empty