Search:

Type: Posts; User: megazord

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    6,899

    No, the max length of the array that I can give...

    No, the max length of the array that I can give is 256.
    how can I generate all the primes with the first 24?
  2. Replies
    17
    Views
    6,899

    I tried to make some If's there if (i%2==0) ...

    I tried to make some If's there

    if (i%2==0)
    findingprime(number,i,counter,j+1);

    if(i%3==0)
    findingprime(number,i,counter,j+1);

    etc.. till 24 (I have sense why 24 but i forgot...
  3. Replies
    17
    Views
    6,899

    yes, thank you. I read about it friday, i saw...

    yes, thank you.
    I read about it friday, i saw that what vast offer me is close to that implantaion (sqrt i).
    I tried to make a funcation that ignor from wall the multiplaies of 2,3,5,7 etc..
    but...
  4. Replies
    17
    Views
    6,899

    I'm searching a "return" for that, not yet...

    I'm searching a "return" for that, not yet founded.


    I use that advise! thnx, it wat helpfull but, I still donwt get to 1000, get only 623.
    I think I need another "if" there. i don't know...
  5. Replies
    17
    Views
    6,899

    what is the meaning of iteration? anyway, the...

    what is the meaning of iteration?

    anyway, the work restriction is to use no loops only recuration.
  6. Replies
    17
    Views
    6,899

    Recuration Prime Numbers

    Hi all,

    I wrote a code that finding the N'th prime number according to an index that given, for example: "Prime number #7 is 17."

    my program working for very small index's, and I need it to...
  7. Replies
    3
    Views
    2,338

    I edit the program.

    I edit the program.
  8. Replies
    3
    Views
    2,338

    problem with struct

    hello all,
    I'm writhing a code with struct and I'm a littel bit confuse.
    I get RUN TIME eroor and I don't why exactly.
    the program Is fallin in the strcpy() int add studets and add course func....
  9. Replies
    16
    Views
    3,378

    I will ignore yours degrading "tone", and explain...

    I will ignore yours degrading "tone", and explain this line:
    if some of the substring is ended I need to finish the recursion function, so this is my STOP SIGEN.

    I'm not a good C progammer...
  10. Replies
    16
    Views
    3,378

    Someone? Plz help :\ I stayed all night trying...

    Someone? Plz help :\
    I stayed all night trying to make it work! :\
    but no luck.

    if I enter substring "7778"
    and 2nd substring "78", I get 0 and I need to get 2 (according to theirs program)....
  11. Thread: Longest Index

    by megazord
    Replies
    3
    Views
    2,266

    This ass, is for practice recursion method. so...

    This ass, is for practice recursion method.
    so it's forbidden to use loops (for,while etc)
  12. Replies
    16
    Views
    3,378

    :D I don't have it! :\ my program don't stad...

    :D
    I don't have it! :\
    my program don't stad the:

    "• Given i,j,k are the indices of 3 following matched letters, k-j =< 2 * (j-i)
    o In other words- if the distance between 2 matched letters...
  13. Replies
    16
    Views
    3,378

    oh yhea! I think I got it! maybe someone will...

    oh yhea!
    I think I got it!
    maybe someone will make me SQA :P



    #include <stdio.h>
    #define INPUT_LEN 256

    int findWord(char arr[], char word[]);
  14. Replies
    16
    Views
    3,378

    I try'd somthing... but i you can see that it's...

    I try'd somthing...
    but i you can see that it's not working very well 'cuse I'm running in the same time on both substring...



    #include <stdio.h>
    #define INPUT_LEN 256

    int findWord(char...
  15. Thread: Longest Index

    by megazord
    Replies
    3
    Views
    2,266

    Longest Index

    I have a second Q.
    this time I wroth somthing, and it's working!
    but again :( I can't reach the reqeirment:
    "you are not allowed to change array; you are not allowed to use more than 1 additional...
  16. Replies
    16
    Views
    3,378

    if it's a joke, i did'nt understand that :\

    if it's a joke, i did'nt understand that :\
  17. Replies
    16
    Views
    3,378

    I can't use pointers (*p,null etc). opps.....

    I can't use pointers (*p,null etc).

    opps..
    here I compiled my code..
    insted of printf i need to put if somewhere, I don't know where :/



    #include <stdio.h>
    #define INPUT_LEN 256
  18. Replies
    16
    Views
    3,378

    here is my code for what you ask, did I did it...

    here is my code for what you ask, did I did it ok?



    int findWord(char arr[], char word[]){
    checkArray(char arr[],int length);
    checkArray(char arr[],int length);
    }
    void...
  19. Replies
    16
    Views
    3,378

    oh that was fast, thnx. yes I have a...

    oh that was fast, thnx.

    yes I have a restrictions to not use any loops (for,while) and no libery func except of printf, scanf and gets.

    and I don't know how to overpass this restriction...
  20. Replies
    16
    Views
    3,378

    arr and recursive func

    Hi all,

    I have and ass, and I can't reach the reqeirment:
    "you are not allowed to change array; you are not allowed to use more than 2 additional (helper) functions(recursive and no recursive)...
  21. Replies
    21
    Views
    4,426

    I fixed my program for the length and for more...

    I fixed my program for the length and for more uniqe variables,
    and add some notes.

    maybe if I will specify my problems, you can help me more:

    1. On part 1, can I unite some of the checks?...
  22. Replies
    21
    Views
    4,426

    Thanks! yhea :( 20 ........ing indentation :(...

    Thanks!
    yhea :( 20 ........ing indentation :( it's to long, I'm sure that there is a way to make all programs be shorter even junt using main()

    but we start making progs wirh functions only in...
  23. Replies
    21
    Views
    4,426

    Adak and all, i finish my code, you can see that...

    Adak and all, i finish my code, you can see that it's a monster code!
    adak I need to redeem your promise "*don't* want to do your assignment for you, we want to *help* you, do your assignment.".....
  24. Replies
    21
    Views
    4,426

    what can I do, this my proffesor rules. :( ...

    what can I do, this my proffesor rules. :(

    yeha, it's a big program, I'm seraching for a way to make her efficient, I'm lokking for 4 directions so I need 4 loops.
    'cuse the first one ended so...
  25. Replies
    21
    Views
    4,426

    first of all, Adak and all thank you for the time...

    first of all, Adak and all thank you for the time and understanding:)
    Adak, no functions are allowed.

    this is my program, the first prog let the user to insert 8 coordinate in the borad, and then...
Results 1 to 25 of 27
Page 1 of 2 1 2