Search:

Type: Posts; User: UltimateCoder

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    2,074

    Thanks, what I was hoping to do is to just divide...

    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.
  2. Replies
    23
    Views
    2,074

    I just noticed do I need to do anything with the...

    I just noticed do I need to do anything with the char dot. maybe dot="."
  3. Replies
    23
    Views
    2,074

    Ok thanks can I then just assign vectorLong[0] to...

    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?
  4. Replies
    23
    Views
    2,074

    That looks good, but how do I then accsess the...

    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".
  5. Replies
    23
    Views
    2,074

    Could you prehaps explain the loop? Also would...

    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...
  6. Replies
    23
    Views
    2,074

    I am wanting to convert the into numbers enabling...

    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...
  7. Replies
    23
    Views
    2,074

    I'm sorry but I'm completly lost. Could you maybe...

    I'm sorry but I'm completly lost. Could you maybe post a snippet showing what it looks like?
  8. Replies
    23
    Views
    2,074

    could i then say numbers=getline(decode_message,...

    could i then say numbers=getline(decode_message, ".");
  9. Replies
    23
    Views
    2,074

    Will that assing each section to a variable? I...

    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.
  10. Replies
    23
    Views
    2,074

    Sorry back ,problem was not solved. I tried using...

    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;
  11. Replies
    23
    Views
    2,074

    Thanks

    Thanks
  12. Replies
    23
    Views
    2,074

    Spliting up a string of numbers.

    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 ...
Results 1 to 12 of 12