where are those pages...i cant find them!
Printable View
where are those pages...i cant find them!
there's a website you may have heard of... begins with a g?
anyway if you type stuff in there it finds it for you! in fact if you type strcpy or memcpy the very first link is what you want.
Either with your compiler (hint: mentioning it might be helpful) or online. Google can do wonders.
ive been searching on google and i cant find anything to do with <cstring> in relation to find and replace. Im using putty
sorry banshee
but i have to do that from a file...
how do i implement that to work so that it reads the 'find' from another file and replaces the word into another file, thus outputing to a new file?Code:char str1[]="Sample string";
char str2[40];
char str3[40];
strcpy (str2,str1);
strcpy (str3,"copy successful");
printf ("str1: %s\nstr2: %s\nstr3: %s\n",str1,str2,str3);
return 0;
Don't search for the header, search for the aforementioned functions. To increase your odds, precede the function name by 'man'.Quote:
Originally Posted by amy589
Also,Quote:
Originally Posted by Dave_Sinkula
banshee.
ive looked, how do i find from a file and replace to an outputted file.
>banshee.
So banshee is your compiler. I'm not familiar with it.
But I did do your assignment on input text with these three functions: strlen, strstr, and memmove.
It turned this:into this:Quote:
You can be all that you can be in the army.
Is that what you are after?Quote:
You can there all that you can there in the army.
[edit]If so, learn to do this:
http://www.google.com/search?q=man+strlen
http://www.google.com/search?q=man+strstr
http://www.google.com/search?q=man+memmove
Linux man...
Why not the official Cppreference?
http://www.cppreference.com/stdstring/index.html
I'd pretty much prefer the real official reference for C.Quote:
Originally Posted by maxorator
JTC1/SC22/WG14 - C
Grab n1124.pdf.
Or maybe see if you can find a C++ draft here:
JTC1/SC22/WG21 - The C++ Standards Committee
Or maybe http://dinkumware.com/