scanf
ANSI C: Pass variables from (s)scanf to function call
My question is whether or not it is possible to directly pass the parsed stuff from (s)scanf to a function call. In other words whether I have to initialise the variables which I want to pass to开发者[详细]
2023-03-07 10:44 分类:问答Stdin problems with structure
struct x_firm { char name[50]; double lPrice; char EIK[14]; int day; int month; int year; }; typedef struct x_firm Firm;[详细]
2023-03-07 06:18 分类:问答C read string from std error
I want to read string from standart input and output it in on console. I use this way: char* cmdline; do{[详细]
2023-03-06 05:36 分类:问答scanf(" %[^\n]", s); then how to strcmp in C?
scanf(\" %[^\\n]\", in); then for example , i input Knock Kno开发者_如何学JAVAck and hit enter but my code block inside[详细]
2023-03-06 01:30 分类:问答Is scanf's "regex" support a standard?
Is scanf\'s \"regex\" support a standard? I can\'t find the answer anywhere. This code works in gcc but not in Visual Studio:[详细]
2023-03-06 01:28 分类:问答scanf to fgets C
Say I need to read in two name like, [name na开发者_如何学编程me]\\n .... (possibly more [name name]\\n . Assuming the name[详细]
2023-03-05 21:57 分类:问答PHP: sscanf extract values from string within double quotes [duplicate]
This question already has an answer here: How to unserialize an ArrayObject (1 answer) Closed 1 year ago.[详细]
2023-03-04 20:14 分类:问答newlib sscanf() throw hardfault exception in stm32
i use gcc compile my project, use the function sscanf() in main, the stack size is 4k, i debug the program in gdb, show VPUSH instruction throw the exception.[详细]
2023-03-04 16:29 分类:问答How can I read a string with scanf() in C++?
I can read a string with std::cin but I don\'t know how to read with one withscanf(). How can I change the code below to use scanf() ?[详细]
2023-03-04 14:52 分类:问答Help with scanf behaving differently on Big Endian system
My code is supposed to read a line from the user, if the line starts with \"output\" then it pri开发者_JAVA百科nts out \"Line is output\" and waits for the user to enter another line.[详细]
2023-03-04 03:54 分类:问答