各种功能之间的差异 [英] Difference between various functions

查看:60
本文介绍了各种功能之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以用简单的形式解释,
之间的区别是什么?
- scanf和sscanf和ssscanf

- printf和sprintf

- 开放和fopen


提前致谢,

SDZ

解决方案

SDZ< sa ****** @ hotmail.com>潦草地写道:

有人可以用简单的形式解释,
- scanf和sscanf之间的区别是什么?ssscanf


scanf从字符串中读取stdin,sscanf。 ssscanf不存在。

- printf和sprintf


printf打印到stdout,sprintf打印成字符串。

- open和fopen




open不存在。 fopen打开一个文件。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)---- ---------芬兰-------- \

\-- http://www.helsinki.fi/~palaste ---------------------规则! -------- /

这是,呃,非常书卷。

- Horace Boothroyd


2004-06-14,Joona I Palaste< pa ***** @ cc.helsinki.fi>写道:

SDZ< sa ****** @ hotmail.com>潦草地写道:

有人可以用简单的形式解释,


- scanf和sscanf之间的区别是什么? ssscanf



scanf从字符串中读取stdin,sscanf。 ssscanf不存在。

- printf和sprintf



printf打印到stdout,sprintf打印成字符串。
< blockquote class =post_quotes> - open and fopen



open不存在。 fopen打开一个文件。



打开是打开文件的UNIX系统调用。与ISO C无关。


-

计算机无用。他们只能给你答案

- Pablo Picasso


[wanadoo dot fr的paulo-pereira dot perso]


SDZ写道:


有人可以用简单的形式解释,

- scanf和sscanf之间的差异是什么?和ssscanf
- printf和sprintf
- open和fopen



你的C课本说什么?从

usenet的随机问题中学习C是一个坏主意,无法替代正确的学习。你浪费了你的时间和我们的时间。



Brian Rodenborn


Could somebody explain in simple forms, what is/are the difference(s) between

- scanf and sscanf and ssscanf
- printf and sprintf
- open and fopen

Thanks in advance,
SDZ

解决方案

SDZ <sa******@hotmail.com> scribbled the following:

Could somebody explain in simple forms, what is/are the difference(s) between - scanf and sscanf and ssscanf
scanf reads from stdin, sscanf from a string. ssscanf doesn''t exist.
- printf and sprintf
printf prints into stdout, sprintf into a string.
- open and fopen



open doesn''t exist. fopen opens a file.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"It was, er, quite bookish."
- Horace Boothroyd


On 2004-06-14, Joona I Palaste <pa*****@cc.helsinki.fi> wrote:

SDZ <sa******@hotmail.com> scribbled the following:

Could somebody explain in simple forms, what is/are the difference(s) between


- scanf and sscanf and ssscanf



scanf reads from stdin, sscanf from a string. ssscanf doesn''t exist.

- printf and sprintf



printf prints into stdout, sprintf into a string.

- open and fopen



open doesn''t exist. fopen opens a file.



open is an UNIX system call for opening files. Not related to ISO C.

--
"Computers are useless. They can only give you answers"
- Pablo Picasso

[paulo-pereira dot perso at wanadoo dot fr]


SDZ wrote:


Could somebody explain in simple forms, what is/are the difference(s) between

- scanf and sscanf and ssscanf
- printf and sprintf
- open and fopen


What does your C textbook say? Learning C from random questions on
usenet is a bad idea and no substitute for proper study. You are wasting
your time and ours.


Brian Rodenborn


这篇关于各种功能之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆