|
Boost : |
From: saraylilar_at_[hidden]
Date: 2001-04-12 16:08:18
Hi,
Sorry to bother, can any professional C++ programmer help me pls ?
I need the solutions of the questions below urgently. Pls. mail me at
saraylilar_at_[hidden] or write to this mail list.
Thanx very much...
Saray
Here are the challenging C++ questions.
**********************************************************
(Pls. try to explain with either pseudo code or flowcharts)
1) Write a program that generates from the
string "abcdefghijklmnopqrstuvwxyz{" the following:
a
bcb
cdedc
defgfed
efghihgfe
fghijkjihgf
ghijklmlkjihg
hijklmnonmlkjih
ijklmnopqponmlkji
jklmnopqrsrqponmlkj
klmnopqrstutsrqponmlk
lmnopqrstuvwvutsrqponml
mnopqrstuvwxyxwvutsrqponm
nopqrstuvwxyz{zyxwvutsrqpon
2) Write a program that concatenates two linked list objects of
characters. The program should include function concatenate, which
takes references to both list objects as arguments and concatenates
the second list to the first list.
3) Write a program that merges two ordered list objects of integers
into a single ordered list object of integers. Function merge should
receive references to each of the list objects to be merged, and
should return an object containing the merged list.
4) Write a program that inserts 25 random integers from 0 to 100 in
order in a linked list object. The program should calculate the sum
of the elements and the floating-point average of the elements.
5) Write a program that creates a linked list object of 10 characters
and then creates a second list object containing a copy of the first
list, but in reverse order.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk