Help please. Code error.

Hi, I am learning C++ from Accelerated C++ book. I tried to do the excersive but the coded is not working. I have check a couple of times and could not see what is wrong with the code. Please help. Thank you.

1
2
3
4
5
6
7
8
9
10
  #include <iostream>

int main()
{
	std::cout
		<< "This (\") is a quote, and this (\\) is a backslash."
		<<std::endl;

		return 0;
}
closed account (28poGNh0)
You code is fine did you do your Hello world program?
what makes you think that the code is not working?
Just some basic advice include using namespace std; so you dont have to keep typing
std::
I have finally find out what is wrong with it. I have selected Win 32 Project instead of Win32 Console App.

@xistenial, thanks for the tip!

Thanks again!
Last edited on
Topic archived. No new replies allowed.