the " character

everytime i try to do the hello world text i can't get the symbol (") to come up. i have an english (uk) keyboard runnin 64bit windows 7 home premium how can i get round this? i have tried to use the @ button and have looked at english us keyboards and tried it that way but no joy
Last edited on
What do you mean you cant get it to come up? Theres a key that does ' but when you press shift + ' = "
i put in cout << "hello world!" and in screen it comes out as cout << hello world ! the program then comes back with 6 errors
its cout<<"Hello world"<<endl;

you have to use ; to close the lin :D
<<endl is optional but you need ";"
Something to learn is you really need to use semi colons;


Try this

cout << "Hello World!";
Last edited on
thats what
im trying to get " " but when i type it on my keyboard nothing happens " doesn't come up on screen
Oh you are trying to get ";" but its not appearing on the screen correct?
Last edited on
In your comment you said your using

cout<<"Hello World!"
You need
cout<<"Hello World!";

This is the most common, Hello World. Make sure yours looks similar

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main ()
{
  cout << "Hello World!";
  return 0;
}


If your tutorial is different. I suggest www.cplusplus.com/doc/tutorial
Last edited on
http://en.wikipedia.org/wiki/Keyboard_layout#United_Kingdom

Suggests that shift+2 would be the way to go.

You may also want to check

Control Panel -> Clock, Language, Region -> Region and Language -> Change keyboards or other input methods

From there you can click on Change Keyboards from the Keyboards and Languages tab to see what layout Windows is assuming.
Just press the key to get the Colon ":" without pressing shift to get a Semi-Colon ";"
Topic archived. No new replies allowed.