Search:

Type: Posts; User: nefsan

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    42
    Views
    4,907

    A bitmap? mind showing me what that is? im...

    A bitmap? mind showing me what that is? im thinkin pixels :S
  2. Replies
    42
    Views
    4,907

    Ok well since assignment deadline has passed i...

    Ok well since assignment deadline has passed i think it is safe to share my code. A brute force approach which no doubt takes awhile to calculate with large humbles. I have a friend's code one which...
  3. Replies
    42
    Views
    4,907

    Now try it with test 5 tell me what you get.

    Now try it with test 5 tell me what you get.
  4. Replies
    42
    Views
    4,907

    The 48655th humble number is :2104219593 Input...

    The 48655th humble number is :2104219593
    Input data took 1286 seconds to calculate

    running on a laptop 64bit 2.4 core2duo. damm ^^ 13mins . I should jsut tell Mr Teacher to get a fast...
  5. Replies
    42
    Views
    4,907

    i have one more test to add, my version is...

    i have one more test to add, my version is incapable of processing this.takes about 30mins+ and wring ans.Does your one work with this data?

    Test 5 100 48655
    4013 4019 4021 4027 4049 4051 4057...
  6. Replies
    42
    Views
    4,907

    scroll up, anduril462's posts are basically what...

    scroll up, anduril462's posts are basically what i did.
  7. Replies
    42
    Views
    4,907

    ok great it got it working!!! :D takes 108...

    ok great it got it working!!! :D takes 108 seconds though. hmph thanks for the help. i need to get a faster algo.
  8. Replies
    42
    Views
    4,907

    ok here is the implementation what you said.It...

    ok here is the implementation what you said.It crashes though




    int humbleTest(long num){//test if a number is humble or not
    int i;
    long n;
    n = num;
  9. Replies
    42
    Views
    4,907

    ok my program did look messy cleaned it up a bit....

    ok my program did look messy cleaned it up a bit. But im not sure i understand how that algo will find the 'kth' number in the sequence. I think the problem is the findhumble function is incapable of...
  10. Replies
    42
    Views
    4,907

    yes you are right, must have accidentally left it...

    yes you are right, must have accidentally left it that way while im troubleshooting. I am passing in a long int into my humble test so it must be a long. doesnt affect the situation though :S
  11. Replies
    42
    Views
    4,907

    Help with this please

    Ok so i have been coding this problem.The problem ">
    For a given set of K prime numbers S = {p1, p2, ..., pK}, consider the set of all numbers whose prime factors are a subset of S. This set...
  12. Replies
    7
    Views
    2,007

    yeah ithink i got it.thnx guys!

    yeah ithink i got it.thnx guys!
  13. Replies
    7
    Views
    2,007

    i understand all that but what i dont get it how...

    i understand all that but what i dont get it how to put the words into the linked list
    i know this is a bit cubersome but here it is.it runs and compiles but there is nothing in my start list.i dont...
  14. Replies
    7
    Views
    2,007

    i use dynamic storage maloc i have a function...

    i use dynamic storage maloc
    i have a function that created the node


    Nodeptr makenode(char string[]){

    Nodeptr str=(Nodeptr)malloc(sizeof(Node));
    ...
  15. Replies
    7
    Views
    2,007

    getword and linked lists

    so i have a funtion to read words and put thm all in lowercas leteering.how do i insert the wordsv into a link list ?i have declared the link list and wrote a function to add the words in place.i jus...
  16. Thread: Linked lists

    by nefsan
    Replies
    3
    Views
    936

    well i made a struct for the nodeptr typedef...

    well i made a struct for the nodeptr


    typedef struct node{
    char word[20];
    int count;
    struct node *next;
    ...
  17. Thread: Linked lists

    by nefsan
    Replies
    3
    Views
    936

    Linked lists

    oky the problem is that i need to read a passage and store the words in a linked list.i also need to check and see which words repeat and keep count how muhc times the word is repeted.i have already...
  18. Replies
    2
    Views
    1,100

    okay ive gotten some errors worked out so far but...

    okay ive gotten some errors worked out so far but my programs crashes but no errors in the compiler.this is my entire program.nneeds to read from a file though.please tell me what my errors can be
    ...
  19. Replies
    2
    Views
    1,100

    making a node in linked lists

    okay i can make nodes jsut fine using numbers but i seem to be getting problems using toher data such as strings.the rest of the program works fine just this part crashes




    typedef struct...
  20. Thread: structures

    by nefsan
    Replies
    2
    Views
    915

    solved : )))

    how cool i solved my own problem.how i had it i was comparing it with the same value i read so it would never sort.i needed to compare it with it's predecessor so
    k=n-1;
    lol so simple hehe yay.tnx...
  21. Thread: structures

    by nefsan
    Replies
    2
    Views
    915

    correction //how i call it ...

    correction


    //how i call it
    fscanf(in,"%d",&temp);
    while(temp!=-1){
    type[i].accnum=temp;
    fscanf(in,"%lf %s...
  22. Thread: structures

    by nefsan
    Replies
    2
    Views
    915

    structures

    okay im supposed to read from a file and store data in a struct array ,but i must insert in place at the time of reading.i have sucessfully read from the file just my insertion function needs some...
  23. wont one edit the value(&) and permanenlty change...

    wont one edit the value(&) and permanenlty change it wherease the other jsut copies and uses the value. im thinking the same as passing to functions here
  24. Replies
    2
    Views
    6,410

    how to use the clock() function?

    hey i got to write a program which stores randoms numbers in an array use insertion sort and selection sort and time both of them witht the lcock fnction to see which is faster.how do i use the clock...
  25. Replies
    16
    Views
    3,555

    SURE HERE IS THE CODE it took some adjustments in...

    SURE HERE IS THE CODE it took some adjustments in the sum function simple stufff but it drained my brain.lol!


    #include<stdio.h>
    #include<stdlib.h>



    typedef struct node{
    int num;
Results 1 to 25 of 57
Page 1 of 3 1 2 3