Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
C++03
-pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -std=c++98 -pedantic
prog.cc: In function 'int main()':
prog.cc:16:13: warning: ISO C++ forbids variable length array 'stockArray' [-Wvla]
   16 |         int stockArray[Stock_Items][NR_materials]= {{50,10,20},{40,50,60},{30,20,10}};
      |             ^~~~~~~~~~
prog.cc:16:13: warning: ISO C++ forbids variable length array 'stockArray' [-Wvla]
Hello user! Welcome to the furniture program 

This program works using a 2 D array 
 
 It calculates the amount of stock in the shop and the amount of leather items
The total amount of stock in the shop is: 290 items. 
 
The total amount of leather items is: 80 items.
 
Exit Code:
0