I am nearly finished readin Teach Yourself C++ in 24 hours.
What do you recommend I should do after that?
I am nearly finished readin Teach Yourself C++ in 24 hours.
What do you recommend I should do after that?
Keep solving problems with C++. Expand your bank program. Try implementing a solution for some of the contests in the contest section (like Minesweeper or ConnectFour). Read another book to give you more challenges, perhaps something more accelerated (like Accelerated C++). If you have a specific interest (like game programming), slowly work your way towards that particular specialty by reading about and following that field.
You've got a lot more to learn to become an intermediate level programmer, and tons more to become advanced. The only way to get there is to practice and keep reading and studying.
pick specific path software
game;network;data;video;sound;etc.
Kuphryn
Well I want to go into games in the end, what sort of things do I need to know to be intermediate
That might be a better question for a search of the Game Programming section of this forum. To be an intermediate C++ programmer you need to expand your knowledge of classes and functions, you need to be better at program design, you need to gain experience using existing tools. All of these things come from practice. I think the book I mentioned would help you a lot in doing that. You could also read Thinking in C++ which is free online. These will give you a better foundation from which you can eventually work on game programming.
What sort of programs should I be looking to write?
Anything... I've mentioned three examples already. Just work on designing the program to fit the goals you set out for it and to be flexible enough to expand as you go. If you struggle to come up with more or better examples, just search for some or even look through some of the other threads to see what other people are working on. The contests boards are usually good places to start because normally those are not too time-intensive and you have clear rules/goals outlined for you already.
I would suggest "Teach Yourself C++ in 10 minutes".I am nearly finished readin Teach Yourself C++ in 24 hours.
What do you recommend I should do after that?
God no I hate that book.
I've been thinking about this too. If Teach Yourself C++ in 24 Hours has worked well for you, you might consider Effective C++ by Scott Meyers, I think it is.
This is also an opinion, but it's important to read a reference book more than once. Don't bog yourself down in too many books, they cost a lot of money. Use and re-use what you have.
I never learn programming from books, really. Mostly through forums
You should also look out for online resources, as they can contain a lot of advanced C++ and stuff you won't find in books. Sites abound: www.cppreference.com, www.cplusplus.com/ref/, and of course our very own www.cprogramming.com.
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}