Thanks for your reply, the programe you did is much better and neater compare to mine except that the add string will copy over the original string.
What I did here is to create a temp array to...
Type: Posts; User: Isotopes
Thanks for your reply, the programe you did is much better and neater compare to mine except that the add string will copy over the original string.
What I did here is to create a temp array to...
Sorry... another post... I'm so sick of tired of doing my C programming assignment. When will I achieve the level of your programming skill....
Here is the programe, and fatal error on the while...
Really thanks for your help... my life saviour... :) *kiss*
But how come with that extra line it make so much different ???
while(getchar() != '\n');
and when I run the programe, the...
yeah I know.. I can run the function... but when I impliment into my programe with many other functions together (as the file attached there)... that's when the problem come... I don't...
Why is it when I run the sub function programe is prefrectly fine but when I impliment it to the main programe it simply skip the input part... the fgets command....
here is the programe:
...
:( But but.... A search of sub-string "Hello!" (includind the !) in the string "Hello! World!" will only return 'Hell' and the Hello is at the begning of the string, or is it the strstr function can...
I'm stuck again, why am I unable to display the last character of the sub-string when the sub-string is located at the end of the string? I thought a NULL character is automatically appended to the...
why fget is used instead of get?? Will that affected the rest of the function (which I have not pasted it there....)
and why I can't use sizeof.
Strange enough, when I run the...
Thanks for Prelude's reply really appricate a lot.. however, when I try to impliment into my programe with the functions, it have general protection exception error. :( and the programme halt. I...
I want to make a string to reverse the words but remain the words position the same.. (if input is "Hello world haha", the output should be "olleH dlrow ahah"), what should I do.. can I use the...