Such a comparison isn't possible because gram is a unit of mass and cubic centimetres is a unit of volume.
However a gram was initially defined as 'the mass of 1cm^3 of water at 4.0 degrees Celsius' So 1 cubic centimetre of water weighs a gram, but for any other substance, it comes down to the density of said substance. Thus any such conversion may not be made, but the volume (amount of cubic centimetres) can be deduced from the weight, though this is only applicable to water, at sea level and at 4.0 degrees Celsius.
1 gram
Think only of pure water and not of syrup or oil. For water: 60 cubic centimetres are 60 gram.
1,000,000 cubic centimeters
1728 cubic inches = 28316.8 cubic centimeters
28,316.85 cubic centimeters.
2,359.7 cubic centimeters.
22,653,477.3 cubic centimeters.
15
0.00317 cubic meters = 1000000 x 0.00317 cubic centimeters = 3170 cubic centimeters
8477 cubic centimeters are 517.298278691 cubic inches.
16.387 cubic centimeters per cubic inch.
18.2 cubic feet = 515,366.61 cubic centimeters.