Search:

Type: Posts; User: Canucklehead

Search: Search took 0.00 seconds.

  1. You people humble me with your willingness to...

    You people humble me with your willingness to help newbs.


    struct primeList {
    int prime;
    struct primeList *next;
    };
    int importList(struct primeList *latestPrime, struct...
  2. Doesn't it get more complicated when -> gets...

    Doesn't it get more complicated when -> gets involved?
  3. Good catch, thanks. But I want to be able to use...

    Good catch, thanks.
    But I want to be able to use latestPrime and thisPrime (thisPrime for neatness's sake) later in main().
    Basically, how can you make a function f that can access pointer x, y and...
  4. Linked List, pointers, function question

    struct primeList {
    int prime;
    struct primeList *next;
    };
    int main(int argc, char *argv[]) {
    time_t start,end;
    time (&start);
    int lastTry = atoi(argv[1]);...
  5. Replies
    2
    Views
    1,237

    The other, faster program (which i changed a...

    The other, faster program (which i changed a little to add a timer):



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <assert.h>
    #include <time.h>
    #include <iostream>
  6. Replies
    2
    Views
    1,237

    Why is my program so slow?

    #include <vector>
    #include <iostream>
    #include <cmath>
    using namespace std;

    int main(int argc, char *argv[]) {
    time_t start,end;
    time (&start);
    int lastTry = atoi(argv[1]);...
  7. Replies
    4
    Views
    1,237

    Thanks. Is this method fast? Is there a faster...

    Thanks.
    Is this method fast?
    Is there a faster one?
    Would this method work if x is a multiple of 10?
  8. Replies
    4
    Views
    1,237

    Finding # of digits in an integer

    Please help with the problem described in the title.
    I'm writing a little thing to find prime numbers.
    I'm looking for a really fast method.
    I'm a very early beginner.
    I have thought of...
  9. Replies
    2
    Views
    1,296

    Great! Thanks. In case you were wondering,...

    Great! Thanks.

    In case you were wondering, this isn't homework. I'm still in high school. This is for my own personal health.
  10. Replies
    2
    Views
    1,296

    Help manipulating int

    What is the most efficient way to get the last 2 digits of an integer into a seperate variable? What about the 3rd and 4th last?
    Ex.
    123456
    int a should == 12
    int b should == 34
    int c should ==...
Results 1 to 10 of 10