News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Need help with the copy string function in Codeblocks

Started by sudama35, May 06, 2011, 05:58:36 PM

Previous topic - Next topic

sudama35

Hi there. I have to find a way to use the strcpy function in the code blocks editor. I have already included the <string>. I am getting an error when I use the following:
strcpy(film,"Jim Lang");
The error window is telling me that the strcpy was not declared. Kindly help. Thank you.

stahta01

#1
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

For help using C/C++ use sites like http://cboard.cprogramming.com/cplusplus-programming/
For help using you compiler; figure out the name of your compiler and Google it for help.
Turn on Full Compiler logging: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]