password program

This is a discussion on password program within the C++ Programming forums, part of the General Programming Boards category; Hey everyone... fairly new at this C++, just started a few days ago. I was wondering how to set the ...

  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,077
    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,077
    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, 07: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, 07:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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