Dev-C++ FAQ
http://www.bloodshed.net/faq.html#12
Type: Posts; User: cflorinel
Dev-C++ FAQ
http://www.bloodshed.net/faq.html#12
I don't share quzah's belief that all users are ignorants and seek a shortcut. Maybe there are some, but there are some who want to learn. I was a noob once, and always I was getting quzah's like...
yea, keep sharing your endless wizdom, Oh mighty pre-islamic god of thunder, storm or what-ever-god-was-Quazah. 90% of your posts are usesless, with mean comments regarding other;s posts.
Now, how...
FILE *f1 = fopen("file_path");
if(!f1) {
printf("The item is not a file");
} else {
printf("File exists!");
fclose(f1);
}
Happy?
[/CODE]
for: quzah and sean_mackrory.
Errors within the script were corrected for the first problem in my post.
I can see you are for quite some time in this forum and you can't even modify 2 lines to...
It is quite important for recursion to have an ending condition.
Above code will loop infinetly.
Second problem with this modification
instead of k = k + summing(1);
put k = k + summing(0);
or k...
1.
#include <stdio.h>
#include <stdlib.h>
void up_and_down(int);
main( )
{