Cpp Basic 11: Escape Character

7 January 2020, 9:46 am by antelove19

Cpp programming language

Cpp programming language



Happy Coding


main.cpp

/* ------------------------------------------------------------ */
/*  Output string                                               */
/*  Escape Character                                            */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <iostream> // standar input output library

using namespace std;

int main() 
{

    cout << "This is new line \n" << endl; // newline
    cout << "This is tab \t" << endl; // tab
    // cout << "This is \'single\' qoute" << endl; // single qoute
    cout << "This is \"double\" qoute" << endl; // double qoute
    cout << "This is back \\ slash" << endl; // backslash

    return 0;

}

Thank for reading :)



No Action Title
1 Live
2 Editor
0 comment