ID00605buttonのような文字列を分割する必要があります。 私はID00605を手に入れたいです。 私のコード例: var contentLeftID;
var id = "ID00605button"
id = id.split(*some regex*);
contentLeftID = id[0] + id[1];
はそれがID00605を取得する
数字を取り、数値の数字を単語で表示するプログラムをコーディングしました。これまでのところ、私のコードは右側の数字を数えます。これをどうすれば解決できますか? マイコード: /*/ Write a program that reads an integer and extracts and displays each digit
of the integer in English. So
たとえば、42556です。数字の桁数がわからない場合は、最初の桁をどのようにして決定しますか?私は私に合ったアルゴリズムを見つけることができませんでした! int firstdigit(int n) {
int x = n;
while(n != 0) {
x = n%10;
n = n/10;
}
return