This function is a member function of the STL list class and I do not understand the bolded part. I understand the const T& el is a reference to a constant parameter which means I cannot change the value/content of the passed argument + I understand that el = T() means a default parameter so if there is no argument passed in the calling function the el will use the no-argument constructor of the T() type OK. But what make me confused the el at the beginning before the const?!!! so if someone can fill the blank gaps for me I will be grateful . Thanks in advance.
I read it in a book called "Data Structures and Algorithms in C++, 4th Edition by Adam Drozdek" it was in chapter 3 "Linked Lists" at the beginning of page 110 . It made me had the feeling of this when read it, and after searching and find nothing I become like this ;P;P (i.e., psycho). Thanks by the way for reply
sorry...didnt mean to be rude its just a test i saw somewhere and i dont know how to do it...all i want is for you guys to tell me what its under or explain what im supposed to do not to write the program. I'm a beginner in C++...Pls guys
I use FillRect(...) for the screen but I can't get it to work for a printer. App is pretty much ordinary MFC with Doc/View arch. A little unusual is that I use worker threads for printing and painting. The threads use GDI resources instead of CDC.
Did I hear you ask why? I use an image printer to print straight to jpg files. I want a dark background in some of the jpgs. Then I use Windows Movie Maker to add the jpgs and a soundtrack. Walla, out pops an MP4. Loads of fun.
My first program in VC6 (ever) is a wrapper so the the DLLs provided by our Scanner vendor can be used in our VB6 application. (They won't provide compatible DLLs)
I did some experimental programs and successfully wrapped the librarys in a vc6 program and created a test dialog to access the function. Good to go.
Then I followed this COM/ATL example:
I Created a COM project just like the example, added my includes for the provided vendor DLLs and abstracted access to the library calls.
Wonderfully, magically the library shows up the the VB6 reference list. I include it just like in the example program and when I try to access the simplest function (Is the scanner connected?) the call to the function CRASHES VB6 with an access violation!
I'm at the end of ideas here. I did run depends.exe against the 4 library DLLs that our vendor provided and there are a number of DLL dependencies missing on my machine. Could my problem be those missing dependencies alone? (They reference IE dlls that I don't believe are applicable to anything I'm asking the library to do.)