Page 2 of 2

Re: C++ Lesson1: Preparations

Posted: Mon May 28, 2012 1:53 pm
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

Re: C++ Lesson1: Preparations

Posted: Wed May 30, 2012 4:37 pm
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;
}

Re: C++ Lesson1: Preparations

Posted: Wed May 30, 2012 6:19 pm
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.

Re: C++ Lesson1: Preparations

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

Re: C++ Lesson1: Preparations

Posted: Wed May 30, 2012 7:46 pm
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. ;)

Re: C++ Lesson1: Preparations

Posted: Fri Jun 01, 2012 9:28 am
by xDx
Here is mine. I think we're all good over here...
Image

I'm motivated now 8)

Re: C++ Lesson1: Preparations

Posted: Fri Jun 01, 2012 5:36 pm
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.

Re: C++ Lesson1: Preparations

Posted: Fri Jun 01, 2012 10:59 pm
by Tethys
Thanks Flocke, i just feel bad about not being able to do anything at the moment :(

Re: C++ Lesson1: Preparations

Posted: Sun Jun 16, 2013 8:35 am
by Haleth
maybe little late

image no longer available

mfg

Haleth

Re: C++ Lesson1: Preparations

Posted: Sun Jun 16, 2013 8:49 am
by Flocke
nice!
when I'm little further with mpr++ plugin system I might bring up the lessons again or start over ;)

Re: C++ Lesson1: Preparations

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

Re: C++ Lesson1: Preparations

Posted: Sun Jun 16, 2013 9:12 am
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 :)

Re: C++ Lesson1: Preparations

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

Re: C++ Lesson1: Preparations

Posted: Sun Jun 16, 2013 9:52 am
by Flocke
you can use both "\n" and endl, endl is just used for consistency & convenience