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?
4 2042
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: -
#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.
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,?
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |