i have a sample C++ code - So that give me a Warning with this content : [Warning] extended initializer lists only available with -std=c++11 or -std=gnu++11 how i can solve that ?
This is my code :
#include <iostream>
using namespace std;
struct CandyBar
{
 const  char Brand[255];
  float Weight;
  int Calories;
};
  CandyBar Snake{"Mocha Munch",2.3,350};
int main()
{
  cout << Snake.Brand << endl;
  cout << Snake.Weight << endl;
  cout << Snake.Calories << endl;
  return 0;
}
 
     
    