7 Posted Topics
dude void swap(char *p,char *q) , thts the function def, how are you calling it swap(a[j],a[n]);?? , the function expects a pointer not a chracter, no wonder it crashes
A simple program to calculate permutations of a string using recursion, I have used a malloc string of size 100 , you can change it to whatever value you want. The author is currently working at Microsoft,any questions can be directed to [email snipped]
This program was written and tested in unix/linux environment (in EMacs editor )with a GCC compiler.
the code now contains snippet to create the linked list too! any questions can be directed to [U][email protected][/U]
actually it looks complex bcoz you have initialized the array in read only memory it would be easier if you had dynamically allocated the array making it r+w
A simple program to calculate combinations of a string using recursion, I have used a malloc string of size 100 , you can change it to whatever value you want. The author is currently working at Microsoft. for eg if input string is abcd and you want all 3 letter …
Regular expression pattern match in a string, I only checked with * as wild card, other wild card characters are easy implement but I havent done that. any problems you can email me @ [email][email protected][/email] platform - Unix/Linux, havent tested in windows, should'nt be a problem unless some standard header …
The End.
roverphoenix