English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

 Write a c++ program that take two strings and compare between them. This program tests the strings with these functions:


1 string_smaller_than( ):- Function which take two string and returns 'True' if 'first' is alphabetically smaller than 'second'. Otherwise, it return ‘False’

2 string_ptr_smaller_than ( ):- Pointer arithmetic version of function which returns 'True' if 'first' is alphabetically smaller than 'second'. Otherwise, it return ‘False’
Hint:-
1 You may assume that the two strings contain only lower case letters, and no blanks or other non-alphabetic characters.
2 Test your function with a suitable main program.

2007-12-11 04:53:37 · 3 answers · asked by seba 1 in Computers & Internet Programming & Design

3 answers

You'd learn more by
1 : Reading course materials
2 : Going to classes
and 3 : Doing your own homework

2007-12-11 04:55:51 · answer #1 · answered by stu_the_kilted_scot 7 · 3 0

I have an acoustic guitar. I broke one string once but good thing I had a spare one. After some time, the spare one broke as well.

2007-12-11 12:57:35 · answer #2 · answered by Anonymous · 0 0

I believe that the following program should work for you:

http://paragon.slayn.net/strings1.txt

2007-12-11 13:16:28 · answer #3 · answered by Stefan C 3 · 0 0

fedest.com, questions and answers