Home > Back-end >  Ask: 360 C intercepted QQ news
Ask: 360 C intercepted QQ news

Time:10-05

Please advise, below I write their own procedures, there is something wrong with the input
#include
using namespace std;
Struct p {
Int y, m, d, h, mm, s;
} a [500000], t;
Int main () {
Char aa [500000], u [500000] [500000], the me [500000] [500000], I=0;
The scanf (" % s ", aa);
Int len=strlen (aa), tt;

While (1) {
The scanf (" % d, % d, % d % d: % d: % d % s % s ", & amp; A [I] y, & amp; A [I]. J m, & amp; A [I] d, & amp; A [I]. Am j h, & amp; A [I]. Mm, & amp; A [I] s, u [I], the me [I]);
If (STRCMP (aa, u [I])==0)
{
Printf (" % s ", the me [I]);
}
i++;
}
return 0;
}

CodePudding user response:

Although very rogue, the 360 will not be back this pot!

Write their own right, wrong post code to ask questions

CodePudding user response:

You row a sequence is a sequence, I thought all this blatant now,

CodePudding user response:

Nima, who is out of the topic, not told by 360, and such a topic is also very pissed, and every day the disinformation, shocked the media have what distinction

CodePudding user response:

Fun
reference 1 floor response:
although very rascal, the 360 will not be back this pot

Write their own right, wrong post code questions

How to input, can't, give advice or comments please

CodePudding user response:

The scanf (" % d, % d, % d % d: % d: % d % s % [^ \ n] ", & amp; A [I] y, & amp; A [I]. J m, & amp; A [I] d, & amp; A [I]. Am j h, & amp; A [I]. Mm, & amp; A [I] s, u [I], the me [I]);

Note that the final format

CodePudding user response:

The above is a kind of way to
The message itself also contains whitespace, so let the scanf input to % s format is not
The second way is
The scanf first half, when the message, and then added a gets function can
The scanf (" % d, % d, % d % d: % d: % d % s ", & amp; A [I] y, & amp; A [I]. J m, & amp; A [I] d, & amp; A [I]. Am j h, & amp; A [I]. Mm, & amp; A [I] s, u [I]);
Gets (me [I];

  • Related