Search:

Type: Posts; User: eeengenious

Search: Search took 0.01 seconds.

  1. So far I've created an array, int...

    So far I've created an array,
    int numTerms[MAX_TERMS]; , but where / how exactly would I update the count?
  2. Getting the Number of Terms Per Polynomial

    After obtaining the number of polynomials, as well as pointers to those polynomials, the following code segment prints those polynomials to the screen:




    int displayPolynomial(){

    int t, k,...
  3. Polynomials: Array of pointers to linked lists?

    Right now, I have a polynomial stored as a linked list (struct with element for coeff, element for exponent).

    For multiple polynomials, there needs to be a linked list created for each...
  4. Here's my code: #include ...

    Here's my code:


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


    #define TRUE 1
  5. Right now, I've read through the file and...

    Right now, I've read through the file and determined the coefficient and exponent for each term in the polynomial.

    I plan to pass these values to a "Build" function which actually builds the...
  6. Adding/Multiplying/Evaluating Polynomials

    Program involves File I/O

    Example, there's a file with the following:

    2 ; number of polynomials
    4x^5 - 2x^3 + 2x + 3 ; polynomial 1
    8x^4 + 4x^3 - 3x + 9 ; polynomial 2

    Have to use a...
  7. Replies
    5
    Views
    2,364

    Why would that be an issue?

    Why would that be an issue?
  8. Replies
    5
    Views
    2,364

    Alright, that works ! Elementary mistake.. ...

    Alright, that works !

    Elementary mistake..

    Thanks
  9. Replies
    5
    Views
    2,364

    Counting Occurances of a Character

    Hi,

    I need help trying to do the following:
    Basically, I am trying to count the occurrences of each character in a text file. I'm reading in line by line, and then in each line, analyzing...
  10. Replies
    1
    Views
    1,963

    Cracking a Cipher

    Writing Code to Crack a Cipher. It's a sort of interactive game that helps the user crack an encoded text (where one letter of the alphabet maps to another)

    Need Help with the "Manually Replace"...
  11. File I/O..Reading a file and printing contents

    Working with file I/O

    Basically, a user inputs a file which they want read. They can enter a sentinel value of "STOP" in which case the program stops.

    The program then opens the file, reads...
  12. Replies
    23
    Views
    6,077

    I have the program working according to all...

    I have the program working according to all specifications.

    Thank you very much for all the help.
  13. Replies
    23
    Views
    6,077

    It should look like this: ...

    It should look like this:

    http://i56.tinypic.com/2woccp4.jpg
  14. Replies
    23
    Views
    6,077

    I'm trying to get the output of the previous...

    I'm trying to get the output of the previous Sieve function like this:


    Display the final set of prime numbers in a 7 column, table format. The prime numbers must be in descending order with the...
  15. Replies
    23
    Views
    6,077

    %10d to get the field length of 10

    %10d to get the field length of 10
  16. Replies
    23
    Views
    6,077

    Alright. Here's my sieve function: So far...

    Alright.

    Here's my sieve function:

    So far got the numbers to print in descending order.



    int Sieve (int max_Number)
  17. Replies
    23
    Views
    6,077

    Haha, sweet, seems to be working. Thanks for all...

    Haha, sweet, seems to be working.
    Thanks for all your help man.

    Last thing, I have to return the list of prime numbers in a specific format:

    Display the final set of prime numbers in a 7...
  18. Replies
    23
    Views
    6,077

    Here's what I have: Getting the error...

    Here's what I have:

    Getting the error "Expression must be a modifiable lvalue for the 'y' down below:



    int main() {

    int max_Number;
    char Repeat;
  19. Replies
    23
    Views
    6,077

    Okay, I have it in a do-while loop like this. ...

    Okay, I have it in a do-while loop like this.

    Where would the character stuff go?



    int main() {

    int max_Number = 0;
    printf("This program wills calculate all primes up to the number you...
  20. Replies
    23
    Views
    6,077

    Thanks Also trying to get it such that the...

    Thanks

    Also trying to get it such that the process repeats whenever the user inputs 'Y' or 'y' and quits when 'N' or 'n'

    Not sure if I'm going about it the right way, thinking I'm making it...
  21. Replies
    23
    Views
    6,077

    Oh wow, I didnt know a comma could throw it off....

    Oh wow, I didnt know a comma could throw it off.

    Thanks.
  22. Replies
    23
    Views
    6,077

    What would be the proper way to write it?

    What would be the proper way to write it?
  23. Replies
    23
    Views
    6,077

    Checking for Invalid Input...Not Working?

    Valid input for this program is between 2 and 50,000.
    However, whenever I try a number less than 2 or greater than 50,000, it still goes through the functions.

    What's wrong? Appreciate the help....
  24. Replies
    1
    Views
    3,149

    Never mind, I figured it out, forgot to...

    Never mind, I figured it out, forgot to initialize sum to 0
  25. Replies
    1
    Views
    3,149

    Prime Numbers and Palindromes

    A user inputs a number between 2 and 50,000.

    Writing a program which utilizes the Sieve of Eratosthenes algorithm to find a list of prime numbers between 2 and the user's input.

    I've got the...
Results 1 to 25 of 25