GithubHelp home page GithubHelp logo

rep06's Introduction

rep06

C言語初級者の学生から

キーボード(標準入力)から適当に文字列を読み込み,最初のc以降の文字列を画面(標準出力)に書き出すCプログラムを書きなさい

という問題の相談を受けたので,その場で書いてみたCプログラムです.

追記:ツールとして最低限の使用に耐えるレベルのプログラムになるように書き直したものを experimental/rep06a.c として置きました.

$ cc -o rep06a rep06a.c
$ ./rep06a -c, helloworld.txt

のように使います.ファイル名に - を指定すると標準入力を読みます.そのため

$ echo 'Hello, world.' | ./rep06a -c, -

のように使えます.

追記:Python3でだいたい同じことをするコードを experimental/rep06b.py として置きました.こちらはUnicodeが通ります.

$ python3 rep06b.py --separator , helloworld.txt

のように使います.

rep06's People

Contributors

kanaya avatar

Watchers

 avatar James Cloos avatar  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.