473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Microsoft Visual C++ 2005 Express Edition or dev-C++??

hey, i've got these two programs:Microsoft Visual C++ 2005 Express Edition and Dev-C++, but i want to choose the best , wich one?
when i start Microsoft Visual C++ 2005 then i select file >> new >> project , then a screen appears, but i want to set a program with the beggining with this:
#include <iostream.h>

void main()

[



but what must i choose , there is soo many:class library, CLR, empty project, WIN32 console application,...........
i dont know wich of these choises begins with:
#include <iostream.h>

void main()

[


thanks for answering, ah i forgotn something, its just : i want to make a program ,but what to choose?
Aug 14 '07 #1
4 2042
oler1s
671 Expert 512MB
Both IDEs use well known and reputed, quality compilers, so either one will do. Although since you are on Windows, you may want to prefer VC++ for (a) future support of Windows specific SDKs and (b) the debugger.

Your example program beginning is faulty. Get a better learning resource. C++ Primer by Lippman or Accelerated C++ by Koenig are solid beginner choices. If you have to go through a website, stick to cprogramming.com or cplusplus.com . The correct beginning program should be along the lines of:
Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.     std::cout << "Hello, World!" << std::endl;
  6.     return 0;
  7. }
  8.  
There may be slight variations. But telltale signs of an accurate resource are <iostream>, not <iostream.h> and int main, not void main.

but what must i choose , there is soo many:class library, CLR, empty project, WIN32 console application
You are writing (and will be for a long while) a standard C++ console application. Hence, either choosing Win32 console application, or empty project and then the appropriate settings, will do.
Aug 14 '07 #2
JosAH
11,448 Expert 8TB
Normally I start reading the manuals and then I'll try the different options I have.
But I know I'm an exception to the rule.

kind regards,

Jos
Aug 14 '07 #3
but i've read in the book that it's void main() and <iostream.h>, but i think it's i time ago that void was used, cause the book is of the year 1997, is that the problem,?
Aug 14 '07 #4
oler1s
671 Expert 512MB
A similar question was just asked and answered. main has always returned an int. A few compilers decided to allow void as well. However, C++ is a standard language, so these compilers broke the standard in that sense. If you try to use void main in any modern standards conforming compiler, including the recent VC++ editions, you will get at least a warning, if not a compile-stopping error.

<iostream.h> was the old header format in C++. All headers in the standard library, in C++, do not have the .h. C++ headers just have the .h part removed. C headers in modern C++ are prefixed with a c. Examples:

Expand|Select|Wrap|Line Numbers
  1. //Before, <iostream.h>
  2. #include <iostream>
  3. // Before, <fstream.h>
  4. #include <fstream>
  5. //Before <stdlib.h> (C library)
  6. #include <cstdlib>
  7.  
cause the book is of the year 1997, is that the problem,?
That would be the problem. The last revision was in 98/99. Significant changes were made, so it's important you get a modern book. C++ Primer (4th Edition) by Lippman and Accelerated C++ by Koenig are well recognized and ideal learning books. They are worth the money. Generally, if you see void main or iostream.h, walk away. If the book mentions the STL at the very end, walk away. If you see the book start out with C-style strings instead of C++ style, that's a bad sign.
Aug 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: Peter Hogg | last post by:
Hello, I recently downloaded 'Microsoft Visual C# 2005 Express Edition Beta'. It's been brilliant, but I couldn't help wondering what more you get when you buy 'Visual Studio .NET'. There must...
3
by: Pitaridis Aristotelis | last post by:
Is there any way to create setup for a project made in Microsoft Visual Basic 2005 Express Edition
8
by: JJ | last post by:
My potential shared hosting platform uses SQL server 2005. I am developing on the Express version. In order to make sure I am not going to cause myself any problems when I move my ASP .net 2.0...
45
by: mistral | last post by:
Does Visual C++ 2005 Express Edition produce small, compact C executables? Or there is another C compilers that do this better? m.
2
by: thersitz | last post by:
Hi, I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro machine. I installed it ok. I just attempted to load the Personal Web Site Starter Kit (I downloaded off...
67
by: Nimmi Srivastav | last post by:
Apologies if my cross posting has offended anyone.... For a pure hobbyist C/C++ programmer, who wants to develop applications to run on Windows, what would be a better choice to install: Visual...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
2
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.