用于c ++中的webserver日志分析器的程序 [英] program for webserver log analyser in c++

查看:63
本文介绍了用于c ++中的webserver日志分析器的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我一个针对下面提到的问题的程序。

该程序应该执行以下功能。

1.sort 2.display 3.count 4.read 5.write

输入样本是

52.163.188.194 - - [30 / Nov / 2001:02:22:56 -0500]GET

/soar/Classes/494/ball.gif HTTP / 1.0" 200 920 - Java 1.1

152.163.188.197 - - [30 / Nov / 2001:02:22:55 -0500]" GET

/ soar / Classes / 494 / Block.class HTTP / 1.0 200 1002 - Java 1.1

132.170.107.229 - - [30 / Nov / 2001:02:22:54 -0500]" GET /images/home.gif

HTTP / 1.1 200 402" http://www.friendly.autograde.com/people/alumni.php"

" Mozilla / 4.0(兼容; MSIE 5.5; Windows NT 5.0)"


如果排序取决于它应该排序的信息类型。

上面的输入文件包含9条信息

语法: sort< sort order>

如果读取应该显示好的计数条目,即它们应该有9

条信息。

如果写入应该写入文件好的计数条目


的概念是使用地图和矢量进行存储

操作系统:windows 98

编译器:turboc ++编译器

我非常感谢你考虑我的邮件。


G.Prabhu

please sent me a program for the below mentioned problem.
The program should perform the following functions.
1.sort 2.display 3.count 4.read 5.write
the sample of input is
52.163.188.194 - - [30/Nov/2001:02:22:56 -0500] "GET
/soar/Classes/494/ball.gif HTTP/1.0" 200 920 "-" "Java 1.1"
152.163.188.197 - - [30/Nov/2001:02:22:55 -0500] "GET
/soar/Classes/494/Block.class HTTP/1.0" 200 1002 "-" "Java 1.1"
132.170.107.229 - - [30/Nov/2001:02:22:54 -0500] "GET /images/home.gif
HTTP/1.1" 200 402 "http://www.friendly.autograde.com/people/alumni.php"
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"

if sort depending on the type of piece of info it should sort.
the above input file contain 9 pieces of information
syntax: sort <sort order>
if read should display the good count entries i.e they should have 9
piece of info.
if write should write into a file the good count entries

the concept is that to use map and vector for storage
operating system :windows 98
compiler :turboc++ compiler
I thank you a lot for considering my mail.

G.Prabhu

推荐答案

prabhu写道:
请给我发一个程序来解决下面提到的问题。
please sent me a program for the below mentioned problem.



[SNIP]

这是个玩笑,是吗?


-

WW aka Attila

:::

黎明前总是最黑暗的。所以,如果你要偷走

邻居的报纸,那就是时候了。


[SNIP]

This is a joke, yes?

--
WW aka Attila
:::
It''s always darkest before dawn. So if you''re going to steal the
neighbor''s newspaper, that''s the time to do it.


白Wolf写道:
prabhu写道:
prabhu wrote:
请给我发一个下面提到的问题的程序。
[SNIP]
please sent me a program for the below mentioned problem.
[SNIP]

This is a joke, yes?




不 - 我不这么认为:-)


虽然你是这样的,你能给我一些编写下一部作品的代码

的威廉莎士比亚吗?或者更好的是,这将创造下一个音乐版的




Nope - I don''t think so :-)

While you''re at it, can you get me some code that writes the next works
of William Shakespeare ? Or better yet, somthing that will create the
next music hit.






Gianni Mariani写道:
Gianni Mariani wrote:
白狼写道:
prabhu写道:
prabhu wrote:
请给我发一个针对下述问题的程序。
please sent me a program for the below mentioned problem.



[SNIP]

这是个玩笑,是吗?



[SNIP]

This is a joke, yes?



不 - 我不这么认为: - )

当你在这里时,你能不能给我一些代码来写下威廉·莎士比亚的下一部作品?或者更好的是,这将创造下一个音乐效果。



Nope - I don''t think so :-)

While you''re at it, can you get me some code that writes the next works
of William Shakespeare ? Or better yet, somthing that will create the
next music hit.




当然可以。请下载我的开源Monkey和Typewriter类。

实例化几十亿std ::对,然后调用Monkey的RandomType()

成员。事实证明,威廉·莎士比亚的下一部作品

将由其中一对产生。 :-)


对于下一个音乐节目我可以拿出标题:doooo我的工作

meee!哦,是的。


-

WW aka Attila

:::

英特尔:我们将嗯......放在奔腾中。



Sure I can. Please download my open source Monkey and Typewriter classes.
Instantiate few billion std::pair of them and then call the RandomType()
member of Monkey. It is proven that the next works of William Shakespeare
will be produced by one the the pairs. :-)

For the next music hit I can just come up with the title: doooo my job for
meee! Ohhh yeahh.

--
WW aka Attila
:::
Intel: We put the ''um...'' in Pentium.


这篇关于用于c ++中的webserver日志分析器的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆