回答編集履歴
1
コメントの修正
    
        answer	
    CHANGED
    
    | 
         @@ -10,11 +10,12 @@ 
     | 
|
| 
       10 
10 
     | 
    
         
             
            	Random(ans);
         
     | 
| 
       11 
11 
     | 
    
         
             
            	while (1) {
         
     | 
| 
       12 
12 
     | 
    
         
             
            		cout << "0~100の数値を入力" << endl;
         
     | 
| 
       13 
     | 
    
         
            -
            		cin >> N;
         
     | 
| 
      
 13 
     | 
    
         
            +
            		cin >> N;         // ★
         
     | 
| 
       14 
14 
     | 
    
         
             
            		if (!cin) break;  // ★
         
     | 
| 
       15 
15 
     | 
    
         
             
            		if (any_of(N.cbegin(), N.cend(), not_digit)) {  // ★
         
     | 
| 
       16 
16 
     | 
    
         
             
            			cout << "Error" << endl;
         
     | 
| 
       17 
17 
     | 
    
         
             
            			continue;     // ★
         
     | 
| 
       18 
18 
     | 
    
         
             
            		}
         
     | 
| 
       19 
19 
     | 
    
         
             
            		num = stoi(N);    // ★
         
     | 
| 
       20 
     | 
    
         
            -
            ```
         
     | 
| 
      
 20 
     | 
    
         
            +
            ```
         
     | 
| 
      
 21 
     | 
    
         
            +
            修正箇所の意味が理解できますか?
         
     |