Yeh thats what I thought,
Thanks for the help, still getting my head around recursion
Type: Posts; User: trevordunstan
Yeh thats what I thought,
Thanks for the help, still getting my head around recursion
thanks, that coding worked but i do not understand this bit
return((m == 1)? n :
can you quickly break it down for me.
thanks for the help
Hey there guys,
I am doing some exercises in my study book for uni and have just started recursion. One of the exercises is use recursion to multiply 2 numbers using repeated addition.
The...
Hey guys,
thought I would get back to the forum to show the solutions that I came up with in case other people have similar problems. The problem that I was having with the empty file was because I...
ok guys thanks for the info, ill have a bit of a closer look at it and see what I come up with, The bubble sort algorithm I got out of my study book, but yeh I can see now that the counter is not...
I am unable to see exactly where the violation occurs (using DEV c++). The thing is the program works perfectly with a test file with the data that I provided earlier, so the switch statement works...
the empty file exist already exists, I will try and see where the access violation occurs
Hey there guys,
I have written a program to open a file, read from it and store the data into a structure. The program works fine except when i try to use an empty file to read from the program...
Thanks man, i see the problem now.
Hey there again guys,
I am still having a little trouble with this ceasar shift program that I am doing for uni. I have got most of the program down and it seems to work pretty well, there is just...
Yeh I have heard that scanf() can be a bit of a dog. We have not been introduced to fgets yet but i will look into it.
cheers
I have tried putting in if (input != ' ') { but whenever I do It does not seem to produce the output that I desire, it will only accept the input up to to the first space then and thats it so i am...
Hey there guys,
I am currently in the process of writing a ceasar shift program for UNI and would really appreciate some advice. I have pretty much finished the program but there are 2 elements...
Thanks for the help, after re-typing the code the program worked as it was designed to, and after reading your msg and looking at the program it all fell into place, Cheers !!
Hey there guys,
I am new to C programming and even newer to this forum. I am trying to teach my self C programming basics in preparation for when I take the unit at uni for my second semester.
I...