Its the only topic I've had trouble with today. :pissed:
What does that mean? Does that topic have a Bug? It also says: DEBUGMODE
Shurik wrote:for(i=1;;i++)
printf("I hate programming!!!!");
Oh cmon!calculating the length of string
Sorry, I'm not a programmer. I'm studying materials engineering and physics, didn't feel much need in programming untill 4th year ... I don't need C language to solve Laplace equasions or calculate deflections of beamsOh cmon!
I had some experience with programming (Pascal in school 10 years ago) so it wasn't a completely new concept for me, but I know people who didn't have any experience whatsoever and they suffered quite a lot ...But C as a beginner's programming language...that can be quite the challenge, I imagine.
The syntax was indubitably wrong, but the basic premise of that was C#.And now try to do it using recursive function
What language was that, BTW? C++?
Of course, if you want to use C++, it's a bit simpler (and non-recursive):
string s = "foo";
int b = s.length();
You use Matlab too eh? I've used it extensively in a couple of courses (primarily signal processing and control engineering).Shurik wrote:IMO it would much more useful to make a Matlab course because it is something I really need ...
I was primarily thinking of things like pointers and manual memory allocation - not difficult concepts to be sure, but probably more grief than a new or inexperienced programmer needs - I'd go with for example Java as a more apt first language.StratoHeart wrote:So I agree when NordicStorm says C it's a challenge for the begginers.
However, the programming logic is the same for every languages you use.
Do you guys like Java?
Well yeah, but it strikes me as a bit silly and not at all pedagogical that you'd be allowed to call the Substring method in the string class, and not Length?fifhtea_sausage wrote:Oh shame on you! When we say calculate the length of a string doing MessageBox.Show(string.length) or something of the likes of that is unacceptableYou have to calculate it with the substring method, i take it.
I'll have to use for a project in biophysics, to do a simulation of biological system growth ... It involves solving a system of differential equasions (diffusion equasions) and then some sort of visualizing of the solutions ...You use Matlab too eh?