I have to below code that I came up with but instead of using an array I need to use a linked list. What I am trying to do is take linked list of letters a-i and reverse them in a new linked list. I had posted this on Dreamincode.net but they are having problems with the site. Can some one help me out here. I have been searching many different sites for the past few days trying to figure this out on my own and can't seem to figure it out.
Code:#include <iostream> using namespace std; int main(){ char a[9] = {'a','b','c','d','e','f','g','h','i'}; for (int i=1;i<=9;i++){ a[i-1]; } cout<<"\n\n Here they are in reverse order: \n"; for (int i=8;i>=0;i--) cout<<a[i]<<endl; char c; cin>>c; }



LinkBack URL
About LinkBacks


