More Practice?

Here is a list of my labs I have completed this semester in C & C++

C:
1. Hello World
2. Money Conversion Table
3. Basic Calculator
4. Basic Calculator (Using Functions)
5. Basic Calculator (Using Functions with more options for users.)
6. Phone Book Application (Using Structures)
7. Phone Book Application (Using Structures and Memory Allocation)
8. Phone Book Application (The above plus opening and saving into files)
Switch to C++:
9. Tic-Tac-Toe 2D Board (Using Object Oriented Programming)
10. Tic-Tac-Toe 3D Board (Using OOP & Inheritance)
11. Tic-Tac-Toe 3D Board (Using OOP, Inheritance and Namespaces)

From lab 6 on I had a lot of problems. I figured that recreating 6 - 8 in C++ as well as recreating 9 - 11 using more efficient code would be good practice for me during the summer before I advance into more difficult code. My only problem is I had major problems on 6 - 11 and wanted to know if anyone could offer any sort of tips or suggestions? I could all of my source code from these labs if it would help and I could highlight my problem areas if that is the best way. Or would making a new single program be a better option? If so, could you explain what I should make, what elements I need to use (such as pointers, structures, classes, inheritance, namespaces, headers, file open/close, etc.)

If you are willing to help me, any help would be great. If you post a new project for me to work on that would be a lot more helpful as well. Please don't make it beyond beginner level though. Anything more advanced than the above and I might just become more confused. Also, I have problems using pointers and passing arguments to functions. Most of my functions are in the format of:

void FunctionName(){}


When they should probably be something like:

int FunctionName(int A, int B){}


I figure this is good for anyone else who is like me who wants more practice, they can search "practice" or something and find this thread full of help. Thanks for your time. If you need anymore information, just let me know.
University courses are usually severely lacking and not really suited to learn a programming language.
You should buy yourself a book such as the C++ Primer and learn the programming language on your own. Make sure to work through the entire book - including the chapters you think you already covered in class, as it is likely that you missed some important basics.
When you're through, you should be able to easily complete your university course with top marks.
I don't know if you got my PM, no one seems to check those. I have a book that was required for my course called C & C++ for the absolute beginner. Is that a good book, or should I look into the other one? C++ Primer Edition 5? Also, does anyone else have any ideas?
Last edited on
try these: http://www.cplusplus.com/forum/articles/12974/ (Beginner exercises)

Khaltazar wrote:
Also, does anyone else have any ideas?

Learn basic templates and STL, or learn a popular C++ library e.g SFML

edit: or you can keep on doing what you're currently doing here, i.e help others with their code :)
Last edited on
Topic archived. No new replies allowed.