Results 1 to 5 of 5

Thread: initializing a char? {Resolved}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    initializing a char? {Resolved}

    Ok, I feel really stupid for not know how to do this, and I can't even find it on the internet.

    I want to initialize either a char or a string to have the value "x".

    I've tried several ways:

    char player = "x"; //doesn't work

    string player("x"); //doesn't work


    What am I doing wrong??
    Last edited by System_Error; Aug 23rd, 2005 at 10:22 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width