- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
template <typename T>
void SwowArray(T arr[], int n); // #A
template <typename T>
void ShowArray(T * arr[], int n); // #B
struct debts
{
	char name[50];
	double amount;
};
int main() 
{
	int things[6] = {12, 34, 43, 21, 56, 666};
	struct debts mr_dick[3] =
	{
		{"Pizdabol Ivan", 999.0},
		{"Xuesos Vasya", 45.0},
		{"Prostitutka Alla", 548.0}
	};
	double * pedo[3];
	for(int i = 0; i < 3; i++)
	{
		pedo[i] = &mr_dick[i].amount;
	}
	
	cout << "Trololo Mr.Dick: \n";
	ShowArray(things, 6);
	cout << "Listening Debilov: \n";
	ShowArray(pedo, 3);
	cin.ignore();
	cin.get();
	return 0;
}
// #A
template <typename T> void ShowArray(T arr[], int n)
{
	cout << "Template A \n";
	for(int i = 0; i < n; i++)
		cout <<arr[i]<<" ";
	cout << endl;
}
template <typename T> void ShowArray(T * arr[], int n)
{
	cout << "Template B \n";
	for(int i = 0; i<n; i++)
		cout <<*arr[i]<< " ";
	cout << endl;
}
                                     
        
            не могу понять почему выводится ошибка, как бы не должно ее быть, компилятор указывает на 34 строку