Cant enter a right curly brace !

Hi
I'm a beginner in c++ but i know the basics of C# and Java. I downloaded Visual C++ and tried to create a Hello World program. But I cant enter a closing bracket. The cursor is just still. I can enter the bracket in google, notepad, in a "new file" in visual c++ but not in any project i create???

What am I doing wrong?
I realize that the answer might be simple but I cant figure this one out...

Thanks in advance
Halli

P.S. Iðve tried reinstalling with no help :(
I can even copy it (ctrl +v) that is a short-time solution but why cant i enter it?
Nothing wrong with the keyboard because I can enter it everywhere else. I'm thinking could iðve disabled some option or something?
ð
Are you sure there's nothing wrong with the keyboard? Because those don't look like apostrophes to me.
Try setting your keyboard to european standard and hitting Alt+7? :P

Edit: Scratch that, Alt+7 Is only curly bracket on Scandinavian standard... *sigh*
Last edited on
Usually you can use ctrl+shift to switch with keyboard layouts, try that ;).
Thanks for the help. But it didn't solve my problem. The weird thing is that the curly bracket works in Visual C# 2010. The only thing that could have happened is that I might have changed some setting accidentally but I reinstalled Visual c++ and it did not help....
I tried to switch keyboard layouts from Icelandic to English (US) but then I couldn't do anything with Ctrl +Alt + something. I make ccurly braces with Ctrl + Alt + (7 or 0).
Try one of the nine trigraphs that should be supported by the preprocessor. I'm not sure if they are standard or just supported by GNU...and this still probably won't be the real solution to your problem. They are:

Trigraph:     ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
Replacement:    [    ]    {    }    #    \    ^    |    ~

Source:
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/cpp.pdf
Last edited on
You're supposed to use AltGr+(7 or 0).
Thanks for the help guys I really appreciate it. After 12 hours of irritation and reinstalling Visual C++ I found the problem. There is a standard shortcut in Visual C++ for CTRL+ALT+0 for View.View Code or something. That's why the right curly brace didn't print. I hope next time when someone has this trouble and googles it he finds this post and the solution.

-Just delete the standard shortcut

Thanks again.
I'd recommend that you do indeed use AltGr+7 instead of Ctrl+Alt+7... AltGr will usually not get you into any shortcuts with programs running.
Topic archived. No new replies allowed.