Thread: Anyone know what this means?

  1. #1
    Registered User
    Join Date
    Feb 2002

    Question Anyone know what this means?

    i found this encryption code online but i'm not as advanced as the code is so can someone explain to me what is going on in this section. i have included the part of the code i didn't understand.


    void decrypt(char *daf)//the decrypting function
    int decr; //the main int
    char x; //the input char

    ifstream in; //input stream
    ofstream out; //output stream;//open the inout stream
    {//see if it's not there
    cout<<"Error couldn't open the IN file\n";//print
    cout<<"Press \"m\" to return to main menu";
    }//END OF IF

    cout<<"Enter the OUT file name: ";//ask for the out filename
    cin>>daf;//get it;//open the outfile
    in.get(x);//get the input char

    if( in.eof() )//IF READING END OF FILE
    }//END OF IF

    {//while x is not beyond end of file
    decr=x+0xFACA;//the dectypring
    in.get(x);//get the next char

    if(in.eof())//if read beyong the eon of file


    i don't understand what the line decr=x+0xFACA means. when i typed the 0xFACA into my program it turned into a special font. not the font of a reserved word, just a different font from the other text. the encryption function is the same as the above line except it says x-0xFACA. any help would be appreciated.

    thanks all

  2. #2
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    1. Use the code tags when posting everyone says around's very hard to read code when it's not code, just a bunch of letters*not all of that, but use the friggin' code tags*

    2. The little 0xfca or whatever is a charecter identifier in hexidemal. Don't bother typing that in......

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What does this code means?
    By junkeat90 in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2008, 05:03 AM
  2. Replies: 2
    Last Post: 05-15-2007, 03:30 AM
  3. Error, not sure what it means.
    By RealityFusion in forum C++ Programming
    Replies: 1
    Last Post: 09-25-2005, 01:17 PM
  4. what does "close wait" and "fin_wait2" means?
    By hanhao in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-18-2005, 05:14 AM
  5. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 12:36 PM