View previous topic :: View next topic |
Author |
Message |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Tue Oct 11, 2011 9:17 am Post subject: iostream |
|
|
whats difference between
#include <iostream>
and
#include <iostream.h>
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Oct 11, 2011 1:49 pm Post subject: |
|
|
The fact that iostream.h doesn't exist. (Assuming you are using a non-extremely outdated compiler/ide/sdk.)
_________________
- Retired. |
|
Back to top |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Wed Oct 12, 2011 8:33 am Post subject: |
|
|
it exist example:
#include <iostream.h>
int main()
{
cout << "Im paupav ";
}
system("pause")
return 0;
it will work i learn iostream.h so i want to know is there any big difference
Last edited by paupav on Wed Oct 12, 2011 10:11 am; edited 1 time in total |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Oct 12, 2011 9:38 am Post subject: |
|
|
What compiler/IDE are you using?
_________________
- Retired. |
|
Back to top |
|
 |
unknown_k Expert Cheater
Reputation: 5
Joined: 24 May 2011 Posts: 211
|
|
Back to top |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Wed Oct 12, 2011 10:10 am Post subject: |
|
|
i use DEV C++ ... are you using iostream or iostream.h ?
|
|
Back to top |
|
 |
unknown_k Expert Cheater
Reputation: 5
Joined: 24 May 2011 Posts: 211
|
Posted: Wed Oct 12, 2011 10:41 am Post subject: |
|
|
paupav wrote: | i use DEV C++ ... are you using iostream or iostream.h ? | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Oct 12, 2011 10:54 am Post subject: |
|
|
unknown_k wrote: | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc. |
iostream has nothing to do with .NET and wasn't removed because of it. iostream.h is depreciated but it is not specifically because of Microsoft or any other compiler. It is just standards for C++ that it was removed and out-dated.
paupav wrote: | i use DEV C++ ... are you using iostream or iostream.h ? |
You are using an extremely old IDE/compiler combo. You should look into getting something that is actually maintained and updated. DevC++ hasn't updated their install package since 2005.
I recommend you get Visual Studio if you are using Windows:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express
_________________
- Retired. |
|
Back to top |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Wed Oct 12, 2011 12:20 pm Post subject: |
|
|
i have visual studio but i think dev is better... so i have to start learning it all over again?
|
|
Back to top |
|
 |
AverageAzn247 Grandmaster Cheater
Reputation: 34
Joined: 01 Oct 2007 Posts: 909 Location: Austin,TX with 72 virgins
|
Posted: Wed Oct 12, 2011 1:05 pm Post subject: |
|
|
Wiccaan wrote: | unknown_k wrote: | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc. |
iostream has nothing to do with .NET and wasn't removed because of it. iostream.h is depreciated but it is not specifically because of Microsoft or any other compiler. It is just standards for C++ that it was removed and out-dated.
paupav wrote: | i use DEV C++ ... are you using iostream or iostream.h ? |
You are using an extremely old IDE/compiler combo. You should look into getting something that is actually maintained and updated. DevC++ hasn't updated their install package since 2005.
I recommend you get Visual Studio if you are using Windows:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express | studios gives errors if ur function doesn't return a value :/ I dislike using it to compile small things.
_________________
Waxxup wrote: | What are Night Elves?
A girl group? |
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Oct 12, 2011 1:51 pm Post subject: |
|
|
AverageAzn247 wrote: | Wiccaan wrote: | unknown_k wrote: | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc. |
iostream has nothing to do with .NET and wasn't removed because of it. iostream.h is depreciated but it is not specifically because of Microsoft or any other compiler. It is just standards for C++ that it was removed and out-dated.
paupav wrote: | i use DEV C++ ... are you using iostream or iostream.h ? |
You are using an extremely old IDE/compiler combo. You should look into getting something that is actually maintained and updated. DevC++ hasn't updated their install package since 2005.
I recommend you get Visual Studio if you are using Windows:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express | studios gives errors if ur function doesn't return a value :/ I dislike using it to compile small things. |
not sure what you mean by this but if you really are hitting this, i'm almost certain you're using the language incorrectly. if you want a function which returns nothing then have its return type as void. otherwise you should adhere to the return type since that's what you declared in the signature...
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Oct 12, 2011 2:52 pm Post subject: |
|
|
paupav wrote: | i have visual studio but i think dev is better... so i have to start learning it all over again? |
You should be learning the language with its relevant and current standard/code implementation. You are using outdated headers that don't follow some standards in the language is it is today.
Will you need to learn some stuff over? Yes, but from the looks of it you aren't that far into anything yet so it will be better for you in the end to use something newer / updated.
Quote: | studios gives errors if ur function doesn't return a value :/ I dislike using it to compile small things. |
Like Slug said, sounds like you are using the language incorrectly then. It is not a Visual Studio (note the fact that there is no S at the end, it is not a multiple of something it is a single solution) problem.
_________________
- Retired. |
|
Back to top |
|
 |
unknown_k Expert Cheater
Reputation: 5
Joined: 24 May 2011 Posts: 211
|
Posted: Wed Oct 12, 2011 9:55 pm Post subject: |
|
|
Wiccaan wrote: | unknown_k wrote: | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc. |
iostream has nothing to do with .NET and wasn't removed because of it. iostream.h is depreciated but it is not specifically because of Microsoft or any other compiler. It is just standards for C++ that it was removed and out-dated. |
Oh, wait. Did I say iostream has something to do with .NET? All I was talking about is their including/excluding timing with their product. Did I misguide you? Sorry.
|
|
Back to top |
|
 |
AverageAzn247 Grandmaster Cheater
Reputation: 34
Joined: 01 Oct 2007 Posts: 909 Location: Austin,TX with 72 virgins
|
Posted: Thu Oct 13, 2011 9:06 am Post subject: |
|
|
Slugsnack wrote: | AverageAzn247 wrote: | Wiccaan wrote: | unknown_k wrote: | They say you shouldn't use .h becasue it's obsoleted, not standard, and since .NET it's not included in M$ VS anymore, etc, etc. |
iostream has nothing to do with .NET and wasn't removed because of it. iostream.h is depreciated but it is not specifically because of Microsoft or any other compiler. It is just standards for C++ that it was removed and out-dated.
paupav wrote: | i use DEV C++ ... are you using iostream or iostream.h ? |
You are using an extremely old IDE/compiler combo. You should look into getting something that is actually maintained and updated. DevC++ hasn't updated their install package since 2005.
I recommend you get Visual Studio if you are using Windows:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express | studios gives errors if ur function doesn't return a value :/ I dislike using it to compile small things. |
not sure what you mean by this but if you really are hitting this, i'm almost certain you're using the language incorrectly. if you want a function which returns nothing then have its return type as void. otherwise you should adhere to the return type since that's what you declared in the signature... | perhaps i am not the best programmer but it seems some times studios gives me errors while other compilers don't.
_________________
Waxxup wrote: | What are Night Elves?
A girl group? |
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Oct 13, 2011 9:28 am Post subject: |
|
|
AverageAzn247 wrote: | perhaps i am not the best programmer but it seems some times studios gives me errors while other compilers don't. |
Care to give any examples of this?
_________________
- Retired. |
|
Back to top |
|
 |
|