where are those pages...i cant find them!
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.
"I saw a sign that said 'Drink Canada Dry', so I started"
-- Brendan Behan
Free Compiler: Visual C++ 2005 Express
If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?
Either with your compiler (hint: mentioning it might be helpful) or online. Google can do wonders.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
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'.Originally Posted by amy589
Also,Originally Posted by Dave_Sinkula
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
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:You can be all that you can be in the army.Is that what you are after?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
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Linux man...
Why not the official Cppreference?
http://www.cppreference.com/stdstring/index.html
"The Internet treats censorship as damage and routes around it." - John Gilmore
I'd pretty much prefer the real official reference for C.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/
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*