|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
想用c语言或者c++从1.txt文件中通过文件操作和字符串操作函数,找到并打印出<code></code>直间的数字怎么搞?
1.txt内容如下:
-----------------------------------
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>IP.cn - IP 地址查询 | 地理位置 | 手机归属地</title>
<meta name="robots" content="all" />
<meta name="Keywords" content="IP,IP查询,本机IP,外网IP,IP地址查询,地理位置查询,手机号,归属地">
<meta name="Description" content="专业 IP 地址查询、地理位置查询、精确 IP 数据库、手机号归属地查询、电话号码黄页查询,可查广告、骚扰、快递、银行、保险、房地产、中介电话。">
<link href='css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, minimum-scale=0.5">
<meta name="format-detection" content="telephone=no">
<!--[if lt IE 8]>
<script src="js/ie8.js"></script>
<![endif]-->
<link href='css/main.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="container-fluid">
<div class="header">
<a href="/"><img src="img/logo.gif"></a>
</div>
<div class="mainbar">
<ul class="nav nav-pills center-pills">
<li class="active"><a href="/">IP 查询</a></li>
<li><a href="db.php">手机、电话号码数据库</a></li>
<li><a href="dns.html">DNS</a></li>
<li><a href="qr.html">二维码</a></li>
</ul>
</div>
<div class="searchform">
<form name="fs" action="index.php" method="GET" class="form-search">
<input name="ip" type="text" placeholder="请输入要查询的域名或 IP 地址" class="span3">
<input id="s" type="submit" class="btn btn-primary" value="查询">
</form>
</div>
<div id="result"><div class="well"><p>当前 IP:<code>221.176.187.235</code> 来自:河南省 移动</p><p>GeoIP: Anyang, Henan, China</p></div></div>
<div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-3481174845578636"
data-ad-slot="4351448301"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div id="duoshuo">
<!-- Duoshuo Comment BEGIN -->
<div class="ds-thread" data-thread-key="221.176.187.235" data-title="221.176.187.235" data-url=""></div>
<script type="text/javascript">
var duoshuoQuery = {short_name:"ipcn"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = 'http://static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- Duoshuo Comment END -->
</div>
<div id="range">
<div class="alert alert-info">
最近查询: <a href="ip-121.16.30.162.html">121.16.30.162</a> <a href="ip-80.161.34.246.html">80.161.34.246</a> <a href="ip-113.210.132.228.html">113.210.132.228</a> <a href="ip-114.232.26.171.html">114.232.26.171</a> <a href="ip-121.16.30.152.html">121.16.30.152</a> <a href="ip-121.16.30.148.html">121.16.30.148</a> <a href="ip-111.26.5.30.html">111.26.5.30</a> <a href="ip-121.16.30.135.html">121.16.30.135</a> <a href="ip-121.16.30.132.html">121.16.30.132</a> <a href="ip-116.208.103.135.html">116.208.103.135</a> </div>
</div>
<div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-3481174845578636"
data-ad-slot="4351448301"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="footer">
<p>©2006-2014 IP.cn 京 ICP 备 06037590 号</p>
<p><a target="_blank">iPad, iPhone软件游戏下载</a> <a >TCP加速</a></p>
</div>
</div>
</body>
</html>
----------------------------------------------------------------------------
|
|