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?
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: -
#include <iostream>
-
-
int main()
-
{
-
std::cout << "Hello, World!" << std::endl;
-
return 0;
-
}
-
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.
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
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,?
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: -
//Before, <iostream.h>
-
#include <iostream>
-
// Before, <fstream.h>
-
#include <fstream>
-
//Before <stdlib.h> (C library)
-
#include <cstdlib>
-
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
...
|
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...
|
by: Pitaridis Aristotelis |
last post by:
Is there any way to create setup for a project made in Microsoft Visual
Basic 2005 Express Edition
|
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...
|
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.
| |
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,...
|
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,
|
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?
|
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
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |