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++] My First Program
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Sneak
Grandmaster Cheater Supreme
Reputation: 0

Joined: 05 Nov 2008
Posts: 1895

PostPosted: Thu Apr 23, 2009 7:38 pm    Post subject: [C++] My First Program Reply with quote

Here it is

Attachments.

Code:
#include <iostream>


int main()
{
   std::cout <<"Fuck Belie!" << std::endl;
   std::cout <<"And thanks Mr Unknown and el.jeffro!" << std::endl;
   std::cout <<"Thanks for your help guys, Ima start posting in the programming section from now on" << std::endl;
   system("PAUSE");   
   return 0;

}


Guys, Im reading a good textbook 'unknown gave me

Im on my way to kickin ass

Btw, am I Allowed to release it, or is it illegal? its in pdf format



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________


Last edited by Sneak on Thu Apr 23, 2009 8:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Apr 23, 2009 7:44 pm    Post subject: Reply with quote

The general programming section is for source code. If you are just going to post the binary, it goes in the aptly named Binaries section.
Back to top
View user's profile Send private message
Sneak
Grandmaster Cheater Supreme
Reputation: 0

Joined: 05 Nov 2008
Posts: 1895

PostPosted: Thu Apr 23, 2009 8:02 pm    Post subject: Reply with quote

I Included the sourcecode too Very Happy
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Apr 23, 2009 8:25 pm    Post subject: Re: [C++] My First Program Reply with quote

Sneak wrote:
Btw, am I Allowed to release it, or is it illegal? its in pdf format


Take a guess...

Is it something (typically) you have to buy? Then no, you can't post it.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Thu Apr 23, 2009 8:36 pm    Post subject: Reply with quote

Don't use system("pause").
_________________
Back to top
View user's profile Send private message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Apr 23, 2009 9:33 pm    Post subject: Reply with quote

haha what's a alternative to system("pause")? i tired googleing but it couldn't really find something that was good.

oh, and you might want to use

using namespace std;

step 2
learn input

_________________
Back to top
View user's profile Send private message AIM Address
Caelestis
Expert Cheater
Reputation: 0

Joined: 03 May 2007
Posts: 153

PostPosted: Thu Apr 23, 2009 10:19 pm    Post subject: Reply with quote

Just do get from cin or something, but don't worry about it, you won't need to pause input for long.

Don't over do the studying thing. Remember that if you try to hard, you will get bored and start questioning. If you ever doubt C++, do a google search of C++ is better than... to get you motivated. Don't think it sucks just because you don't like one thing, it can get better. That's all the pointers I have to be successful with C++ Very Happy

And err.. don't post useless programs here, just legitimate questions. This place isn't for showing off. Tis for helping Wink
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Apr 23, 2009 10:24 pm    Post subject: Reply with quote

Caelestis wrote:
And err.. don't post useless programs here, just legitimate questions. This place isn't for showing off. Tis for helping Wink


That's a dirty lie.

Smile
Back to top
View user's profile Send private message
Sneak
Grandmaster Cheater Supreme
Reputation: 0

Joined: 05 Nov 2008
Posts: 1895

PostPosted: Fri Apr 24, 2009 6:48 am    Post subject: Reply with quote

Thanks for the feedback Very Happy
_________________
Back to top
View user's profile Send private message
ExtremeDevilz
Master Cheater
Reputation: 0

Joined: 22 Apr 2007
Posts: 395

PostPosted: Fri Apr 24, 2009 9:07 am    Post subject: Reply with quote

cin.get()

not

system.pause

use that.

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

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Fri Apr 24, 2009 11:35 am    Post subject: Reply with quote

Flyte wrote:
The general programming section is for source code. If you are just going to post the binary, it goes in the aptly named Binaries section.
not true. i posted source codes here many times and mods just moved it to binaries.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
deleted19776
I post too much
Reputation: 11

Joined: 29 Apr 2007
Posts: 3838

PostPosted: Sun May 03, 2009 3:47 pm    Post subject: Reply with quote

Oh nice, that's just about how much C++ I know right now.
BTW, belie's cool.
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Sun May 03, 2009 10:11 pm    Post subject: Reply with quote

sponge wrote:
Don't use system("pause").


use getch();
althought you gotta include the conio.h then

wanted to say the same sponge Razz

Also, you shouldnt release your "Hello world" programm, at least make it a calc or something

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

Joined: 02 Aug 2006
Posts: 3631
Location: Smoking a blunt

PostPosted: Sun May 03, 2009 11:05 pm    Post subject: Reply with quote

Code:

#include <iostream>

using namespace std;

int main()
{
   printf("Fuck Belie!!\n");
   printf("And thanks Mr Unknown and el.jeffro!\n");
   printf("Thanks for your help guys, Ima start posting in the programming section from now on\n");

   cin.get();   
   return 0;
}


Fixed.

_________________

<Moose> they will call me beard penis
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Mon May 04, 2009 12:46 am    Post subject: Reply with quote

Scathe wrote:
Code:
printf("Fuck Belie!!\n");
printf("And thanks Mr Unknown and el.jeffro!\n");
printf("Thanks for your help guys, Ima start posting in the programming section from now on\n");
Fixed.

http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.1

_________________
Back to top
View user's profile Send private message MSN Messenger
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  Next
Page 1 of 2

 
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