C++ Lesson1: Preparations

You can talk about anything. (please read forum rules before posting)

Moderator: thunderchero

User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7960
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: C++ Lesson1: Preparations

Post by thunderchero »

anjel wrote:Interesting, post the code so i can givea try :). I've thought the same but didn't know how to do it
I could but then what would you learn? :wink:

do exactly as flockes instructs
Flocke wrote:To prevent this, add #include <cstdlib> to the top, and system("PAUSE"); before of the return statement.
I am sure you will get it soon

thunderchero
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

Tethys, xDx, other interested people, what's up? One free hour to accomplish this lesson?

And to stop torture anjel any further:

Code: Select all

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    system("PAUSE");
    return 0;
}
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: C++ Lesson1: Preparations

Post by Tethys »

I havent had time, been packing for the move on Sunday and probably will be starting work as soon as Monday/Tuesday. Im not sure when Ill have time, but I am following this topic.
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
Dr_Breen
Commodore
Commodore
Posts: 889
Joined: Wed Apr 30, 2008 2:00 am
Location: Zurich, Switzerland
Contact:

Re: C++ Lesson1: Preparations

Post by Dr_Breen »

hmm this is one hour of work only. i doubt we're going to be successful when people already have trouble with setting up things only.
Public BotF / EF2 Teamspeak 3 Server: 83.169.13.55
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

we've learned endurance, we'll wait :D

edit: I now also posted an invitation on http://botf2.star-trek-games.com in case there's interest. ;)
User avatar
xDx
Commander
Commander
Posts: 299
Joined: Sat May 10, 2008 2:00 am
Location: East Coast, USA

Re: C++ Lesson1: Preparations

Post by xDx »

Here is mine. I think we're all good over here...
Image

I'm motivated now 8)
"The only thing we have to fear is fear itself." -- FDR
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

xDx wrote:I'm motivated now 8)
Great!
Will see to start next lesson tomorrow. Talked with Tethys, we'll have to go on without him for now. He'll join back as soon possible.

The thread will remain open to anyone having questiones on setting up his development environment.
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: C++ Lesson1: Preparations

Post by Tethys »

Thanks Flocke, i just feel bad about not being able to do anything at the moment :(
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
Haleth
Ensign
Ensign
Posts: 23
Joined: Sat Sep 25, 2010 2:00 am
Location: Germany

Re: C++ Lesson1: Preparations

Post by Haleth »

maybe little late

image no longer available

mfg

Haleth
Anyone who has never made a mistake has never tried anything new.
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

nice!
when I'm little further with mpr++ plugin system I might bring up the lessons again or start over ;)
Haleth
Ensign
Ensign
Posts: 23
Joined: Sat Sep 25, 2010 2:00 am
Location: Germany

Re: C++ Lesson1: Preparations

Post by Haleth »

should i proceed the other steps now or wait until u start again ?

i have programmed a little in C so its like refreshing and extending for me ^^

mfg

Haleth
Anyone who has never made a mistake has never tried anything new.
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

don't expect me to be ready for that any soon, so feel free to continue, I'm happy when you can make some use of it :)
Haleth
Ensign
Ensign
Posts: 23
Joined: Sat Sep 25, 2010 2:00 am
Location: Germany

Re: C++ Lesson1: Preparations

Post by Haleth »

ok

one question why using endl if i can us n

the difference should be the check at the end of endl (should be a silent check in that case)

ii isnt needed at that simple task here but maybe usefull further
Anyone who has never made a mistake has never tried anything new.
User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 3258
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke »

you can use both "\n" and endl, endl is just used for consistency & convenience
Post Reply

Return to “General Chat”