W1_Programming_Qs-1
#include <cmath> //LINE-1
return sqrt(pow(p1.y - p2.y, 2) + pow(p1.x - p2.x, 2)); //LINE-2
W1_Programming_Qs-2
bool max_str(string i, string j){ //LINE-1
return (i>j); //LINE-2
W1_Programming_Qs-3
s.push(words[i]); //LINE-1
std::cout << s.top() << " "; //LINE-2
s.pop(); //LINE-3
No comments:
Post a Comment