| | |
Great what did I miss?
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I messed with C++ my first year in programming, and now as an AP student its all Java focused. As I want to be a game programmer I decided to get back to learning C++ because I've heard its often used.
So, I downloaded Bloodshed Dev-C++, which was reccomended by a guy I know.
Well, I pulled up a website tutorial, typed up the most basic "Hello World" application to reaquaint from square one, and upon compiling it...
It calls <iostream.h> an antiquated header. It says to reference some standard 32 headers or whatnot somewhere...I'm not too knowlageable in the world wide use of C++, or any language, as I've only had local useage, but when the heck does someone just decide to up and change a standard language?
In closing though, whats wrong with the program? I've the code below...
//include this file for cout
#include <iostream.h>
int main()
{
//print out the text string, "Hello, World!"
cout << "Hello, World!" << endl;
return 0;
}
So, I downloaded Bloodshed Dev-C++, which was reccomended by a guy I know.
Well, I pulled up a website tutorial, typed up the most basic "Hello World" application to reaquaint from square one, and upon compiling it...
It calls <iostream.h> an antiquated header. It says to reference some standard 32 headers or whatnot somewhere...I'm not too knowlageable in the world wide use of C++, or any language, as I've only had local useage, but when the heck does someone just decide to up and change a standard language?
In closing though, whats wrong with the program? I've the code below...
//include this file for cout
#include <iostream.h>
int main()
{
//print out the text string, "Hello, World!"
cout << "Hello, World!" << endl;
return 0;
}
chnage your code to
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std; int main() { //print out the text string, "Hello, World!" cout << "Hello, World!" << endl; return 0; }
•
•
•
•
Originally Posted by Kiba Ookami
Might I have an explination as to whats up with the change, and a point to an online tutorial thats up to date?
As for tutorials, be aware that many are of varying quality, and sometimes mix old and new code. Nevertheless, there's alot of information around. My favourite starting point for any subject is Wikipedia, so have a look here: http://en.wikipedia.org/wiki/C_Plus_Plus
The links section in the wiki entry (right at the bottom) has a bunch of tutorials and other useful C++ stuff - plenty to keep you in reading material.
If you can afford it, buy a good quality beginners' C++ book. The ACCU (Association of C and C++ Users) has a reliable book reviews section. ( http://www.accu.org )
If you can't afford a book at the moment, check out Bruce Eckel's free ebook on his site http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
>There is also talk that one day, the older headers ending in ".h" may be completely removed from C++
You're confusing the C library headers, which *are* deprecated, with the non-standard C++ headers. The difference is that iostream.h and friends aren't required to be supported by an implementation in any way, while the C headers must be supported now, but could be removed in a future revision.
You're confusing the C library headers, which *are* deprecated, with the non-standard C++ headers. The difference is that iostream.h and friends aren't required to be supported by an implementation in any way, while the C headers must be supported now, but could be removed in a future revision.
New members chased away this month: 5
![]() |
Similar Threads
- Google Adsense! (HTML and CSS)
- Internet Explorer Message (Web Browsers)
- And it just keeps getting better ... (DaniWeb Community Feedback)
- AdSense alternatives (Advertising Sales Strategies)
- Hello world! (Community Introductions)
- 7 Tips to Keep your PC Running At Peak Performance (Windows tips 'n' tweaks)
- [Software] Backup your Outlook (Windows NT / 2000 / XP)
- Any ideas make my forums grow? (Website Reviews)
- have you ever abused ur powers? (Geeks' Lounge)
- Great Server (Web Hosting Deals)
Other Threads in the C++ Forum
- Previous Thread: check for errors in my code
- Next Thread: Need help
Views: 1320 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






