Quotation marks in quotation marks

Hi, I want to make a program which turns off the computer. See:
1
2
3
4
5
6
7
8
9
10
#include <stdlib.h>

using namespace std;

int main()
{
	system("@ECHO off");
    system("shutdown /s /f /t 30 /c You are #*@%");
    return 0;
}

How to make it works? I know "You are #*@%" must be in quotation marks but then it shows an error.
Last edited on
Use \" to represent a quote when it is part of a quoted string.

See Escape code on this page:
http://www.cplusplus.com/doc/tutorial/constants/
Topic archived. No new replies allowed.