Homework

Pages: 12
May 31, 2012 at 2:15am
Hello everyone :) I'm slowly learning C++ but I was wondering something, you see, I watch 10 video tutorials in one day, then practice them 5 times, distract myself, then do it three more times, and it works for that day, but the next day, I have a really hard time remembering the basic stuff.

So I was wondering if someone here could like, give me a sort of homework. I tell you the topics I've been learning, and you think of a program I have to make that uses all those.

I really hope someone will help me here.

May 31, 2012 at 3:02am
Did you seriously try that hard? I applaud your effort.

Here is a suggestion(s):
Hang-man game:
requires knowledge of
-file reading
-functions & procedures
-strings
-input
-output
-and all basic control constructs(loops and if's)

Tic Tac Toe, 2 players:
requires
-all basic constructs
-input
-output
-arrays recommended



don't worry if your not completely familiar with the requirements. You can look them up as you go along.

-Blueberry
May 31, 2012 at 3:14am
Please take a look at this website http://thenewboston.org/list.php?cat=16
I've only watched the first 10 videos, so I was hoping for something that used those.
May 31, 2012 at 3:21am
Okay, first thing, don't take everything those videos say as 100% fact. There is no proof of Bucky's abilities, education, or anything. It also shows he may not be on that site in any official capacity as it shows his email being a yahoo email. Generally, I am weary about videos that claim to teach anything because half the time you can't see what they are typing or they don't explain it enough to be of any help. I would recommend reading the tutorials on this site and go from there. Also do what blueberry said, make simple text games and build up from there.

Of course, I'm reading The C++ Programming Language Special Edition and kind of given up on tutorials due to the things they sometimes miss or drop out. That isn't a reflection of this sites tutorials though as they have gone over them with a fine tooth comb to make sure they are accurate and up to date.
Last edited on May 31, 2012 at 3:23am by closed account z6A9GNh0
May 31, 2012 at 3:27am
There's tutorials on this website?!??! :o are they organized or is everything all scrambled?
May 31, 2012 at 3:32am
Well every person learns different so you will have to look at them and see for yourself:

http://cplusplus.com/doc/
May 31, 2012 at 3:36am
Screed I recommend picking up a textbook to supplement your studies - when you practice with real world problems the solutions will stick(and the general ideas behind them).
May 31, 2012 at 3:37am
I have no text book, and no money to buy one with.
May 31, 2012 at 3:38am
and as for the tutorial on the website, by looking i realized i have it on my ipod!
May 31, 2012 at 4:13am
> I have no text book, and no money to buy one with.

There are a few free C++ books available online. For instance:
http://www.computer-books.us/cpp.php

Start with Bruce Eckel's book, perhaps.

You could have a look at these too:
http://cppannotations.sourceforge.net/c++annotations/html/
http://www.informit.com/guides/guide.aspx?g=cplusplus


May 31, 2012 at 4:18am
the book thing confuses me :/ after downloading all i get is a couple zip files with a bunch of folders, but no book.
May 31, 2012 at 5:48am
We had a thread an article full of beginners exercises here, if you'd like to try them:
http://www.cplusplus.com/articles/N6vU7k9E/

Good luck if you do!

-Albatross
Last edited on May 31, 2012 at 5:48am
May 31, 2012 at 12:06pm
Another thing, is Code::Blocks a good compiler? Or is there a better one?
May 31, 2012 at 12:08pm
Code::Blocks isn't a compiler. It's an IDE. You can use any of a number of compilers with it.
May 31, 2012 at 12:21pm
O.K. But it isn't just some crap thing is it?
May 31, 2012 at 12:27pm
Nope, it's a pretty good IDE. A lot of people around these parts seem to like it.

There's no definite answer one which IDE or compiler is best. Different people like different things. Give Code::Blocks a try. If you don't like it, try and switch to Visual Studio or something.

You could also go the command line route, which many people on here prefer, and ditch the IDE all together.

All personal preference.
May 31, 2012 at 12:37pm
Whats the "command line route"?
May 31, 2012 at 12:46pm
It involves writing the code in a (usually) simple text editor, and then calling the compiler and linker yourself at the command line. It starts very simple (typing in g++ helloWorld.cpp) and goes from there.

Might look like this:

http://old.nabble.com/file/p7475831/cygwin2.JPG

or perhaps this:

http://www.suodenjoki.dk/images/news/2008/clexe_cmdprompt.png

Doing it this way makes you feel like this:

http://www.sitevip.net/the_matrix/images/Matrix01_01.jpg

or perhaps this:

http://nmap.org/images/diehard4/nmap-diehard4-crop-600x300.png

:)


Doing it yourself, manually, at the command line, will give you an understanding of what's actually going on that I often find lacking in alleged professionals who have been coding for years. Anyone who ever tries to fix an "undefined reference error" by changing their code has never used the command line :p
Last edited on May 31, 2012 at 12:50pm
May 31, 2012 at 12:55pm
Ha! You make me want to try the command line thing, how do I use it?
May 31, 2012 at 1:01pm
closed account (o3hC5Di1)
Hi there,

I'd like to offer my 2 cents of advice on this.
Purely regarding learning anything, it's not a great idea to flood your brain with information.

The way your brain works (simply put) is that it will store information short term, then, depending on how often that information is repeated or used, it will be more and more "engrained" into long term memory.

Knowing this, it's best to learn one step at a time and regularly revising things. For instance, if you learn something new, don't just practice that, practice it in a way that you will need prior knowledge too.

Also, for any learning and general health, sleep is important (no matter what people say), so staying up until 3 AM watching tutorials isn't the best idea either.

Anyway, that's just some stuff I picked up over the years that I thought might help you.

All the best,
NwN
Pages: 12