Nov 29, 2012 at 6:57pm UTC
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 Nov 29, 2012 at 7:00pm UTC
Nov 29, 2012 at 7:00pm UTC
What do you mean you cant get it to come up? Theres a key that does ' but when you press shift + ' = "
Nov 29, 2012 at 7:04pm UTC
i put in cout << "hello world!" and in screen it comes out as cout << hello world ! the program then comes back with 6 errors
Nov 29, 2012 at 7:09pm UTC
its cout<<"Hello world" <<endl;
you have to use ; to close the lin :D
Nov 29, 2012 at 7:10pm UTC
<<endl
is optional but you need ";"
Nov 29, 2012 at 7:11pm UTC
Something to learn is you really need to use semi colons;
Try this
cout << "Hello World!" ;
Last edited on Nov 29, 2012 at 7:11pm UTC
Nov 29, 2012 at 7:12pm UTC
thats what
im trying to get " " but when i type it on my keyboard nothing happens " doesn't come up on screen
Nov 29, 2012 at 7:13pm UTC
Oh you are trying to get ";" but its not appearing on the screen correct?
Last edited on Nov 29, 2012 at 7:14pm UTC
Nov 29, 2012 at 7:14pm UTC
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 Nov 29, 2012 at 7:15pm UTC
Nov 29, 2012 at 8:51pm UTC
Just press the key to get the Colon ":" without pressing shift to get a Semi-Colon ";"