Click here to Skip to main content
15,911,646 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralMimic Acrobat Reader behavior for a new file type Pin
pnyr29-Jan-04 8:21
pnyr29-Jan-04 8:21 
GeneralRe: Mimic Acrobat Reader behavior for a new file type Pin
Michael Dunn29-Jan-04 16:49
sitebuilderMichael Dunn29-Jan-04 16:49 
GeneralRe: Mimic Acrobat Reader behavior for a new file type Pin
pnyr30-Jan-04 11:53
pnyr30-Jan-04 11:53 
Questioncould the image and text be putted into a listview? Pin
freehawk28-Jan-04 22:08
freehawk28-Jan-04 22:08 
AnswerRe: could the image and text be putted into a listview? Pin
valikac29-Jan-04 6:28
valikac29-Jan-04 6:28 
GeneralRe: could the image and text be putted into a listview? Pin
freehawk29-Jan-04 13:51
freehawk29-Jan-04 13:51 
QuestionCould you give me any advice? Pin
freehawk28-Jan-04 17:54
freehawk28-Jan-04 17:54 
GeneralSTL valarray and slices Pin
Miszou28-Jan-04 11:53
Miszou28-Jan-04 11:53 
I have a need to create a large one-dimensional array and perform calculations (such as sum, max etc) on various sectins of the array.

From what I can understand about valarray, it seems to offer exactly these features. However, I am more than a little confused as to the "slice" part of this. For example, what is a "stride" and why do I need it?

Surely, to get access to a slice of the array, I only need a start position and an end point?

Like most of the STL, this is so badly documented and what examples[^] exist assume that I know what a slice is, and why I need one. Not only that, but the slices seem to be constructed out of completely arbitrary numbers! I am very close to simply using a vector and calculating everything myself...

Can anyone point me to a *good* and *simple* example on how to use valarray and slice on a one-dimensional array, or maybe explain things a little better?

Thanks!
GeneralRe: STL valarray and slices Pin
Stuart Dootson28-Jan-04 22:26
professionalStuart Dootson28-Jan-04 22:26 
GeneralRe: STL valarray and slices Pin
Miszou29-Jan-04 10:16
Miszou29-Jan-04 10:16 
Question.OCX or .DLL ? Pin
Dracula500028-Jan-04 8:20
Dracula500028-Jan-04 8:20 
AnswerRe: .OCX or .DLL ? Pin
Michael Dunn28-Jan-04 16:22
sitebuilderMichael Dunn28-Jan-04 16:22 
GeneralRe: .OCX or .DLL ? Pin
Dracula500029-Jan-04 8:36
Dracula500029-Jan-04 8:36 
GeneralUsing WTL controls in an MFC app Pin
armentage28-Jan-04 7:44
armentage28-Jan-04 7:44 
GeneralRe: Using WTL controls in an MFC app Pin
armentage28-Jan-04 7:56
armentage28-Jan-04 7:56 
GeneralRe: Using WTL controls in an MFC app Pin
Jörgen Sigvardsson28-Jan-04 7:59
Jörgen Sigvardsson28-Jan-04 7:59 
GeneralRe: Using WTL controls in an MFC app Pin
Jörgen Sigvardsson28-Jan-04 7:56
Jörgen Sigvardsson28-Jan-04 7:56 
GeneralRe: Using WTL controls in an MFC app Pin
armentage28-Jan-04 7:59
armentage28-Jan-04 7:59 
GeneralPlease help Pin
SiddharthAtw27-Jan-04 21:38
SiddharthAtw27-Jan-04 21:38 
QuestionHow to read file line by line? Pin
freehawk27-Jan-04 15:09
freehawk27-Jan-04 15:09 
AnswerRe: How to read file line by line? Pin
Christian Graus27-Jan-04 15:30
protectorChristian Graus27-Jan-04 15:30 
GeneralRe: How to read file line by line? Pin
freehawk27-Jan-04 23:40
freehawk27-Jan-04 23:40 
GeneralRe: How to read file line by line? Pin
Christian Graus28-Jan-04 9:00
protectorChristian Graus28-Jan-04 9:00 
AnswerRe: How to read file line by line? Pin
valikac28-Jan-04 8:01
valikac28-Jan-04 8:01 
GeneralRe: How to read file line by line? Pin
freehawk29-Jan-04 15:13
freehawk29-Jan-04 15:13 

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.