Thanks, what I was hoping to do is to just divide it by 2 or something, and then add 2, leaving me able to change it back to a letter.
You guys have been really helpful, I have got it working now.
Type: Posts; User: UltimateCoder
Thanks, what I was hoping to do is to just divide it by 2 or something, and then add 2, leaving me able to change it back to a letter.
You guys have been really helpful, I have got it working now.
I just noticed do I need to do anything with the char dot. maybe dot="."
Ok thanks can I then just assign vectorLong[0] to another variable?
Also can I just change the vector name by editing the long inside the angle brackets?
Finaly what header does it require?
That looks good, but how do I then accsess the number. It would best if I could assign it to a variable.
Also will that continue after the first dot and do it for the second "group".
Could you prehaps explain the loop? Also would this work
if decode_message is a char string, and then I said:
numbers=decode_message[0]+decode_message[1]+decode_message[2]+... all the way...
I am wanting to convert the into numbers enabling me to do some maths giving just a small number at the end.
The largest number will not exceed maybe 8 didgitis but it can become smaller if that...
I'm sorry but I'm completly lost. Could you maybe post a snippet showing what it looks like?
could i then say numbers=getline(decode_message, ".");
Will that assing each section to a variable? I have only been using C++ for a few weeks, and I am not quite sure what getline does.
Sorry back ,problem was not solved. I tried using the getline() but it didn't work.
#include<iostream>
#include<cstring>
using namespace std;
int main ()
{
char decode_message;
Thanks
I have just started with C++ and am making some basic text stuff. I am making some "encryption" software, but am stuck with the decoding part.
The user will enter a string of numbers like ...