Thread: Need Help!!!!!

  1. #1
    Registered User
    Join Date
    Oct 2017
    Posts
    3

    Need Help!!!!!

    How do i use string in Dev C++?

  2. #2
    Registered User
    Join Date
    Jun 2017
    Posts
    157
    You use a string in Dev C++ as in any other C++ compiler / IDE

    #include <string>

    std::string msg = "Hello world!";
    or
    std::string msg("Hello world!");
    or
    std::string msg;

  3. #3
    Registered User
    Join Date
    Oct 2017
    Posts
    3
    Thanks!

Popular pages Recent additions subscribe to a feed

Tags for this Thread