Still stuck, please help

This is a discussion on Still stuck, please help within the C++ Programming forums, part of the General Programming Boards category; hi, quickly read my previous message: http://www.cprogramming.com/cboard/s...&threadid=6616 How do I implement what Fordy recommended. And whats the parameters for the ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    3

    Unhappy Still stuck, please help

    hi, quickly read my previous message:
    http://www.cprogramming.com/cboard/s...&threadid=6616

    How do I implement what Fordy recommended. And whats the parameters for the Strcpy()?

    1 more quick thing, but the above is most important. Know any good sites for learning the finer side of Strings (all most bizarre to me coming from Java)... Something intermediate.

    Thanks

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    char* strcpy(char* destination ,const char* source)

    copies null terminated string source to destination ( which must somehow have been previously allocated ( array/new/malloc)). destination is returned.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Unregistered
    Guest
    dont forget to add 1 to your memory allocation. This will account for the NULL that is added.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 10-23-2006, 08:22 PM
  2. string array stuck:(
    By mass in forum C Programming
    Replies: 18
    Last Post: 05-22-2006, 05:44 PM
  3. Program stuck in infinite loop-->PLEASE HELP
    By Jedijacob in forum C Programming
    Replies: 5
    Last Post: 03-26-2005, 12:40 PM
  4. Stuck on random generating
    By Vegtro in forum C++ Programming
    Replies: 3
    Last Post: 10-01-2003, 08:37 PM
  5. stuck ky
    By JaWiB in forum Tech Board
    Replies: 2
    Last Post: 06-15-2003, 09:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21