Page 1 of 1
men.h or memory.h
Posted: Mon May 23, 2005 6:43 pm
by Alberto
Hello friends,
I am a beginner in this fantastic world and therefore I have many questions, two of them are:
- I can use the library "mem.h or memory.h", in particular the function "memset()" ?
- Where I can find the codes in C, C++ and PASCAL from the solutions to some problems?
PD:
Thank you for their answers.
Re: men.h or memory.h
Posted: Tue May 24, 2005 6:03 am
by sumankar
Alberto wrote:Hello friends,
I am a beginner in this fantastic world and therefore I have many questions, two of them are:
- I can use the library "mem.h or memory.h", in particular the function "memset()" ?
memset() and friends belong to string.h.Where did you get that mem.h from?
You can use string.h and hence memset to your heart's content.
- Where I can find the codes in C, C++ and PASCAL from the solutions to some problems?
That is the reason why we are all here, we are all looking for answers.Anyway, on a less philosophical note, I might add that there already are some pages like Shahriar Manzoor's essay on programming competitions, Steven Halim's website and Larry et al's wiki. Also there is a sample solution in all 3 languages supported by UVA for problem number 100.
And my golden advice

Try solving the problem on your own, the major hurdle next would be i/o,
for that search the board, you will get enough info.Submit.If not accepted, start afresh!
Hope that helps,
Suman.
Posted: Wed May 25, 2005 2:24 am
by milo
Well, i think both options work in UVA Judge, i often use memory.h, but you can use string.h too
Posted: Wed May 25, 2005 3:37 am
by Krzysztof Duleba
memset and memcpy are defined in string.h. memory.h simply includes string.h (and features.h on some systems as well).