I dont know how good you are going to undestand me:
I made an encryption program. It uses space between 2 letteres. Now I want to use the generated string and read every word at a time and convert it to a letter.
Here is the code:
// decript.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include <algorithm>
#include <iterator>
using namespace std;

int main() {

cout <<"Enter encripted text" <<endl;
char str[2];
cin >> str[1];
char line = str[1];
char pch;

pch = strtok (line," ");
while (pch != NULL)
printf ("%s\n",pch);
pch = strtok (NULL, " ");

For some reason, I doesnt works.
Please help me!