Search:

Type: Posts; User: lleb

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Thread: tan inverse

    by lleb
    Replies
    10
    Views
    4,923

    yup, but that still requires a search to learn. ...

    yup, but that still requires a search to learn. im so new to C that i live by my man pages and getting help from here and other places.
  2. Replies
    9
    Views
    981

    i hear this from time to time in this forum. how...

    i hear this from time to time in this forum. how do you do so? i run both OSx and Linux therefore im just
    gcc -o foo foo.c

    what do i need to add to "maximize" my compiler warnings?
  3. ask yourself what kind of programming do you wish...

    ask yourself what kind of programming do you wish to do? if you are going to be in any kind of engineering field, then yes math will come in very handy. if not then maybe not so much so.

    as for...
  4. Thread: tan inverse

    by lleb
    Replies
    10
    Views
    4,923

    one nice feature about programing in Linux is the...

    one nice feature about programing in Linux is the use of man pages. If you are not programming in Linux, then hit up google and do a search for "man math.h" you will find your answer there.

    I add...
  5. unicode depends largely on your terminal. in a...

    unicode depends largely on your terminal. in a raw terminal such as a Linux virtual console or the CLI for OSx you will not be able to use unicode, or asci for that matter.

    In Gnome or KDE or...
  6. looking to improve this script. its a trapezoidal approx of an integral

    One of my last programs to write was to use the trapezoidal rule to approx. the definite integral defined in the program.

    it works, now i am looking for ways to improve this code, if there are...
  7. yes, sorry for not being more clear. will it...

    yes, sorry for not being more clear. will it cause an issue if, in this case, it is declared int vs void?
  8. ok, does it matter what the return type is in...

    ok, does it matter what the return type is in this case?
  9. yeah one more program to write then im fin for a...

    yeah one more program to write then im fin for a little while at least. this has been a very exciting course, but there is no way i would be near as far along as i am without the help of all of you...
  10. yes, and that is what im going to do. thank you...

    yes, and that is what im going to do. thank you for pointing me in the right direction to think about how to deal with this. i was at a total loss.


    #include<stdlib.h>#include<stdio.h>...
  11. its what the prof. is asking for: i was...

    its what the prof. is asking for:



    i was thinking i could manually populate the 3 arrays and run the do while on them, but your idea is much better, gather the input 3 times from the user and...
  12. ok so a do while loop to incorporate all three of...

    ok so a do while loop to incorporate all three of my functions is what you are saying. if i do that, how does it know when to stop? just set a max_limit to 3 array entries?
  13. how to add do while loop with the following determinant program?

    I have a successful program that can take in a 2x2 row wise matrix, print out the matrix, calculate the determinant, then print out the determinant.

    That is fine for getting direct input from the...
  14. i have not learned how to use a text file with C...

    i have not learned how to use a text file with C yet. so you are saying because im using i and j for the 2D, i can not use either of those to increment the 1D in my function?

    That was exactly...
  15. i take it im wrong in doing: [ROWS][COLS] should...

    i take it im wrong in doing: [ROWS][COLS] should i just be [][COLS] for the 2D array? also im still getting junk output:


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


    #define...
  16. could you please provide an example of what you...

    could you please provide an example of what you are talking about. are you saying i need to create a 2D array in main(), if so im not sure how to populate it with the values i need.

    FYI thank you...
  17. yup, you are right i meant...

    yup, you are right i meant Convert_1D_to_2D_Array(), but still getting compiling error:


    Undefined symbols: "_Covert_1D_to_2D_Array", referenced from:
    _main in ccCHnNSb.o
    ld: symbol(s)...
  18. error compiling with program to convert 1D array - 2D array

    Im having issues with my function for converting a 1D array of 36 elements into a 2D array of 6x6 matrix.


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


    #define SIZE 36 // will be...
  19. Replies
    17
    Views
    3,332

    when it comes to programing in C, the flavor of...

    when it comes to programing in C, the flavor of linux you run will not matter. What will matter is how comfortable you are with things like gedit and the command line as well as how comfortable you...
  20. Thank you for all of your help. that was...

    Thank you for all of your help. that was fantastic. I LEARNED and I succeeded in creating what I needed:


    #include<stdlib.h>#include<stdio.h>
    #include<unistd.h>
    #define SIZE 10


    void...
  21. buggerz, big time new question ive never thought...

    buggerz, big time new question ive never thought of before. my new array is no longer 10 elements in size. how do i tell a print function how long the array is properly so o dont get junk out for...
  22. slowly making progress: ssma-imac:ENG-3211...

    slowly making progress:


    ssma-imac:ENG-3211 ssma$ ./even_oddPlease enter 10 integer numbers separated by spaces:
    1 2 3 4 5 6 7 8 9 0
    Adding 2 to even_numbers_only[0]
    Adding 4 to...
  23. just so im clear, is this a loop inside of a loop...

    just so im clear, is this a loop inside of a loop like in a multidimensional array?

    arrays start at element 0, thus is why i started i at 0
  24. hmm, ok were is this number coming from? ...

    hmm, ok were is this number coming from?


    ssma-imac:ENG-3211 ssma$ gcc -o even_odd even_odd.c
    ssma-imac:ENG-3211 ssma$ ./even_odd
    Please enter 10 integer numbers separated by spaces:
    1 2 3 4...
  25. Yes that is correct. Ok that make sense on the...

    Yes that is correct. Ok that make sense on the variable names.

    I think i follow you with the i j thing, but I do have a question about the results later in my code

    So I thought i was following...
Results 1 to 25 of 66
Page 1 of 3 1 2 3