I have an array of double pointers, but every time I try to print one of the values, the address will be printed. How to print the actual value?
cout <arr [i]? cout <& arr [i]? they both type the address
Somebody knows?
If this is really an array of (initialized) double pointers, that is:
double *arr[] = ... // Initialize individual values
anything you need:
cout << *arr[i];
cout <* (arr [i]) will print the value.
cout << *(arr[i]);
"arr"
double* arr[..];
:
cout << *(arr[i])
Source: https://habr.com/ru/post/1737869/More articles:http (/ * argument here * /) How is this object (Http) used without an explicit or implicit method? - scalaParsing ISO-8859-1 with NSXmlParser - xml. Кроме того, выбрасывает исключение - vb.netHow to authenticate a Windows Mobile client calling web services in a web application - securityPython accepting float for string - pythonGracefully exiting a thread in Ruby - multithreadingIncompatibility between Indy 9 and Windows Server 2003? - soaplinks and recommendations for binding options to x86 - assemblyКак выполнить поиск в базе данных MySQL для определенной строки - phpLPX-00607 for ora: contains in java but not sqlplus - javaAll Articles