跳到主要內容
AI News HubLIVE
來源內容 · 翻譯待補全1 分鐘閱讀

待翻譯:I wrote my first C project after a long time. Unix wc clone. NO AI

文章摘要

AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 5 Commits 5 Com…

來源Hacker News AI作者: emanueleoggiano
待翻譯:I wrote my first C project after a long time. Unix wc clone. NO AI
回報錯誤

更正管道尚未開通,可先複製下方文章資訊留存。

查看更正說明
直接讀正文

AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。

Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 5 Commits 5 Commits .gitignore .gitignore LICENSE LICENSE README.md README.md main.c main.c Repository files navigation This project is an implementation of the Unix command wc (Word Count) written in C. It was built to understand how to read from a file and how to use macros to handle errors Functionalities Word Counter: Count the words in a given file, avoiding white spaces and other ascii symbols; Row Counter: Count the rows in a given file, analyzing the \n character. Usage To compile the main.c file you must have gcc or any other C compiler. In the terminal you write: gcc -O2 main.c -o word_count and then: ./word_count example.txt Example Suppose the example.txt file contains the following: Hello, 123, World !! WordCount Clone in C The output of the program will be: The number of words is: 7 The number of rows is: 2 TO DO Flag detector: Right now the program does not take -l, -w etc as arguments Character counter: Count the characters in the file Specific separator counter: Right now the program does not check for user requested separators as ,, ., etc License This project has been released under the MIT License Contribution Feel free to contribute to the project MIT license Activity Stars 0 stars Watchers 0 watching Forks 0 forks Report repository

展開要點與分析

文章情報

工程師中級

要點

  • AI 服務暫時不可用,系統已先保留來源內容與降級後設資料。
  • Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit da…

要點與分析由自動化流程生成,可能有誤,請結合原始來源核實。