charactor quoting problem

I wanted to quote character upper come, " ' " in swithch statement but it showed two errors(in the last row), in visual c++.

"IntelliSense: quoted string should contain at least one character"
"IntelliSense: missing closing quote"


Is there a way to quote upper coma?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include<conio.h>

using namespace std;


void main(){

	char sym;
	int col;
start:

	cout<<"Please enter a symbol :";
	cin>>sym;

	switch(sym){
	case '-':
	case '"':
	case ',':
		case ''': 
Last edited on
You need to escape it.

case '\'':
Thank you :)
Topic archived. No new replies allowed.