Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
2.63/5 (5 votes)
See more:
yeah, so i learnd the basics of C++, can you help me with some tips, examples or explanations(like strings, apps,complex programs) and so on!!!!
Posted
Updated 14-Jan-12 9:09am
v2
Comments
Emilio Garavaglia 14-Jan-12 13:39pm    
This is not a question.
Chandrasekharan P 14-Jan-12 22:38pm    
There are more than 1000 sites which can give you examples on c++ and good explanations on lots of topic.
Albert Holguin 16-Jan-12 15:49pm    
Sorry Zlatko01, this question is just too broad to answer here... check out the articles[^] here at CP for more useful information and guides.
CSharp_Sha 18-Jan-12 5:38am    
勿在浮沙筑高台!
Sergey Alexandrovich Kryukov 17-May-13 14:03pm    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

You may learn a bit more of C++ reading (studying) books and developing applications. There aren't shortcuts like tips & tricks for this.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Jan-12 0:02am    
Agree with you very much, my 5.

I also did not stand to say my word about it -- please see.
--SA
It calls for a whole book called "C++ tips and tricks". First, how could you expect posting such book in Quick Questions & Answers? Also, such book might exist, but this is not the best kind of literature on such topics. You need some education, not tips and not tricks — agree with CPallini.

—SA
 
Share this answer
 
Comments
CPallini 15-Jan-12 16:02pm    
Well, if you agrees with CPallini, than you well deserve a 5.
:-)
Sergey Alexandrovich Kryukov 15-Jan-12 19:59pm    
You mean your 5? Thank you very much.
--SA
The best advice I can give is to get some experience of your own. Consider a small project that you would like to work on and see if you can realize it with what you know of C++. If you encounter a roadblock, anything that you can't imagine how to solve, post a question about that and there will be plenty of people willing to help.

I suggest you don't use anything fancy in your first projects - just simple text input and output, or maybe reading from and writing to files. No graphics (yet), no databases, and no internet-related stuff (while other programming languages support the easy development of web apps, C++ is not one of them!)

After that add graphics. Check out tools to that end: e. g. Visual Studio provides a 'wizard' for creating windows- or dialog-based applications. (including tutorials) There are other tools, some of them free. Depending on your goals you might prefer one of those. Note that graphics functionality is not part of C++, that is why I advised against adding that from the start - it requires you to learn something in addition to C++ and may distract you from your goal to learn the language.

The same goes for databases or internet access: that is functionality which requires adding additonal libraries, and learning how to use them.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Jan-12 12:35pm    
Good points, a 5.
--SA
Albert Holguin 16-Jan-12 15:51pm    
good advice, +5
If you want to learn advanced C++, then you need to practice, practice, practice. C++ is not a language that is easily learned through theory alone. When I learned C++ back in the day, the best resource that I used while writing, messing up, and then rewriting again was the The C++ Programming Language by Bjarne Stroustrup[^].
This, in my humble opinion, is the best raw C++ book out there because it focuses on the language, not the other libraries that have been built on top of the language. My philosophy is to learn the language first, then the other libraries like MFC, etc...
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Jan-12 12:34pm    
Good points, a 5.
--SA
Stefan_Lang 18-Jan-12 4:54am    
Good suggestion. I've always found this book to be very helpful, and it does contain a lot of example code as well as exercises. Even in the age of internet, online articles and e-books, this is a book I'm happy to have - physically - on my desk.
how about start with a small project.
The project description for you is like this.
1. Create a table for customer in your database(say mysql) with the field name, dateofbirth, country.
2. create a windows form to populate the database
3. create another from to display it in table view
i) name will be taken from a text box
ii) date will be taken from a datepicker control box
iii) country name will be taken from a combobox.
4. create a tree control in which it will show all the name in list.

solve it. You will learn a lot
 
Share this answer
 
Comments
Stefan_Lang 18-Jan-12 4:51am    
I doubt anyone can learn much about C++ from such a project at all, only about setting up a GUI interface and using a DB. I think you missed the point.
Maybe,you can use the QT Library first~~it is easy to get in~~
 
Share this answer
 
i have Dev-C++ and every book i read was about Console apps not about Windows apps, i've made lot of Console apps in Dev-C++ but Windows apps are like another language, not like anything i've seen before!
 
Share this answer
 
i have Dev-C++ and every book i read was about Console apps not about Windows apps, i've made lot of Console apps in Dev-C++ but Windows apps are like another language, not like anything i've seen before! I'm not loking for tricks, i'm loking for education.
 
Share this answer
 
Comments
loctrice 16-Jan-12 19:24pm    
Windows visual c++ makes things relatively easy to get started on gui applications. You can just do some projects and keep an eye on the source code.

With dev, you can use opengl/glut, fltk, gtk, etc. All of which are freely available and have excellent documentation at their respective web sites. fltk and gtk both have online books for tutorials.
Albert Holguin 17-Jan-12 23:22pm    
If you install the WinSDK, you can build Windows applications directly using calls to the WinAPI, although you'll have to learn the basics of Windows applications first. The biggest difference is the fact that Windows applications are event driven and rely on messages to communicate (seems simple, but a lot goes into building that framework).
Stefan_Lang 18-Jan-12 5:17am    
In that case I suggest the book mentioned in Solution 4: "The C++ Programming Language by Bjarne Stroustrup". It's exactly what you need, and about the best investment I can think of to further your understanding of C++.

You should not entirely ignore GUI programming however: a GUI interface is magnitudes easier to deal with for a user than a command line interface, and as has been pointed out in various comments, it's not that hard to learn.

While we're discussing GUI: You seem to be having trouble using the GUI in this forum: For one, you shouldn't be submitting 'solutions' at all! What you posted here is now visible as a 'solution'. not only is this not a solution, but also no one but yourself will be notified of the fact that you added this to this 'thread'! If you wish to communicate with others, use the appropriate links right next to the solution or comment you wish to reply to: e. g. if you wish to comment on a solution, click the 'Have a Question or Comment' link below that solution; or if you wish to reply to a comment, click the 'Reply' link at the top right of that comment. You can edit your questions or solutions through the 'Improve Solution' link at the bottom, and you can edit a comment through the 'Modify' link, supplied by an icon to the right of the 'Reply' link.
i've started using visual c++ and learning windows apps programing on MSDN, and when they give you examples of some functions,or some thing like that they relly don't sey where to actualy put this sh*t.So could you give me couple of simple programs?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900