Click here to Skip to main content
15,914,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UNIX Gurus Pin
Johnny ²12-Dec-03 22:03
Johnny ²12-Dec-03 22:03 
GeneralRe: UNIX Gurus Pin
Jagadeesh VN13-Dec-03 2:01
Jagadeesh VN13-Dec-03 2:01 
GeneralRe: UNIX Gurus Pin
markkuk13-Dec-03 0:22
markkuk13-Dec-03 0:22 
GeneralRe: Getting all exe running on Desktop Pin
l a u r e n12-Dec-03 20:18
l a u r e n12-Dec-03 20:18 
GeneralRe: Getting all exe running on Desktop Pin
SiddharthAtw12-Dec-03 23:46
SiddharthAtw12-Dec-03 23:46 
GeneralSumit-s solution Pin
Sumit Kapoor13-Dec-03 5:29
Sumit Kapoor13-Dec-03 5:29 
GeneralRe: Sumit-s solution Pin
SiddharthAtw14-Dec-03 18:10
SiddharthAtw14-Dec-03 18:10 
GeneralNeed help in putting this function Pin
percyvimal12-Dec-03 19:33
percyvimal12-Dec-03 19:33 
I have a data like this

40126024302350123
The first no of this data reperesent what is the no of 4 digit nos in the data.
Here it is 4 because i have 4 4digit no.

If i have 3, 4digit no i will represent like this 3024302350123

CString GetString(int NO )
{
switch (NO)
{
case 1:
return 3024302350123;
break;
case 2:
return 40126024302350123;
break;
case 3:
return 10245;

break;

}

I need your help in these areas

1.The return type i have mentioned is CString .Is this correct one.
or else plz suggest the correct datatype

2.Then i need a function where
to trim the first character of the data and convert that into a integer
and put it into a for loop to fix how many loops the function have.
for example if it is 3024302350123 then the first character is 3 so the for loop should go 3 times and in first loop it should take the first 4 digit and do some operations and in second loop it should take the next 4 digit and do the same operation but with new value ie 2nd 4digits and in 3rd loop it should take the 3rd 4digit no and do same operations with that new no

Sir please if there is anybody who can help me in this

thanks in advance
vimal



GeneralRe: Need help in putting this function Pin
l a u r e n12-Dec-03 20:20
l a u r e n12-Dec-03 20:20 
GeneralAgent Control Pin
nileshp412-Dec-03 18:54
nileshp412-Dec-03 18:54 
GeneralRe: Agent Control Pin
Ravi Bhavnani12-Dec-03 20:50
professionalRavi Bhavnani12-Dec-03 20:50 
GeneralSeting image to CListCtrl..... Pin
YanBin12-Dec-03 16:27
YanBin12-Dec-03 16:27 
GeneralParsing the command line Pin
Ernesto D.12-Dec-03 14:52
Ernesto D.12-Dec-03 14:52 
GeneralRe: Parsing the command line Pin
Michael Dunn12-Dec-03 19:03
sitebuilderMichael Dunn12-Dec-03 19:03 
GeneralRe: Parsing the command line Pin
Ernesto D.13-Dec-03 10:13
Ernesto D.13-Dec-03 10:13 
General.cpp .dsp .dsw Pin
Leoanrd Fear12-Dec-03 14:23
sussLeoanrd Fear12-Dec-03 14:23 
GeneralRe: .cpp .dsp .dsw Pin
Michael Dunn12-Dec-03 14:51
sitebuilderMichael Dunn12-Dec-03 14:51 
QuestionWhy doesn't this work? Pin
Snyp12-Dec-03 13:45
Snyp12-Dec-03 13:45 
AnswerRe: Why doesn't this work? Pin
valikac13-Dec-03 5:31
valikac13-Dec-03 5:31 
GeneralSendMessage Problem Pin
impeham12-Dec-03 13:45
impeham12-Dec-03 13:45 
GeneralRe: SendMessage Problem Pin
Ernesto D.12-Dec-03 15:28
Ernesto D.12-Dec-03 15:28 
GeneralRe: SendMessage Problem Pin
impeham12-Dec-03 22:03
impeham12-Dec-03 22:03 
GeneralProblem reading field in .ini file Pin
IrishSonic12-Dec-03 13:29
IrishSonic12-Dec-03 13:29 
GeneralRe: Problem reading field in .ini file Pin
Roger Stewart12-Dec-03 15:23
professionalRoger Stewart12-Dec-03 15:23 
Generalencrypted data and strings Pin
(Steven Hicks)n+112-Dec-03 12:56
(Steven Hicks)n+112-Dec-03 12:56 

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.