﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-畅游知识世界</title><link>http://www.cppblog.com/lilixin2788abc/</link><description>C++学习</description><language>zh-cn</language><lastBuildDate>Tue, 09 Jun 2026 22:45:48 GMT</lastBuildDate><pubDate>Tue, 09 Jun 2026 22:45:48 GMT</pubDate><ttl>60</ttl><item><title>让cpu占用率听你指挥</title><link>http://www.cppblog.com/lilixin2788abc/archive/2009/09/23/96997.html</link><dc:creator>莫云天</dc:creator><author>莫云天</author><pubDate>Wed, 23 Sep 2009 00:01:00 GMT</pubDate><guid>http://www.cppblog.com/lilixin2788abc/archive/2009/09/23/96997.html</guid><wfw:comment>http://www.cppblog.com/lilixin2788abc/comments/96997.html</wfw:comment><comments>http://www.cppblog.com/lilixin2788abc/archive/2009/09/23/96997.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/lilixin2788abc/comments/commentRss/96997.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/lilixin2788abc/services/trackbacks/96997.html</trackback:ping><description><![CDATA[   这几天从朋友那里淘到一本编程之美的书，看到微软的一个面试题蛮有意思的，在这里给那些和我一样是C++刚入门的朋友说一下，希望能有所进步。
    题目：
      1.CPU的占有率固定在50%，为一条直线；
      2.CPU的占有率为一条直线，但是具体占有率由命令行参数决定（参数范围1~100）；
      3.CPU的占有率状态时一条正弦曲线。
   希望各位朋友能给出一些更为简单的实现方法。具体的算法我将在今天晚上给出。
   第一次发帖，希望各位能多多支持啊！<img src ="http://www.cppblog.com/lilixin2788abc/aggbug/96997.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lilixin2788abc/" target="_blank">莫云天</a> 2009-09-23 08:01 <a href="http://www.cppblog.com/lilixin2788abc/archive/2009/09/23/96997.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>