Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
adamezra
Advanced Cheater
Reputation: 0

Joined: 14 Feb 2007
Posts: 73

PostPosted: Sun Oct 28, 2007 2:38 pm    Post subject: [C++] Question Reply with quote

C++ and visual C++ are different things?...
why in some tuts it says to write
#include <iostream>
and in others
#include <iostream.h>
?
please answer >.>

_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Oct 28, 2007 4:07 pm    Post subject: Reply with quote

Really there is no point to use iostream.h. Whenever it says to do that just put iostream instead. And visual C++ is just an IDE. It's basically the same, except it generates your form, and your controls for you.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
adamezra
Advanced Cheater
Reputation: 0

Joined: 14 Feb 2007
Posts: 73

PostPosted: Sun Oct 28, 2007 4:24 pm    Post subject: Reply with quote

Thanks.
_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Oct 29, 2007 4:10 am    Post subject: Reply with quote

Figured you might want to know this as well.

There is a difference between using:

#include "iostream"
and
#include <iostream>

Using the quoted style means you are telling the preprocessor to look for your include file in the same directory that the calling file is located in. After it looks there, it then looks in any other file that is calling it and looks in their location as well. Afterward, the preprocessor will search directories that are specified by the /I compiler option. (MSVS compiler option, might be the same with others if they follow the same standards.) Then, it will scan all the folders that are listed in the INCLUDE environment variable.

Using the angle-bracet form tells the preprocessor to skip the local directory of the file thats calling the include and look inside the paths defined with the /I compiler option, then looks in the INCLUDE environment paths.

Source: http://msdn2.microsoft.com/en-us/library/36k2cdd4(VS.80).aspx

As for some files missing the .h, it's due to depreciation of unsafe versions. The new versions (the ones without the .h) are the 'safe' versions of the files that include extra security to prevent things like buffer overflows and such.

Source: http://members.gamedev.net/sicrane/articles/iostream.html

Enjoy Smile

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
adamezra
Advanced Cheater
Reputation: 0

Joined: 14 Feb 2007
Posts: 73

PostPosted: Mon Oct 29, 2007 1:06 pm    Post subject: Reply with quote

wow thanks
_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites