Thread: password program

  1. #1
    Registered User remixx540's Avatar
    Join Date
    Nov 2005
    Location
    Mass, USA
    Posts
    4

    Post password program

    Hey everyone... fairly new at this C++, just started a few days ago. I was wondering how to set the value of a variable, without having a user input it first. I'm sure the answer is simple, but like I said, I just started out. Thanks

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Code:
    char foo;
    
    foo = 'a';
    Like that?
    Sent from my iPadŽ

  3. #3
    Registered User remixx540's Avatar
    Join Date
    Nov 2005
    Location
    Mass, USA
    Posts
    4
    ok great, I was trying to add the value at the same time I created it. Thanks

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Code:
     char foo = 'a';
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  2. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  4. Beginner needs help with password program
    By dnottus in forum C++ Programming
    Replies: 6
    Last Post: 04-22-2002, 06:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM