Math, asked by vikaries5215, 1 year ago

Expression in new-declarator must have integral or enumeration type

Answers

Answered by raksha77
0

or message: expression in new declarator must have integral or enumeration type

General Chat

Error message: expression in new declarator must have integral or enumeration type

General Chat

Saptaparnee_12

1

Jan '18

#include <iostream>

#include <cmath>

#include <new>

using namespace std;

struct vector

{

double x,y,z;

};

struct ivector

{

int ix,iy,iz;

};

struct vmodel

{

int nx,ny,nz; //grid dimensions

int nr; //number of reflectors

struct vector r1,r2; //2 corners of the spanning model

float dx,dy,dz;

float s1_size,rf_size,jp_size,ir_size,ij_size,layer_size;

// dynamic arrays being declared here

float *s1=new float[s1_size];

float *rf=new float[rf_size];

float *jp=new float[jp_size];

int *ir=new int[ir_size];

int *ij=new int[ij_size];

int *layer=new int[layer_size]

Answered by pratikshatrivedi8
0

Answer:

thanks Raksha for............... ... ..........

Similar questions