C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 6th, 2002, 07:30 PM
kanasaii kanasaii is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: malaysia
Posts: 3 kanasaii User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
C++ problem!!

regarding to the bubblesort coding in this site URL

describing this code

#include <iostream>

using std::cout;
using std::endl;

#include <iomanip>

using std::setw;

How come my compilerwill only run if only i put <iostream.h>
ans not just <iostream>

Further more my compiler doesn't seem to compile the code "using"

using std::cout;
using std::endl;
using std::setw;

What is happening???

Reply With Quote
  #2  
Old June 6th, 2002, 11:02 PM
Spyder Spyder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Australia
Posts: 5 Spyder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Spyder Send a message via AIM to Spyder Send a message via Yahoo to Spyder
Which compiler are you using?

Different compilers handle inclusion of header files in different ways. Same with some of that other code - your compiler might not support it.

Reply With Quote
  #3  
Old June 7th, 2002, 08:26 AM
kanasaii kanasaii is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: malaysia
Posts: 3 kanasaii User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am using plato !??

So is it possible if i add these (some additional functions) to my compiler?
Do i call these aditional functions as C++ library files?

Thank you so much...i am so lost!

Reply With Quote
  #4  
Old August 10th, 2004, 01:29 AM
arash_partow arash_partow is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 5 arash_partow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello,

.h files are the backwards compatibility libraries for c++,
however according to the lastest c++0x specification all C++
standard libraries must be in the form of <library_name> without
any .h, The reason for this is to differentiate between libraries
intended for C and those intended for C++.

My advice is to use a new compiler, something like GCC or Intel++ etc...


Arash Partow
__________________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > C++ problem!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT