-3

Why Visual Studio 2019 Enterprise version is not supported to the default formation of C++, I used Code-Blocks for a long time and still using it. Code Blocks was my first IDE to start with C++ and now for the graphical interface I use Visual Studio but when it comes to editing the source code, Visual Studio is not accepting many things that is accepted in Code-Blocks. A little example is declaring a string in visual studio is not acceptable but it needs to be String to work properly. Maybe this is a Compiler Issue but I am not familiar with all Compilers, I used minGW in Codeblocks. Source Image

Ted Lyngmo
  • 93,841
  • 5
  • 60
  • 108
Саша
  • 837
  • 4
  • 12

1 Answers1

0

What you'll find is you're not including the string header, nor are you actually referencing the std::string object.

To import:

#include <string>

using std::string; // This is optional, but it saves you from having to type std::string all the time.
SimonC
  • 1,547
  • 1
  • 19
  • 43