Giter Site home page Giter Site logo

wordcount's Introduction

wordCount项目博文传送门

wordCount

一个用C++实现的小项目。

功能

  • 基本功能
    • 统计C语言源文件的字符数
    • 统计C语言源文件的词的数目
    • 统计C语言源文件的行数
  • 拓展功能
    • 递归处理目录下符合条件的文件
    • 返回更复杂的数据(代码行 / 空行 / 注释行)

说明

首先编译wc.cpp源文件,生成执行文件。在Windows系统下会生成wc.exe,在Linux系统上会生成a.out。 下面以Linux系统为例进行说明。

  1. 查询字符数
./a.out -c FILE
  1. 查询词数
./a.out -w FILE
  1. 查询行数
./a.out -l FILE
  1. 查询更复杂的信息
./a.out -a FILE
  1. 以上参数可以一起使用,比如查询所有信息
./a.out -cwla FILE
  1. 此外,还可以递归查询目录
./a.out -cwlas DIR

TODO

实现图形界面

wordcount's People

Contributors

hyzgh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.