Search:

Type: Posts; User: dean11

Search: Search took 0.00 seconds.

  1. Thread: type conversion

    by dean11
    Replies
    7
    Views
    1,341

    ah ha I see, so 0 being ASCII 48 and 1,2,3 being...

    ah ha I see, so 0 being ASCII 48 and 1,2,3 being 49,50,51 you just subtract 48 to convert from ASCII to fingers and toes. very good.

    atoi seems to be working now too. thanks a lot.
  2. Thread: type conversion

    by dean11
    Replies
    7
    Views
    1,341

    Thanks Daved, however, une=abc[1]; //...

    Thanks Daved,

    however,



    une=abc[1]; // une = "2"

    uno=atoi(une);
  3. Thread: type conversion

    by dean11
    Replies
    7
    Views
    1,341

    type conversion

    Hi,


    why doesn't this work?


    #include <iostream>
    using namespace std;
    int main()
    {
  4. Replies
    5
    Views
    1,384

    I need to do a lot of operations on the string....

    I need to do a lot of operations on the string. This was all easy in Javascript where the processing could be done in a browser but I need a stand-alone exe that will do the same thing.

    For a...
  5. Replies
    5
    Views
    1,384

    Thanks, that's very helpful. The sites you...

    Thanks, that's very helpful.
    The sites you referred me to are excellent and I have bookmarked them for later.
    However, I still get no joy, because



    int une = sentstring[0] - '0';...
  6. Replies
    5
    Views
    1,384

    Changing variable's type ... basic

    Hi,

    this is "elementary my dear watson" stuff, but it beats me.

    I use the following:



    cout<<"enter a file name\n\n";
    cin>>filenam;
  7. Replies
    4
    Views
    1,700

    Thanks Dweia. This worked. Actually I/O was...

    Thanks Dweia.

    This worked.

    Actually I/O was the very next cprogramming tutorial I had to look at but I thought I was getting in too deep.
  8. Replies
    4
    Views
    1,700

    Pasting data from clipboard

    My users will be copying in a string about 50 characters long, which the program will decrypt. I have this working fine in a Javascript version. In C++ it's a different story. How can they paste this...
Results 1 to 8 of 8