Search:

Type: Posts; User: bond_006

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,448

    string to int array ?

    I've searched around and can't find out how to convert a string into an int array.

    so that:

    string myString = "12345" ;


    turns into:
  2. Replies
    6
    Views
    978

    Hmmm... I tried the .length as you suggested, but...

    Hmmm... I tried the .length as you suggested, but still get the runtime error... I'm trying to make sure that the user doesn't enter any data other than numbers.


    #include<iostream>...
  3. Replies
    6
    Views
    978

    That's another thing... when I make the number...

    That's another thing... when I make the number greater than 10 (say 15) I get an error when I try to enter anything into the program at runtime...
  4. Replies
    6
    Views
    978

    deleting parts of a string

    I'm trying to get my program to go through the string typed in by the user and strip it of EVERYTHING but the numbers. I can't place my finger on what I'm missing. Help please?


    ...
  5. Replies
    6
    Views
    850

    No, I want the array to store integer values, I...

    No, I want the array to store integer values, I just want to display the Element number of the array as an alpha letter (character) instead of an integer.

    Kind of like this:


    Element ...
  6. Replies
    6
    Views
    850

    "Easy" Array question

    How can I write an array that lists the elements as alpha letters instead of numbers?

    Like this:


    Element Value
    a 45
    b 5
    c ...
  7. Thread: variable

    by bond_006
    Replies
    3
    Views
    876

    variable

    I was trying to get my program to work the following way from the terminal (command prompt):

    a.out 20 < document.doc

    where the value "20" (or whatever is typed) is used as a variable in the...
  8. Replies
    4
    Views
    1,484

    Random number generator

    All fixed! Thanks!
  9. Replies
    8
    Views
    1,272

    stuck with toupper

    I'm trying to get my program to convert only the first character of each word typed in to caps. here's what I have, could someone give me some clues/pointers on what I am doing wrong please?


    ...
Results 1 to 9 of 9