Cpp Basic 40: String

9 January 2020, 1:54 pm by antelove19

C++ programming language

C++ programming language



Happy Coding


main.cpp

/* ------------------------------------------------------------ */
/*  String                                                      */
/*  Using string library                                        */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <iostream> // standar input output library
#include <string> // string library

using namespace std;

int main() {

    string password = "secret";

    cout << "The password is " << password;

    return 0;

}

Thank for reading :)


Keywords:


No Action Title
1 Live
2 Editor
0 comment