Search:

Type: Posts; User: Bennie98

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Objective C

    by Bennie98
    Replies
    4
    Views
    1,820

    okay... nevermind then :) I was just wondering......

    okay... nevermind then :) I was just wondering...
    now I know :D
  2. Thread: Objective C

    by Bennie98
    Replies
    4
    Views
    1,820

    Objective C

    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...
  3. Replies
    10
    Views
    2,789

    hmm.. it's good that you pointed that out.. and...

    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....
  4. Replies
    10
    Views
    2,789

    fixed it.. not with the recursive but the...

    fixed it.. not with the recursive but the iterative way.. screw the task ^^




    void calculate (void){

    int rest;
    while (nrb != 0){
    rest=nra%nrb;
  5. Thread: typedef

    by Bennie98
    Replies
    6
    Views
    1,521

    #include int main() { typedef...

    #include <stdio.h>

    int main()
    {
    typedef char arr2[5];
    arr2 name="name";
    printf("%s\n",name);
    return 0;
    }
  6. Replies
    13
    Views
    1,739

    it would be much easier to help you if you have a...

    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...
  7. Replies
    10
    Views
    2,789

    tried that. gives all sorts of errors... :/ like:...

    tried that. gives all sorts of errors... :/ like: extraneous return value, unrecognized statement. expected this but found that.
    and so on....
  8. Replies
    10
    Views
    2,789

    I have done that. But I can't find a simple...

    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...
  9. Replies
    10
    Views
    2,789

    yes I figured as much... but the problem is... I...

    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...
  10. Replies
    10
    Views
    2,789

    the only algorythm I got was this: ...

    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
  11. Replies
    10
    Views
    2,789

    Greatest Common Divider

    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.
  12. Replies
    18
    Views
    2,812

    NEVERMIND... GOT IT WORKING THX TO...

    NEVERMIND... GOT IT WORKING

    THX TO "carrotcake1029"
  13. Replies
    18
    Views
    2,812

    yes.. the assignment wasn't that at all but...

    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...
  14. Replies
    18
    Views
    2,812

    tried to make it work on my own, and everything...

    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...
  15. apparently it's possible by coding correctly to...

    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?...
  16. Replies
    8
    Views
    1,240

    ok i didn't test your program that much :) ...

    ok i didn't test your program that much :)

    can't help U otherwise...
  17. Replies
    4
    Views
    2,450

    that's what the course also says... so the...

    that's what the course also says...



    so the course is actually contradicting itself
  18. normally people will present getch(); to be a...

    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...
  19. Replies
    7
    Views
    1,635

    when i run this my compiler gives me three...

    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...
  20. Replies
    8
    Views
    1,240

    when i run this program my compiler gave me the...

    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...
  21. Replies
    18
    Views
    2,812

    So I've tried to put in a filter....^^ and it's...

    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>
  22. Replies
    18
    Views
    2,812

    ok thx for the filter I'll try that in a little...

    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...
  23. Replies
    18
    Views
    2,812

    this was the problem... thx for helping :) but...

    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? :$
  24. Replies
    18
    Views
    2,812

    the problem I get when i run the program and fill...

    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...
  25. Replies
    18
    Views
    2,812

    Updated code I'm using now #include...

    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] =...
Results 1 to 25 of 49
Page 1 of 2 1 2