After re-writing the program 5 times from scratch I finally found out how to make everything in the program connect. Not that I know what I have done I just guessed like crazy. But the code works...
Type: Posts; User: Witch
After re-writing the program 5 times from scratch I finally found out how to make everything in the program connect. Not that I know what I have done I just guessed like crazy. But the code works...
Thanks for all the tips, unfortunately I'm still confused by pointers. I think I will have to revisit this subject at a later time instead when I have practiced more with C.
If I understood you correctly. Then the reason for me using double instead of int on the array variable, is because this is the test program for my bigger complex numbers program. I just try to...
Program crashes I suspect variable n but I'm not a 100% sure. I showed this code to my teacher and we tried different things to solve the crash. But without a single warning and error from...
Thanks laserlight that code rocks! :D
So why doesn't my Dynamic-memory-allocation code above connect when I modularize it into a function? It works when I run it without using a function. :confused:
Example code 4 - [ Error ]
You...
Thanks laserlight that code looks cool. :cool:
Could somebody also show me how the same code, should be solved using the dynamic-memory-allocation-technique?
These two ways of dealing with...
Thanks for pointing me in the right direction. :) I googled and got help from Binky Pointer Fun Video along with the reading material Pointer Basics.
Now I finally grasp the concept of pointers I...
Example code 1 - [ OK ]
3Wah7S4K - Pastebin.com
But when I try to modularize the /* Input */ codes then I get all sorts of warnings and errors. I managed to fix most of them but get stuck here...
Thanks that was quick! :D You solved 90% of my entire to be program, by that single line.
I have a basic code where I can copy an array without problems. But when I introduce another kind of array, a more advanced variant which I think is called a dynamic array. Then my program crashes...
Nah it's not that newbie books about games inspires me. It's more like the only thing I can manage to associate to when thinking about C and C++ programming in general.
I've been a member at ROS...
Who am I?
I don't have much experience as a programmer in any kind of languages. You could say that I got serious in learning to become a programmer around the year 2007.
From 2007 until now I...
Roger on the casting tips! I have an old skool teacher. :)
Hi I'm a newbie in C programming attending a night course. Right now I'm trying to learn about: arrays, calloc and pointers.
None of these things has truly sunken in yet, I'm still not comfortable...