C++ Programs


Here is a list of 250 C++ programs .I have made all the programs using Code Block IDE and compiled it using GNU GCC compiler. Compiling programs in any different compiler like Turbo C might give errors, so small changes are required but concept remains same.

BASIC C++ PROGRAMS

2 comments:

  1. #include // std::cout
    #include // std::string
    #include
    using namespace std;




    int main ()
    {
    string d,c;
    cout<<"ENTER YOUR PASSWORD"<>d;
    int a=6;



    std::string str (d);
    std::size_t found = str.find_first_of("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,x,y,z");
    while (found!=std::string::npos)
    {
    str[found]=a;

    found=str.find_first_of("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,x,y,z",found+1);
    }
    cout<<"your encoded password is ";
    //std::cout << str << '\n';
    c =str;
    cout<<c;

    return 0;


    }






    can this code be used for encoding

    ReplyDelete