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:
Type: Posts; User: bond_006
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:
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>...
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...
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?
...
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 ...
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 ...
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...
All fixed! Thanks!
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?
...