C++ Application #2 – String Literal / Escape Characters Exercise

// String Literals / Escape Characters Exercise - Outputs a string that contains a quotation mark and a backslash
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "This (\") is a quote, and this (\\) is a backslash." << std::endl;
	// std::cin.get(); // Prevents the console from closing
	return 0;
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s