Home

Learn Programming & Prepare for NPTEL Exams... Swayam Solver is your one-stop destination for NPTEL exam preparation.

Programming in Modern C++ | Week 1 : Programming Assignments | Jan-2022 | NPTEL

 Programming in Modern C++


Due on 2022-02-10, 23:59 IST

----------------------------------------------------------
Week 1 : Programming Assignment 1
----------------------------------------------------------

    if (str1.length()<str2.length())      // LINE-1   



    else if (str1.length()==str2.length())    // LINE-2   
  

---------------------------------------------------------
Week 1 : Programming Assignment 2
---------------------------------------------------------

bool compare(char c1, char c2) {    // LINE-1



    return (c1>c2);              // LINE-2  


---------------------------------------------------------
Week 1 : Programming Assignment 3
---------------------------------------------------------

    sort(arr, arr+n);     // LINE-1



    replace(arr, arr+n, x, y);    // LINE-2


----------------------------------------------------------
----------------------------------------------------------

No comments:

Post a Comment

Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.