Has been studied unsuccessfully programming for around 3-4 years but haven't intended in giving up yet. Does that count as a passionate hobby?
work (as freelancer?)
No blogs yet.
So a callback inside a loop isn't called a nest? How about this one? int Number::maxConsecutiveNumber1() { vector < int > data = convert(BIN); int maxCNo1 = 0 ; // Consecutive Number of 1 int CNo1 = 0 ; for ( unsigned i = 0 ; i < data.size(); i++) { if (data[i] == 1 ) { CNo1 += 1 ; if (data[i+ 1 ] == 0 ) { maxCNo1 = (CNo1 > maxCNo1) ? CNo1: maxCNo1; } else continue ; } } return maxCNo1; }
From all of document I've read, I think PHP document is the one I could easily understand. Moreover, it got comments in almost every pages which sharing lot of useful tips. Don't like the language very much but I do like their docs. I wish C++ has one.
To be honest, I don't have an amazing reason like other cool guys in here. I just learn to code because I want to. I want to make an app myself, I learn to code. I want to make my idea come true, I learn to code. I feel the computer language (at high level) quite closes to human language, so, I learn to code (so I could compare and enjoy the amazing of the world I living). Sometime, I want to understand deeper about computer, thing that companies with me more than anyone else. So I decide to learn to code. I don't have advice, I just simply hope this could strengthen your learn-to-code will. I mean, coding is good, especially in these days. To me, it's like you learn a new language to speak with new race in our world. It's good to know, anyway.
Thanks a lot. Your correction is really helpful. However, it leads me to a few curious. I hope you don't mind to teach me more. I can see your code-flow is from detail to general ( main is at the last). Is this the popular code style in C++? You said I should define function before the main ? I don't understand what's wrong with the declaration first and definition after? Do you have any naming-tips for non-native speakers?