True, you still have this problem. Why don't you take a closer look at it.
int main(int argc,char **argv)
cout<<"you haven't entered a file! exiting..."<<endl;
int *a=new int ;//for saving the number of each ch
cout<<"the list is:"<<endl;
And your error message was:
c++file.cpp: In function ‘int main(int, char**)’:
c++file.cpp:66: error: ‘struct std::_List_iterator<code_ch>’ has no member named ‘begin’
c++file.cpp:66: error: ‘struct std::_List_iterator<code_ch>’ has no member named ‘end’
That says that your iterator does not have a begin or end member. It is right, iterators don't. What does have a begin and end? What is it that you want to be copying from?
Play closer attention to the error message and the line it is referring to. It is telling you what the problem is and where it is. Go over each part of that line and look for a difference between what you intended and what you wrote.
while in another where i wrote:
//part of a program
and correctly works.
does list has not such ability to iterate over list elements as i want to do?
I know it's a little more than a little funny but I don't know how some process have the user name SYSTEM within the window task manager while they are not a system process. E.g some anti viruses and ...
SYSTEM is a user in the Windows system that has a different set of privileges than the interactive user.
This name of the user does not mean it only runs system processes.
For example, most of the services that you create are run in the SYSTEM user context.
«_Superman_» I love work. It gives me something to do between weekends.
CArchive is not a file, it manages a number of internal data to handle the serialization process, that must remain synchronized with the file itself.
Unless you want to mess-up the file content, you shouldn't move any CArchive "file pointer" (note that CArchive does not define such concept) nor you uattempt any seek to the CFile associated with CArchive.
The proper way to do that is, after saving is finished, close the archive,
cleanup the application in-memory data,
open the archive again for reading (you'd better to constrict another one, not use the same) and read the data from it.
hi,i want to build a mini webserver,in php,we can use "$_GET['param']" to get the params,when i receive the url like "GET /test/test.php?param1=test¶m2=123 HTTP/1.1" how to send the params to my php script file?
i try to execute "php.exe test.php -f param1=test param2=123",but it doesn't work ,when i seach on google ,find some about "cgi protocols" ,can anyone tell me how to do it?
Seems like you have $argc and $argv for using parameters from the command line, just like in C. If you execute php.exe from your webserver to execute php scripts i guess you will either have to pass parameters thoroguh $argv or maybe dump them into a temp file and then read them up in the php script, you could probably make a "converter", a php "header" or somesuch that would generate a "_GET array" from these parameters if you need that.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
Normally PHP runs as an Apache module and parameters are passed in a struct request_rec. If PHP scripts are run through CGI, then parameters are passed in environment variables as I explained in a previous message. Command line arguments aren't used in either case.