All pastes #565598 Raw Edit

c troubles

public text v1 · immutable
·published 2007-06-14 01:42 UTC
rendered paste body
im having trouble i want to get input from people, store it into a string, then change the characters of the string to their ascii value.  
this is what i have so far
#include <iostream>
using namespace std;

int main()
{
    char input[1001];
    int ascii[1001];
    cout << "---->Basic Ascii Decoder<----\n";
    cin.get();
    cout << "Please input the text to be decoded now\n";
    cin.getline( input, 1001, '\n');//getting their text
    cin.ignore();
    for (int i =0; i < 1000; i++)//for loop
    {
        //ascii[i] = toascii(input[i]);//commented out becuase i was having problems
        cout << input[i] + "\n";//this is just here to test if i am getting the string correctly, which i am not
    }
   
    
    return 0;
}