S
storyGerald
Usually, people write the program like this:
// a very easy example:
#include <cstring>
int main() {
size_t length = strlen("Hello, world!\n");
return 0;
}
today, I open <cstring> file, and I found there are only declarations
in it.
My question is this: Without definitions, How can I use function
"strlen(...)"?
Did the compiler do something I don't know? Strange!!!
This puzzled me a lot, Would you please tell me the reason?
Thank you!
Gerald
At last, I don't know how to thank the friends who helped me. I pointed
out my problem, and you solve it without any pay ^_^. I do appreciate
what you have done. And I like to communicate with you all.
// a very easy example:
#include <cstring>
int main() {
size_t length = strlen("Hello, world!\n");
return 0;
}
today, I open <cstring> file, and I found there are only declarations
in it.
My question is this: Without definitions, How can I use function
"strlen(...)"?
Did the compiler do something I don't know? Strange!!!
This puzzled me a lot, Would you please tell me the reason?
Thank you!
Gerald
At last, I don't know how to thank the friends who helped me. I pointed
out my problem, and you solve it without any pay ^_^. I do appreciate
what you have done. And I like to communicate with you all.