okay... nevermind then :) I was just wondering...
now I know :D
Type: Posts; User: Bennie98
okay... nevermind then :) I was just wondering...
now I know :D
Hi
I didn't know where else to ask this, but why isn't there an Objective C topic in this forum?
It's also a sort of C and I would think it would increase the number of members significantly.
Is...
hmm.. it's good that you pointed that out..
and it's true.. but I'm still at chapter 4 of my course.. but I'm learning more by browsing this forum than doing my exercises....
fixed it.. not with the recursive but the iterative way.. screw the task ^^
void calculate (void){
int rest;
while (nrb != 0){
rest=nra%nrb;
#include <stdio.h>
int main()
{
typedef char arr2[5];
arr2 name="name";
printf("%s\n",name);
return 0;
}
it would be much easier to help you if you have a little bit of code to begin with...
this forum isn't here to do your homework for you ^^
C Board - Announcements in Forum : General Programming...
tried that. gives all sorts of errors... :/ like: extraneous return value, unrecognized statement. expected this but found that.
and so on....
I have done that. But I can't find a simple algorythm which I can implement in my program.
There are programming examples but I do not know how to use them. I have to use a recursive method. But it...
yes I figured as much... but the problem is... I don't know the correct algorythm (I don't think that's the correct one for that purpose).. so I just fill it in like that.
I'm not exactly a...
the only algorythm I got was this:
gcd(a,b)=a if a=b
gcd(a,b)=gcd(b,a%b) if a>b and a%b isn't 0
Hi
I'm trying to calculate the greatest common divider.
But I guess there's something wrong with my algorythm to calculate it.
Help would be nice ^^.
Here's the code.
NEVERMIND... GOT IT WORKING
THX TO "carrotcake1029"
yes.. the assignment wasn't that at all but indeed it's a good practice...
so that's why I'm trying to make it work...
and I've tried to make it work in your way but it didn't... see previous...
tried to make it work on my own, and everything is fine.. accept the input filter is not working...
and i really do not have the slightest idea what's wrong..
is it the if statement that has to be...
apparently it's possible by coding correctly to shorten the time it takes for your program to do it's thing.... does anyone have any pointers in how to optimalize your code to accomplish this?...
ok i didn't test your program that much :)
can't help U otherwise...
that's what the course also says...
so the course is actually contradicting itself
normally people will present getch(); to be a good way to have your program stay open even when it's done.. typing something then leaves the program ...
it's not a good way, I used to use this too...
when i run this my compiler gives me three errors..
(13): warning #2234: Argument 2 to 'printf' does not match the format string; expected 'int' but found 'char *'.
(14): warning #2027: Missing...
when i run this program my compiler gave me the error that your variable "Z" isn't being used.. so you can delete that one..
furthermore... the output from the file isn't a square... it is just a...
So I've tried to put in a filter....^^
and it's not going to well....
I thought it couldn't fail but apparently it does :D
this is the code :
#include<stdio.h>
#include<string.h>
ok thx for the filter I'll try that in a little while.
and my OS is windows XP en compiler is the one you get with Pelles C..
but if it's really the computers fault ... then I get it... because...
this was the problem... thx for helping :)
but it still runs very very slow in the beginning ... it takes about two to three seconds before I can give some input...
so how can i change that? :$
the problem I get when i run the program and fill in something like 2 3 1987
it gives me : 2 March 1987diamond square @
and I know I haven't filtered all input because simply : I don't know how...
Updated code I'm using now
#include<stdio.h>
#include<string.h>
void opvragen(void);
void printen(void);
int dag=0, month=0, index=0, *ptrmonth;
static char * maandje[13] =...