| View previous topic :: View next topic |
| Author |
Message |
Sneak Grandmaster Cheater Supreme
Reputation: 0
Joined: 05 Nov 2008 Posts: 1895
|
Posted: Thu Apr 23, 2009 7:38 pm Post subject: [C++] My First Program |
|
|
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
_________________
Last edited by Sneak on Thu Apr 23, 2009 8:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Apr 23, 2009 7:44 pm Post subject: |
|
|
| 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 |
|
 |
Sneak Grandmaster Cheater Supreme
Reputation: 0
Joined: 05 Nov 2008 Posts: 1895
|
Posted: Thu Apr 23, 2009 8:02 pm Post subject: |
|
|
I Included the sourcecode too
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Apr 23, 2009 8:25 pm Post subject: Re: [C++] My First Program |
|
|
| 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 |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Thu Apr 23, 2009 8:36 pm Post subject: |
|
|
Don't use system("pause").
_________________
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Apr 23, 2009 9:33 pm Post subject: |
|
|
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 |
|
 |
Caelestis Expert Cheater
Reputation: 0
Joined: 03 May 2007 Posts: 153
|
Posted: Thu Apr 23, 2009 10:19 pm Post subject: |
|
|
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++
And err.. don't post useless programs here, just legitimate questions. This place isn't for showing off. Tis for helping
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Apr 23, 2009 10:24 pm Post subject: |
|
|
| Caelestis wrote: | And err.. don't post useless programs here, just legitimate questions. This place isn't for showing off. Tis for helping  |
That's a dirty lie.
|
|
| Back to top |
|
 |
Sneak Grandmaster Cheater Supreme
Reputation: 0
Joined: 05 Nov 2008 Posts: 1895
|
Posted: Fri Apr 24, 2009 6:48 am Post subject: |
|
|
Thanks for the feedback
_________________
|
|
| Back to top |
|
 |
ExtremeDevilz Master Cheater
Reputation: 0
Joined: 22 Apr 2007 Posts: 395
|
Posted: Fri Apr 24, 2009 9:07 am Post subject: |
|
|
cin.get()
not
system.pause
use that.
_________________
|
|
| Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Fri Apr 24, 2009 11:35 am Post subject: |
|
|
| 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 |
|
 |
deleted19776 I post too much
Reputation: 11
Joined: 29 Apr 2007 Posts: 3838
|
Posted: Sun May 03, 2009 3:47 pm Post subject: |
|
|
Oh nice, that's just about how much C++ I know right now.
BTW, belie's cool.
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Sun May 03, 2009 10:11 pm Post subject: |
|
|
| sponge wrote: | | Don't use system("pause"). |
use getch();
althought you gotta include the conio.h then
wanted to say the same sponge
Also, you shouldnt release your "Hello world" programm, at least make it a calc or something
_________________
|
|
| Back to top |
|
 |
Scathe I post too much
Reputation: 0
Joined: 02 Aug 2006 Posts: 3631 Location: Smoking a blunt
|
Posted: Sun May 03, 2009 11:05 pm Post subject: |
|
|
| 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 |
|
 |
LolSalad Grandmaster Cheater
Reputation: 1
Joined: 26 Aug 2007 Posts: 988 Location: Australia
|
Posted: Mon May 04, 2009 12:46 am Post subject: |
|
|
| 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 |
|
 |
|