Search:

Type: Posts; User: lvl99

Search: Search took 0.00 seconds.

  1. Replies
    23
    Views
    4,817

    where is main()? And you should add ...

    where is main()? And you should add


    #include <stdlib.h>

    since you are using the malloc() function.
  2. Replies
    23
    Views
    4,817

    I'll try and help , but post the exact and...

    I'll try and help , but post the exact and complete code that you are using to get that particular error.
  3. Replies
    23
    Views
    4,817

    I'm not sure if I'm really helping but this is...

    I'm not sure if I'm really helping but this is how I would solve it. I tried to simplify it.



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

    struct employee{
    char fullname[30];
    float...
  4. Replies
    10
    Views
    1,890

    I think that you should declare: d, root1,root2...

    I think that you should declare: d, root1,root2 as variable type double for more accuracy. Also, the function sqrt() returns a variable type of double.
  5. Replies
    8
    Views
    4,727

    Can you omit getchar () from the program? It...

    Can you omit getchar () from the program? It doesn't seem to affect the program. If someone else could weigh in that would be great.
  6. Replies
    8
    Views
    2,162

    Thanks ,hk_mp5kpdw, I'll make those changes.

    Thanks ,hk_mp5kpdw, I'll make those changes.
  7. Replies
    8
    Views
    2,162

    Thanks that did the trick.

    Thanks that did the trick.
  8. Replies
    8
    Views
    2,162

    it's the latter. #include ...

    it's the latter.



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

    #define ArraySize 40

    int ReadDataFromFile(int FileData[ArraySize]);
  9. Replies
    8
    Views
    2,162

    oh sorry it should be just one character, it's...

    oh sorry it should be just one character, it's one character per line.
    1
    2
    3
    6
    6

    I made the change but still, my output is still the same.
  10. Replies
    8
    Views
    2,162

    Reading from file into Array

    OK, I have a text file that has "1,2,3 d, e, 6,6, h,h, ...etc" I want to put all the digits into an array for analysis. So the array size known. I am able to open the file and filter the desired...
  11. Thread: Dynamic 2d Array

    by lvl99
    Replies
    8
    Views
    4,239

    Thanks for the feedback guys. I'll probably...

    Thanks for the feedback guys.


    I'll probably do that.



    Well, eventually I would like to write a program that can do matrix math, like finding the transpose, inverse and stuff like that. ...
  12. Thread: Dynamic 2d Array

    by lvl99
    Replies
    8
    Views
    4,239

    Dynamic 2d Array

    This my attempt at creating a dynamic 2d array. I am able to store the values into the array and read them out. Is there a more elegant way of inputing the values?


    array[(i*4)+j]=count++;
    ...
  13. Replies
    9
    Views
    4,250

    um..I'm still learning c, but here was my attempt...

    um..I'm still learning c, but here was my attempt at it. It isn't a complete program but, It should solve the randomizing issue. You should modify the code as you see fit.



    #include <stdio.h>...
  14. I'm not sure what you mean by in a 'row'. Since...

    I'm not sure what you mean by in a 'row'. Since you said string could you solve it like this?



    #include <stdio.h>

    int main(void)
    {
    int index;
    char input[40];
  15. Replies
    11
    Views
    2,749

    What is your program suppose to do? Can you...

    What is your program suppose to do? Can you describe it better?
Results 1 to 15 of 15