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: 6402
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.
Contact:

Re: C++ Lesson1: Preparations

Post by thunderchero » Mon May 28, 2012 1:53 pm

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Wed May 30, 2012 4:37 pm

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: 2065
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: C++ Lesson1: Preparations

Post by Tethys » Wed May 30, 2012 6:19 pm

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...
Image
GALM <--- GALM/Galaxies Mod

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 » Wed May 30, 2012 6:46 pm

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Wed May 30, 2012 7:46 pm

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: 275
Joined: Sat May 10, 2008 2:00 am
Location: East Coast, USA

Re: C++ Lesson1: Preparations

Post by xDx » Fri Jun 01, 2012 9:28 am

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Fri Jun 01, 2012 5:36 pm

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: 2065
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: C++ Lesson1: Preparations

Post by Tethys » Fri Jun 01, 2012 10:59 pm

Thanks Flocke, i just feel bad about not being able to do anything at the moment :(
Not for the weak of heart...
Image
GALM <--- GALM/Galaxies Mod

Haleth
Ensign
Ensign
Posts: 23
Joined: Sat Sep 25, 2010 2:00 am
Location: Germany

Re: C++ Lesson1: Preparations

Post by Haleth » Sun Jun 16, 2013 8:35 am

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Sun Jun 16, 2013 8:49 am

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 » Sun Jun 16, 2013 8:59 am

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Sun Jun 16, 2013 9:12 am

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 » Sun Jun 16, 2013 9:19 am

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: 2581
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: C++ Lesson1: Preparations

Post by Flocke » Sun Jun 16, 2013 9:52 am

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

Post Reply

Return to “General Chat”

Who is online

Users browsing this forum: Westmensch