A master C++

Dear God, I am new to C++, just read this book C++primer, basic C++ programming will be, but our teacher let me realize the graph with C++ algorithm, I really can not start ah, also read the relevant code, but so hard ah, ah, cannot read, it is not at all know how to do, please God help pointing about, appreciate!!

Started by Judith at February 04, 2016 - 5:44 AM

Completion of the c++ primer, can only show your C++ "grammar". And the map algorithm is the attribute of digital category, so you still need to practice the mathematical problem is converted into a computer algorithm by computer skills. That is the way to understand the mathematical problem.

For graph algorithms, you can manually calculated?
If the manual calculation are not, then you on graph algorithms themselves are not understood, let alone into the computer algorithm.
If you have to understand, with programming language to realize the process of manual calculation.

Posted by Johnny at February 13, 2016 - 6:41 AM

More hands-on, naturally skilled.

Posted by Yves at February 26, 2016 - 7:06 AM

Do more and it will slowly

Posted by Dolores at March 03, 2016 - 7:08 AM

c++primer, Think much

Posted by Gina at March 13, 2016 - 7:46 AM

Buy the C++ data structure of the book, Tsinghua University press has this, see more, more practice.

Posted by Ken at March 14, 2016 - 7:49 AM

Learn the data structure and algorithm, and then you will know how to correctly select and use the STL container, or is the white one, Lan Xiang technical school graduates a.

Posted by Haley at March 29, 2016 - 8:11 AM

Have a look the data structure (C language version) and introduction to the algorithm and then consider generic programming, as well as the STL source code

Posted by Barry at November 13, 2016 - 10:50 PM

Everybody is good, I finished a map, but also save node with the adjacency list, I tried to build a map in the Main function, but the run out, compile, run out is not, but is the application of memory is a mistake, make my pain is that I can't find fault where, and I see my program is reasonable, encounter a variety of learning c++ early always wrong, how to continue? I really very confused, ask everybody to give advice one or two!!!

Posted by Judith at November 24, 2016 - 11:25 PM

Hello, I finished a map, but also save node with the adjacency list, I tried to build a map in the Main function, but the run out, compile, run out is not, but is the application of memory is a mistake, make my pain is I can't find my mistake where, and I see my program is reasonable, encounter a variety of learning c++ early always wrong, how to continue? I really very confused, and give advice one or two!!!

Posted by Judith at December 01, 2016 - 11:26 PM

You need the next breakpoint debugging, a sentence, so that you can know whether the computer program according to your ideas in a way.
You write your own programs, you need to know the program execution to each step, the results should be what kind of, if the results are not as you think, you seem very reasonable procedure is a problem.

There is no specific code, we are not good for your analysis, if the code is too much, maybe someone else is not so much time to help your analysis.
His next breakpoint debugging is to improve faster.

Posted by Johnny at December 14, 2016 - 11:48 PM

Write code is not finished it, debugging is the key. . .

Posted by Werner at December 18, 2016 - 12:03 AM

The long knowledge, still has a long way to go.

Posted by Earl at December 23, 2016 - 12:05 AM

Algorithm solution (C language)

Posted by Owen at December 29, 2016 - 12:26 AM

More important than language, algorithm.

Posted by Debbie at January 01, 2017 - 2:50 AM

Study design and analysis of algorithms, multi drawing, practice. Some simple algorithms to know by heart.

Posted by Debbie at January 03, 2017 - 12:57 AM

Do you want to write code that does not need to debug?

Posted by May at January 03, 2017 - 4:51 AM

The code is reasonable or not is hard to say, you still have posted good code. Since you saw "C++ Primer" there should be a lot to remind you, do you follow? There are after-school exercises do? Some error is generally and syntax based relationships, especially the block pointer. If you have time to practice more look just fine. Have a look "Effective C++", that "More Effective C++", "Effective STL", notes on C++, STL has a clear explanation.

As for the algorithm, the first thing you must understand, if you know the principle of this algorithm, if the direct use of handwork calculation, whether you can build their own table, drawing and so on, get the results? Then, to see whether you can put the process into computer code, this will see the language skills. As for the algorithm, can see the "Introduction to Algorithms .

Under the final say, learn to debug their own, through a single step tracking, find the wrong place to correct. His idea and computer code is found, have a look after each execution are meet your expectations, or is the problem.

Posted by Constance at January 06, 2017 - 1:15 AM


Want to make the thing is not to find a platform? For example, VS QT.?
Can I say this? Upstairs you immortal~!

Posted by Jeff at January 06, 2017 - 4:01 AM

There is a graph algorithm source code.

Posted by Owen at January 08, 2017 - 4:53 AM

Posted by Edgar at January 09, 2017 - 1:37 AM

A variety of errors, a breakpoint or single step debugging to see whether the program is running as expected, another is in the process of printing program execution key information.
No confusion, step by step to solve the problem of Google,

Posted by Bradley at January 10, 2017 - 3:37 AM

Maps can be used two-dimensional array to survive... I brush OJ...

Posted by Porter at January 14, 2017 - 2:24 AM