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 


Quick Question [Updated V.2 Please Check]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Mon Jul 07, 2008 1:17 am    Post subject: Quick Question [Updated V.2 Please Check] Reply with quote

1. What is the difference between Microsoft Visual Studios C++ and "regular" C++ ?
Answered

2.
Code:

The operator ## concatenates (Connects/Links) two arguments leaving no blank spaces between them:

#define glue(a,b) a ## b
glue(c,out) << "test";

This would also be translated into:

cout << "test";


While I understand what this does, I dont really see the point in it. Does this have any real function other than editing the same mistake made throughout the code with this little adjustment rather than correcting each typo individually/manually?

3.
Code:

To check if a file stream was successful opening a file, you can do it by calling to member is_open() with no arguments. This member function returns a bool value of true in the case that indeed the stream object is associated with an open file, or false otherwise:

if (myfile.is_open()) { /* ok, proceed with output */ }


Do you actually put { /* ok, proceed with output */ } ??

4. (#pragma) - What is the Preprocesser directive #pragma used for?

_________________


Last edited by manc on Wed Jul 09, 2008 1:07 am; edited 3 times in total
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: Mon Jul 07, 2008 1:21 am    Post subject: Reply with quote

Microsoft Visual C++ 2008 is just an IDE (Integrated Development Environment). It also allows to you to make GUIs through Forms, similar to the way Delphi and Visual Basic (hence the Visual part of the name) instead of using Win32 APIs to create a GUI.
_________________


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
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Jul 07, 2008 1:24 am    Post subject: Reply with quote

MSVC++ compiler can compile straight regular C++ code. It can also compile C++.net or Visual C++ which is a shitty language.
_________________
Back to top
View user's profile Send private message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Mon Jul 07, 2008 1:41 am    Post subject: Reply with quote

Well, I guess it cant hurt to have on the side just in case. (I just downloaded it)
_________________
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