Thank you for reading this discussion, your help is greatly appreciated.
My problem is that I am trying to make a program that reads a string and one by one picks the letter and gives it the preassigned integer.
Everything is going great, the only problem is that I cannot seem to get my program to read the string peice by peice. Here is the code:
	The only part of the code that is giving me trouble is the "original[position] = letter;" part.
Again, thank you for your time and effort.
--Parker Woods
					My problem is that I am trying to make a program that reads a string and one by one picks the letter and gives it the preassigned integer.
Everything is going great, the only problem is that I cannot seem to get my program to read the string peice by peice. Here is the code:
Code:
	#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sstream>
#include <string.h>
using namespace std;
int main()
{
string input;
int position;
char letter;
cin  >> input;
original[position] = letter;
...
Again, thank you for your time and effort.
--Parker Woods
Comment