I'm having an error "a value of type "double" cannot be used to initialize an entity of type "double *"
Any tips? Thanks!
#include <iostream>
#include <string>
using namespace std;
struct sample {
string name;
double *num;
unsigned elements;
};
int main () {
sample x = {"Dude", {1, 2, 3, -5}, 4};
}