473,569 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

6 New Member
hey, i've got these two programs:Micros oft 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 2049
oler1s
671 Recognized Expert Contributor
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.co m 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 Recognized Expert MVP
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
mcfaker
6 New Member
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 Recognized Expert Contributor
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
6041
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 small or mid-sized business. ...
2
2150
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 be some considerable advantages of using it considering its price. So I'm asking you what 'Visual Studio .NET' has, that 'Microsoft Visual C# 2005...
3
1688
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
1467
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 sites (developed in Vis Studio 2005) to the host, should I be using my developers version of SQL 2005? If so, can I install it and keep my current...
45
2960
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
10855
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 Microsoft's site) to use with VStudio 2005 -- Installing it from the MS site failed without any error messages. When I used VSTudio to open, it loaded ok,...
67
733
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 C++ Express 2005 Edition or lcc-win32? Does anyone have any opinion to share? Also, is there a C++ compiler akin to lcc-win32? Thanks,
1
2496
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 both the MS Visual Web Developer 2005 Express Edition and the MS Visual Studio 2005 Professional Edition used to develop .ASP applications?
2
3069
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 errors 1.Error 6 Cannot implicitly convert type 'mscomctl.Toolbar ' to 'mscomctl.Toolbar . An explicit conversion exists (are you missing a
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7968
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.