Site Tools


c_count

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c_count [2013/02/26 20:15] (current)
konovalov created
Line 1: Line 1:
 +  int arr[8] = {42, 31, 53, 31, 346, 31, 31, 1}; 
 +   
 +  int main(int argc, char** argv){ 
 +      int n; 
 +      n = count(arr, arr+8, 31); 
 +      cout << n << " find" << endl; 
 +  } 
 +  // вывод 
 +  4 find
c_count.txt · Last modified: 2013/02/26 20:15 by konovalov

Page Tools