Tuesday, 15 May 2018

escape sequences in c++

\n  for new line
\t for tab


for new line 

#include<iostream>
using namespace std;
int main()
       cout<<"this is my\n book";
}

for tab

#include<iostream>
using namespace std;
int main()
       cout<<"this is my\tbook";
}

No comments:

Post a Comment