c#中的sscanf [英] sscanf in c#

查看:1176
本文介绍了c#中的sscanf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

任何人都知道c中是否存在类似sscanf的东西。

我发现了一些东西OL但是大多数都很老了。也许有些东西自2004年以来就有了


谢谢

迈克

Hello,
Anybody know if anything exists like sscanf in c.
I found a few things OL but most were pretty old. Maybe something has
come along since 2004?
Thanks
Mike

推荐答案



" AMP" < am ****** @ gmail.comwrote in message

news:11 ********************** @ k70g2000cwa .googlegr oups.com ...

"AMP" <am******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...

您好,

任何人都知道c中是否存在类似sscanf的内容。

我发现了一些OL,但大多数都很老了。也许有些东西自2004年以来就有
出现了吗?

谢谢

Mike
Hello,
Anybody know if anything exists like sscanf in c.
I found a few things OL but most were pretty old. Maybe something has
come along since 2004?
Thanks
Mike



是的,正则表达式:)正则表达式库。


HTH,

Mythran

Yup, regular expressions :) Regex library.

HTH,
Mythran



" AMP" < am ****** @ gmail.comwrote in message

news:11 ********************** @ k70g2000cwa .googlegr oups.com ...

|你好,

|有人知道c中是否存在类似sscanf的内容。

|我发现了一些OL,但大多数都很老了。也许有什么东西

|自2004年以来出现了什么?

|谢谢

| Mike

|


在String.Format上搜索doc',这是你能得到的最接近的。


Willy。


"AMP" <am******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
| Hello,
| Anybody know if anything exists like sscanf in c.
| I found a few things OL but most were pretty old. Maybe something has
| come along since 2004?
| Thanks
| Mike
|

Search the doc''s for String.Format, this is the closest you can get.

Willy.




" Willy Denoyette [MVP]" < wi ************* @ telenet.bewrote in message

news:en ************** @ TK2MSFTNGP05。 phx.gbl ...

"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:en**************@TK2MSFTNGP05.phx.gbl...

>

" AMP" < am ****** @ gmail.comwrote in message

news:11 ********************** @ k70g2000cwa .googlegr oups.com ...

|你好,

|有人知道c中是否存在类似sscanf的内容。

|我发现了一些OL,但大多数都很老了。也许有什么东西

|自2004年以来出现了什么?

|谢谢

| Mike

|


在String.Format上搜索doc',这是你能得到的最接近的。


Willy。
>
"AMP" <am******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
| Hello,
| Anybody know if anything exists like sscanf in c.
| I found a few things OL but most were pretty old. Maybe something has
| come along since 2004?
| Thanks
| Mike
|

Search the doc''s for String.Format, this is the closest you can get.

Willy.



如果我没记错,sscanf没有格式化输出,它从预先格式化的

读取输入串。为此,你可以使用正则表达式。


HTH,

Mythran

If I remember correctly, sscanf doesn''t format output, it reads input from a
pre-formatted string. For that, you can use regular expressions.

HTH,
Mythran


这篇关于c#中的sscanf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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