I need help with an assignment that is due on monday and i dont know how to solve it!!!!!
question is:
One program should perform all the tasks given in the following 3 subproblems.
Therefore there must be one single .cpp file.
1:Read names from a file named “name.txt”, it sorts the names in ascending order
according to the last name (or first name is last names are the same) and print the
sorted names in a file named “sorted_name.txt”. The format of a name is :
FirstName LastName.
2:Read 2 positive integers from a user, it finds if the smaller (in number of digits)
number is present in the larger number and its indices. For example if user enters
54826827 and 82 then number 82 is present in 5482 at index 2 and 5.
3:Read an English sentence from a user and prints all the palindromes present in
the sentence. A palindrome can be other than a word. For example: “pop”, “eye”
and “a man a plan a canal panama”
plzz can some one send me the code for the above problem...i will be really gratefull for any help!!!!!!
cant u/or sum one else like give me the code fr it an like explain it to me.....an how can i put 3 questions of different type in a single code....????
so just tell me if u were given the same question how wud u hv tackled it...:-)...like an algorithm or sumthing....like wat kind of stuff shud be put.....and why and shud arrays be used ????stuff like that????