I tried changing the curly brackets to parentheses and it compiled but then the next line didn't.
I am using Codeblocks 10.05 for my IDE. Later versions did not download a compiler, not sure why (Windows 7 64 bit SP1).
Also, my compiler finds errors but doesn't give me hints as to what the problem is. Until this time I was able to figure out the problems on my own.
Thank you!
hjf
I followed the tutorial exactly for installation. Perhaps I have to check some things in order for the compiler to provide error reports. Right now all I get is a red square by a faulty line. I would like to know how to get error reports.
Okay. I click on compiler every time and that is what gives me the red square. I have figured out everything on my own until now. I will try to find out what version of compiler compatibility I have. The person who suggested these tutorials said they would work fine with something lower than C++11 but perhaps that has changed over time. The lab I will be working in uses an older version of C++ so he thought I might as well use the version that the lab uses. But I want to keep using the tutorials so I will upgrade if I need to.
So, to make sure, the Hello line in my first post is correct with curly brackets if I have a C++11 compatible compiler?
edit:I checked. the compiler is not compatible with C++11.