Click here to Skip to main content
16,015,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to implement the function as follow? Pin
ZhiLiangLin22-May-08 2:38
ZhiLiangLin22-May-08 2:38 
AnswerRe: how to implement the function as follow? Pin
CPallini22-May-08 2:49
mveCPallini22-May-08 2:49 
JokeRe: how to implement the function as follow? Pin
Hamid_RT22-May-08 4:17
Hamid_RT22-May-08 4:17 
GeneralRe: how to implement the function as follow? Pin
ThatsAlok16-Jul-09 20:40
ThatsAlok16-Jul-09 20:40 
AnswerRe: how to implement the function as follow? Pin
_AnsHUMAN_ 22-May-08 3:02
_AnsHUMAN_ 22-May-08 3:02 
GeneralRe: how to implement the function as follow? Pin
ZhiLiangLin22-May-08 15:00
ZhiLiangLin22-May-08 15:00 
Questionprogressindication Pin
Mohanraj D22-May-08 2:07
Mohanraj D22-May-08 2:07 
QuestionHow to find particular string and increment. Pin
manju#12322-May-08 1:07
manju#12322-May-08 1:07 
Hi...
I am trying to create a log file which should contain..
///////////////////////////////////////
TSE0001
TSW0001
TSI0001
/////////////////////////////////////////
Then i will find the particular string "TSW".
It should increment as
TSW0002
but i am getting as TSW0004..plz help me...

my code is..
/////////////////////////////
switch(cType)
{
case 'W':
{
int iTSWCount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSW",0);
if(iWPos!= 0)
{
iTSWCount++;
}

}
iCount = iTSWCount;
logfile<<"TSW000";
break;
}
case 'E':
{
int iTSECount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSE",0);
if(iWPos!= 0)
{
iTSECount++;
}

}
iCount = iTSECount;
logfile<<"TSE000";
break;
}

case 'I':
{
int iTSICount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSI",0);
if(iWPos!= 0)
{
iTSICount++;
}

}
iCount = iTSICount;
logfile<<"TSI000";
break;
}

///////////////////////////////////////////

THANK YOU
MANJU

Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju

AnswerRe: How to find particular string and increment. Pin
Rajesh R Subramanian22-May-08 1:39
professionalRajesh R Subramanian22-May-08 1:39 
GeneralRe: How to find particular string and increment. Pin
Cedric Moonen22-May-08 1:43
Cedric Moonen22-May-08 1:43 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 1:56
manju#12322-May-08 1:56 
GeneralRe: How to find particular string and increment. Pin
Rajesh R Subramanian22-May-08 2:22
professionalRajesh R Subramanian22-May-08 2:22 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 2:30
manju#12322-May-08 2:30 
AnswerRe: How to find particular string and increment. Pin
CPallini22-May-08 1:48
mveCPallini22-May-08 1:48 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 2:02
manju#12322-May-08 2:02 
GeneralRe: How to find particular string and increment. Pin
CPallini22-May-08 2:13
mveCPallini22-May-08 2:13 
GeneralRe: How to find particular string and increment. Pin
manju#12322-May-08 2:15
manju#12322-May-08 2:15 
Questionhow to run ppp client through C++ code Pin
baseband22-May-08 0:58
baseband22-May-08 0:58 
Questioncan you solve this problem/error (its urgent) Pin
sumit.durg22-May-08 0:40
sumit.durg22-May-08 0:40 
AnswerRe: can you solve this problem/error (its urgent) Pin
_AnsHUMAN_ 22-May-08 0:49
_AnsHUMAN_ 22-May-08 0:49 
JokeRe: can you solve this problem/error (its urgent) Pin
Hamid_RT22-May-08 1:42
Hamid_RT22-May-08 1:42 
GeneralRe: can you solve this problem/error (its urgent) Pin
_AnsHUMAN_ 22-May-08 2:00
_AnsHUMAN_ 22-May-08 2:00 
AnswerRe: can you solve this problem/error (its urgent) Pin
Cedric Moonen22-May-08 0:49
Cedric Moonen22-May-08 0:49 
QuestionDialog: the limits Pin
tmaggioli22-May-08 0:31
tmaggioli22-May-08 0:31 
AnswerRe: Dialog: the limits Pin
Garth J Lancaster22-May-08 0:57
professionalGarth J Lancaster22-May-08 0:57 

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.