问题描述
是否可以在C中使用数据文件?如果是的话可以有人
告诉我如何或建议我在哪里可以学习它们。
先谢谢您的耐心等待。
否,不是。数据文件是一个非常高级的信息主题理论,对于像C这样的简单语言来说太复杂了。事实上,即使是b $ b C ++,我们都知道这很多比C更强的语言,能够表达更高级数据类型的b $ b,几乎没有足够的强大价值来处理数据文件。
如果你真的需要使用C,坚持使用简单类型的文件,如二进制文件
和文本文件,并将所有数据保存在内存或堆栈中。如果你确实需要使用数据文件,我的建议是使用真正现代的,b $ b高级编程语言,如ADA,ML或Visual Basic。 />
Richard
不,它不是。数据文件是一个非常高级的信息理论主题,对于像C这样的简单语言来说太复杂了。实际上,即使是C ++,我们都知道它是一种比C更强大的语言,能够如果你真的需要使用C,坚持使用简单的文件,如二进制文件和文本文件,并将所有数据保存在内存或堆栈中。如果您确实需要使用数据文件,我的建议是使用真正现代的高级编程语言,例如ADA,ML或Visual Basic。
Richard
在这个回复中有讽刺,或者我们对术语数据文件有不同的理解。
我的理解是任何数据,整数,文本等等,将
放入文件使文件成为数据文件。那个文件
可以像单词列表一样简单,也可以像数据库一样复杂。
根据我的定义,任何具有文件访问权限的语言
功能可以使用数据文件。
OP应该检查文件。或I / O或I / O。一段好的
C语言参考手册。
-
托马斯马修斯
C ++新闻组欢迎辞:
C ++常见问题:
C常见问题:
alt.comp.lang.learn.c-c ++ faq:
其他网站:
- C ++ STL图书馆书籍
这个问题太模糊了,无法回答。我倾向于说答案是
是的。在你的问题的第二部分,获得一本关于C / $
语言的优秀教科书或在当地学校上课。对于没有编程经验的人,我还没有看到一个好的
在线教程。
-
发送电子邮件to:darrell at cs dot toronto dot edu
不要发电子邮件给
Hi,
Is it possible to make use of data files in C? If yes can someone
tell how or suggest me a site from where I can learn them.
Thanks in Advance for your patience.
No, it''s not. Data files are a very advanced subject of information
theory, much too complicated for a simple language like C. In fact, even
C++, which we all know is a much stronger language than C, capable of
expressing much more advanced data types, is barely strong enough to
handle data files.
If you really need to use C, stick to simple kinds of files like binary
and text files, and keep all your data in memory or on the stack. If you
do need to use data files, my suggestion is to use a truly modern,
advanced programming language, such as ADA, ML, or Visual Basic.
Richard
No, it''s not. Data files are a very advanced subject of information
theory, much too complicated for a simple language like C. In fact, even
C++, which we all know is a much stronger language than C, capable of
expressing much more advanced data types, is barely strong enough to
handle data files.
If you really need to use C, stick to simple kinds of files like binary
and text files, and keep all your data in memory or on the stack. If you
do need to use data files, my suggestion is to use a truly modern,
advanced programming language, such as ADA, ML, or Visual Basic.
Richard
Either there is sarcasm in this reply, or we have a different
understanding of the term "data file".
My understanding is any "data", integers, text, whatever, that
is placed into a file makes the file a "data file". That file
could be as simple as a word list or as complex as a database.
According to my definition, any language that has file access
capabilities can make use of data files.
The OP should review the "Files" or "I/O" section of a good
C language reference manual.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
The question is too vague to answer. I''d be inclined to say the answer is
YES. To the second part of your question, get a good text book on C
language or take a class at your local school. I have yet to see a good
online tutorial for someone with no programming experience.
--
Send e-mail to: darrell at cs dot toronto dot edu
Don''t send e-mail to vi************@whitehouse.gov
这篇关于数据文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!