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 


[HELP] VC++ #include iostream.h ...
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 12:28 pm    Post subject: [HELP] VC++ #include iostream.h ... Reply with quote

i am learning C++ and i just made a basic script:
Code:

 #include <iostream.h>

 int main(){
    cout << "Hello Everybody!\n";
        return 0;
 }

but i cant compile it because i dont know what iostream.h must include
can someone help?

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko


Last edited by tdenisenko on Tue May 06, 2008 12:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Tue May 06, 2008 12:30 pm    Post subject: Reply with quote

no need for the .h just <iostream>
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 12:37 pm    Post subject: Reply with quote

b6ooy wrote:
no need for the .h just <iostream>


doesnt work:
error C2065: 'cout' : undeclared identifier

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Tue May 06, 2008 12:51 pm    Post subject: Reply with quote

iostream > std > cout

so add std::

Code:
std::cout


This is very noobish , you better not start .


Last edited by b6ooy on Tue May 06, 2008 12:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue May 06, 2008 12:53 pm    Post subject: Reply with quote

std::cout <<...
or
using namespace std; after the #includes

_________________
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue May 06, 2008 12:53 pm    Post subject: Reply with quote

or you can just add using namespace std; after the #include <iostream>
_________________
Stylo
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue May 06, 2008 12:56 pm    Post subject: Reply with quote

lol we all posted right after eachother

Quote:
This is very noobish , you better not start .

What the fuck? He's just starting, lay off.

_________________
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Tue May 06, 2008 1:06 pm    Post subject: Reply with quote

HalfPrime wrote:
lol we all posted right after eachother

Quote:
This is very noobish , you better not start .

What the fuck? He's just starting, lay off.

Someone who have made a trainer like in his forum signature should not come here post this kind of questions ( he wrote he made it , includes coding ).
I am right ?
leechers will never be able to learn , leeching is running in their blood .
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 1:08 pm    Post subject: Reply with quote

i am really confused i am always getting same error
i wrote std::cout but:
fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue May 06, 2008 1:09 pm    Post subject: Reply with quote

but he's allowed to ask anything he want about programming Surprised
edit: tdenisenko dont use iostream.h !!! remove the .h just <iostrem>
and after that using namespace std;

_________________
Stylo
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 1:35 pm    Post subject: Reply with quote

1qaz wrote:
but he's allowed to ask anything he want about programming Surprised
edit: tdenisenko dont use iostream.h !!! remove the .h just <iostrem>
and after that using namespace std;


how can i use it?
sry for being a noob i just started learning

Code:

#include <iostream>
namespace std;

 int main(){
    cout << "Hello World!\n";
 return 0;
 }


=

Code:

error C2059: syntax error : ';'
error C2065: 'cout' : undeclared identifier

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue May 06, 2008 1:44 pm    Post subject: Reply with quote

"using namespace std;" OR "std::cout <<"
_________________
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 1:47 pm    Post subject: Reply with quote

HalfPrime wrote:
"using namespace std;" OR "std::cout <<"


can you type all the script pls?
because i fail again:
error C2857: '#include' statement specified with the /Yciostream.h command-line option was not found in the source file

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Tue May 06, 2008 2:07 pm    Post subject: Reply with quote

Code:
#include <iostream>
using namespace std;

int main( void )
{
        cout << "Hello Everybody!\n";

        return 0;
 }
Back to top
View user's profile Send private message MSN Messenger
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Tue May 06, 2008 2:45 pm    Post subject: Reply with quote

noz3001 wrote:
Code:
#include <iostream>
using namespace std;

int main( void )
{
        cout << "Hello Everybody!\n";

        return 0;
 }


i tried it already:
error C2857: '#include' statement specified with the /Yciostream.h command-line option was not found in the source file

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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