新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 研友的交流园地,讨论关于计算机考研的方方面面。
    [返回] 计算机科学论坛计算机理论与工程『 计算机考研交流 』 → c  语言编程[求助] 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 5283 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: c  语言编程[求助] 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     hhyan 帅哥哟,离线,有人找我吗?射手座1985-12-18
      
      
      等级:大一新生
      文章:4
      积分:67
      门派:XML.ORG.CN
      注册:2006/3/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给hhyan发送一个短消息 把hhyan加入好友 查看hhyan的个人资料 搜索hhyan在『 计算机考研交流 』 的所有贴子 引用回复这个贴子 回复这个贴子 查看hhyan的博客楼主
    发贴心情 c  语言编程[求助]

    各位大师,这个问题帮我解决一下

       收藏   分享  
    顶(0)
      




    ----------------------------------------------
    huang

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/4 18:14:00
     
     Logician 帅哥哟,离线,有人找我吗?天蝎座1984-10-28
      
      
      威望:9
      头衔:逻辑爱好者
      等级:研三(收到IBM CRL的Offer了)(版主)
      文章:1219
      积分:10357
      门派:IEEE.ORG.CN
      注册:2005/3/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给Logician发送一个短消息 把Logician加入好友 查看Logician的个人资料 搜索Logician在『 计算机考研交流 』 的所有贴子 点击这里发送电邮给Logician  访问Logician的主页 引用回复这个贴子 回复这个贴子 查看Logician的博客2
    发贴心情 
    你的问题在哪儿?

    ----------------------------------------------
    Three passions, simple but overwhelmingly strong, 
    have governed my life: the longing for love, the
    search for knowledge, and unbearable pity for the
    suffering of mankind.
                                - Bertrand Russell

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/4 20:06:00
     
     elfstone 帅哥哟,离线,有人找我吗?射手座1983-12-6
      
      
      等级:大四(总算啃完XML规范了)
      文章:185
      积分:1177
      门派:IEEE.ORG.CN
      注册:2006/2/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给elfstone发送一个短消息 把elfstone加入好友 查看elfstone的个人资料 搜索elfstone在『 计算机考研交流 』 的所有贴子 引用回复这个贴子 回复这个贴子 查看elfstone的博客3
    发贴心情 

    楼主倒是贴问题呀。。。

    PS:又是编码错误。。。汗一个!

    ----------------------------------------------
    Ich liebe erst meines Leben...

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/4 20:32:00
     
     hhyan 帅哥哟,离线,有人找我吗?射手座1985-12-18
      
      
      等级:大一新生
      文章:4
      积分:67
      门派:XML.ORG.CN
      注册:2006/3/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给hhyan发送一个短消息 把hhyan加入好友 查看hhyan的个人资料 搜索hhyan在『 计算机考研交流 』 的所有贴子 引用回复这个贴子 回复这个贴子 查看hhyan的博客4
    发贴心情 
    不好意思 一时疏忽
    题目:C语言编程
    Image Deskew

    A good OCR (Optical Character Recognition) software would rely on a good number of algorithms. One of the crucial parts is to deskew the given text before it is recognized. The input image is mostly probably from a scanner where the operator does not always ensure that the text is in the correct direction. You will need to devise an algorithm to detect the skew angle of the given image.

    To be more realistic for the time frame given to work on the solution, a series of constraints are guaranteed:
    &Oslash; The original image is at least 512 pixels in width and height.
    &Oslash; Each pixel is either black or white (black for the text and white for the background).
    &Oslash; The image would contain at least 15 lines of text, in either English or Chinese. The image will have enough information in order for the skew angle to be calculated.
    &Oslash; The skew angle will be from -45 degrees to 45 degrees (inclusive).

    Input Description

    Standard input will contain multiple test cases. The first line of the input is a single integer T (1 <= T <= 10) which is the number of test cases. T test cases follow, each preceded by a single blank line.

    The first line contains two integers separated by a single space W and H (512 <= W, H <= 1,024), which are the width and height of the input image (in pixels). The following H lines contain W / 4 characters each, which are the hex representation of the image data. The left most pixel is the most significant bit of the hex string. It is guaranteed that W will be a multiple of 4.

    Output Description

    Results should be directed to standard output. Start each case with “Case #:” on a single line, where # is the case number starting from 1. Two consecutive cases should be separated by a single blank line. No blank line should be produced after the last test case.

    For each case, output in a line a single integer from in range of -45 to 45, which is the skew angle. Judge’s test cases are carefully designed to have integer outputs only, so you do not have to worry about rounding errors.

    Sample Input

    Samples (input and respective images) are included as attachments.

    Sample Output

    Case 1:
    -45

    Case 2:
    45

    ----------------------------------------------
    huang

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/5 17:44:00
     
     hhyan 帅哥哟,离线,有人找我吗?射手座1985-12-18
      
      
      等级:大一新生
      文章:4
      积分:67
      门派:XML.ORG.CN
      注册:2006/3/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给hhyan发送一个短消息 把hhyan加入好友 查看hhyan的个人资料 搜索hhyan在『 计算机考研交流 』 的所有贴子 引用回复这个贴子 回复这个贴子 查看hhyan的博客5
    发贴心情 
    不好意思 一时疏忽
    题目:C语言编程
    Image Deskew

    A good OCR (Optical Character Recognition) software would rely on a good number of algorithms. One of the crucial parts is to deskew the given text before it is recognized. The input image is mostly probably from a scanner where the operator does not always ensure that the text is in the correct direction. You will need to devise an algorithm to detect the skew angle of the given image.

    To be more realistic for the time frame given to work on the solution, a series of constraints are guaranteed:
    &Oslash; The original image is at least 512 pixels in width and height.
    &Oslash; Each pixel is either black or white (black for the text and white for the background).
    &Oslash; The image would contain at least 15 lines of text, in either English or Chinese. The image will have enough information in order for the skew angle to be calculated.
    &Oslash; The skew angle will be from -45 degrees to 45 degrees (inclusive).

    Input Description

    Standard input will contain multiple test cases. The first line of the input is a single integer T (1 <= T <= 10) which is the number of test cases. T test cases follow, each preceded by a single blank line.

    The first line contains two integers separated by a single space W and H (512 <= W, H <= 1,024), which are the width and height of the input image (in pixels). The following H lines contain W / 4 characters each, which are the hex representation of the image data. The left most pixel is the most significant bit of the hex string. It is guaranteed that W will be a multiple of 4.

    Output Description

    Results should be directed to standard output. Start each case with “Case #:” on a single line, where # is the case number starting from 1. Two consecutive cases should be separated by a single blank line. No blank line should be produced after the last test case.

    For each case, output in a line a single integer from in range of -45 to 45, which is the skew angle. Judge’s test cases are carefully designed to have integer outputs only, so you do not have to worry about rounding errors.

    Sample Input

    Samples (input and respective images) are included as attachments.

    Sample Output

    Case 1:
    -45

    Case 2:
    45

    ----------------------------------------------
    huang

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/5 17:44:00
     
     pkuyake 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:14
      积分:135
      门派:XML.ORG.CN
      注册:2006/4/6

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给pkuyake发送一个短消息 把pkuyake加入好友 查看pkuyake的个人资料 搜索pkuyake在『 计算机考研交流 』 的所有贴子 引用回复这个贴子 回复这个贴子 查看pkuyake的博客6
    发贴心情 
    顶一个.但我不会做.
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/4/6 18:04:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 计算机考研交流 』 的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/19 17:30:17

    本主题贴数6,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    140.625ms