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:
Expand|Select|Wrap|Line Numbers
- #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