C++

Questions about programming languages and debugging
Post Reply
User avatar
wekiller
Newbie
Newbie
Posts: 7
Joined: 06 Oct 2007, 16:00
16

C++

Post by wekiller »

Hello I just bought a book about c++ and i was thinking that i would start learning to program c++ with this book....
And why im posting this is becouse i dont know anyhing about c++..
so the meaning of this topic that i wanted to Help other people that has a hard time know how to studieng books they can just look here and get help im starting from the very basic of c++. and the book is called "Standard C++ Bible" Its in swedish so its true name is "Standard c++ bibeln" I will Use the program Al Quincy 99, like it says on the book..


so the book has 28 chapters and i was thinking of Posting like to 10 or somthing like that then u get the point and can do it yourself

And here they are

1. introduction/history About c++ and main()
2. writing simple program in c++
3. Funktions
4. Expression if,else if,if else mm.
5. more about c++ data
6. pointer,adress and referencevariable
7. library functions
8. preprocessor
9. struktures and classes
10. template

Well this is what i was thinking of learning I dont really know how long time it will take but I was thinking of writing like one thing at the time in a kinda slow and newbie way so people will keep up and understand... Sorry for all the miss spelling

But before i start i need to know what u think about it... if u think its stupid please tell then i wont do it :p... this was just an idea so please tell.

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

I think it's a great idea! =)
"The best place to hide a tree, is in a forest"

User avatar
mo2332
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 705
Joined: 28 Apr 2007, 16:00
16
Contact:

Post by mo2332 »

deal

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

To learn a language, you need to code at the same time you learn something.... let's say you've just learned class, do a simple class

Code: Select all

class Person{
private:
           m_name;
public:
        Person();
         std::string GetName()
         {
                  return m_name;
         }
        void SetName(std::string name)
         {
                  m_name = name;
          }
};
Then, use it with stuff you learn before like loop...

Code: Select all

Person p[10];
for (int i = 0; i < 10; i++)
{
     p[i].SetName("Person:" + i);
}


for (int i = 0; i < 10; i++)
{
     std::cout << p[i].GetName();
}
Then, when you'll learn about polymorphisme ans such, you will implement it with person doing a class Male and Female...

Have fun and if you have question, ask them in the coding section.

Good luck.
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
wekiller
Newbie
Newbie
Posts: 7
Joined: 06 Oct 2007, 16:00
16

Post by wekiller »

Ok sorry i have been out of town so i couldnt start the thing i wanted to start but now im back and i will post after school.... my first..

Post Reply