![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: May 2008
Posts: 11
Rep Power: 0
![]() |
Re: C++ compilers?
When I first starting using C++, I used Microsoft Visual C++ 2003, an it worked just fine for me. Of course I was also in a high school class, so I had an instructor. I've used Dev-C++ before, and from what I recollect, it was fine for starting out. I'm sure a beginner won't notice the features that it's missing until he/she moves on to something more complex.
|
|
|
|
|
|
#12 | |
|
Newbie
|
Re: C++ compilers? (sorry for the long message)
Ok, so I downloaded that Visual studio, and I tried to make a "Hello World" program. It didn't work. it just gave me a bunch of errors.
c Syntax (Toggle Plain Text)
Quote:
Last edited by big_k105; May 28th, 2008 at 9:11 AM. |
|
|
|
|
|
|
#13 |
|
hi: for(;;) goto hi;
|
Re: C++ compilers?
return 0; needs to be on a new line. Other than that I really don't see a reason it should fail. Are you sure that's all your code?
__________________
How do you play Religious Roulette? Stand around in a circle and blaspheme till someone gets struck by lightning. |
|
|
|
|
|
#14 |
|
Newbie
|
Re: C++ compilers?
that is all of my code.
__________________
*%>>Fr13Dt0<<%* |
|
|
|
|
|
#15 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3
![]() |
Re: C++ compilers?
The above code is correct, and I don't see any reason it should fail, even if you don't place "return 0" in a new line. I would assume there is something wrong with your Visual Studio installation.
And please use code tags next time, as it makes your code much easier for us to read.
__________________
Project::Soulstorm (personal homepage) |
|
|
|
|
|
#16 |
|
Newbie
Join Date: May 2008
Posts: 1
Rep Power: 0
![]() |
Re: C++ compilers?
g++ will work for u
u can get it in MinGW for windows and for linux, there are many packages available u can also configure it with eclipse and harness the feature of eclipse ![]() |
|
|
|
|
|
#17 |
|
Newbie
|
Re: C++ compilers?
I'm using microsoft visual C++ as a compilor, but i'm coding in C++, not visual C++. Could that be the problem? Also, on one of the little tutorials that came w/ the program, it drug me thru some thing where i had to make a class and stuff, do i need to do that?
__________________
*%>>Fr13Dt0<<%* |
|
|
|
|
|
#18 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 754
Rep Power: 3
![]() |
Re: C++ compilers?
Visual C++ is just the name of the IDE, the language is still C++. "Visual" is sort of the branding used by Microsoft: Visual C++, Visual C#, Visual Basic, and Visual Web Developer make up Visual Studio. I'm really not sure how this problem could be though; I tried it in Visual Studio and it worked fine for me.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#19 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,207
Rep Power: 5
![]() |
Re: C++ compilers?
My guess is that you've paraphrased your code, and not posted the actual code you fed to your compiler. Based on that guess, you probably left out a character somewhere and/or commented out something you didn't intend.
|
|
|
|
|
|
#20 |
|
Programmer
Join Date: Nov 2007
Posts: 86
Rep Power: 1
![]() |
Re: C++ compilers?
what type of project did you create? you should have created an "Empty Project". then you should go to the menu and choose "Project" > "Add New Item ...". Then you should choose Visual C++ as the category and "C++ File (.cpp)" from the right side. Then paste your code into that file and build.
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| question on compilers |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best compilers | sayu | Community Announcements and Feedback | 3 | Nov 19th, 2006 2:27 AM |
| whats up with those $300 compilers | hervens48 | C++ | 18 | May 3rd, 2006 2:28 AM |
| which is the best compiler for c++ | biohazard | C++ | 16 | Mar 3rd, 2006 8:29 PM |
| Python compilers | Indigno | Python | 7 | Mar 2nd, 2006 4:15 PM |
| How compilers work? | layer | Coder's Corner Lounge | 53 | May 24th, 2005 12:04 AM |