开发者

Read array of ints in C

开发者 https://www.devze.com 2023-02-12 09:48 出处:网络
I need a help with reading from stdin in C something like this: It is array of ints separated by space like this 32 342 354 231 3开发者_StackOverflow4.... so I need to read every number into array of

I need a help with reading from stdin in C something like this: It is array of ints separated by space like this 32 342 354 231 3开发者_StackOverflow4.... so I need to read every number into array of ints and I have the number of numbers.

Hope that someone can help, Sincerely, Stefan Hacko


Do you know how many ints you need to read? Try the scanf function.

0

精彩评论

暂无评论...
验证码 换一张
取 消