This program crashes every time I run it. The debugger error is
"An unhandled exception of type 'System.AccessViolationException' occurred in volumes.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
My program is just to find the volume of a cube if the user enters the string cube but I cannot get the if statement to start.
Here is the program
string shape, cube, box, cylinder;
printf ("Please enter the shape:");
i = strcmp( shape, cube );
double s, cvol;
printf ("Enter side length");
printf ("The volme of a cube with side length= %lf is %lf\n", s, cvol);