This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ScalePictures40() | |
Dim i As Long | |
With ActiveDocument | |
For i = 1 To .InlineShapes.Count | |
With .InlineShapes(i) | |
.ScaleHeight = 40 | |
.ScaleWidth = 40 | |
End With | |
Next i | |
End With |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/8767166/passing-2d-array-to-function/17569578#17569578 | |
#include <iostream> | |
template <size_t rows, size_t cols> | |
void process_2d_array_template( int( &array )[rows][cols] ) | |
{ | |
for ( size_t i = 0; i < rows; ++i ) | |
{ | |
std::cout << i << ": "; |