Search:

Type: Posts; User: Sorinx

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    831

    exit(100);

    exit(100);
  2. Replies
    8
    Views
    1,137

    Alright I'm done, thanks!

    Alright I'm done, thanks!
  3. Replies
    8
    Views
    1,137

    Ok I think I got it. Talking to myself is doing...

    Ok I think I got it. Talking to myself is doing wonders for some reason



    #include <stdio.h>
    #include <malloc.h>

    #define CLASS 2
    #define STUDENT 2
    #define GRADE 2
  4. Replies
    9
    Views
    3,885

    I know for a fact it works, my semicolon comments...

    I know for a fact it works, my semicolon comments were from your actual code, you would have to enter it in as 2 2 from what you typed as Salem said. You need to just break them into two different...
  5. Replies
    9
    Views
    3,885

    #include int main() { int base, cat;...

    #include <stdio.h>
    int main()
    {
    int base, cat;
    long int value=1;
    printf("Enter the base number and exponent: ");
    scanf("%d", &base);
    scanf("%d", &cat);
    while (cat!=0)
    {
  6. Replies
    8
    Views
    1,137

    Same lines different error. not sure what I'm...

    Same lines different error. not sure what I'm mistaking
  7. Replies
    9
    Views
    3,885

    you have a semi colon after your while loop,...

    you have a semi colon after your while loop, while loop never executes

    while(power!=0) then you have this semicolon, can't do that, delete it and you're good
  8. Replies
    9
    Views
    3,885

    change the name of exp, also your printf...

    change the name of exp, also your printf statement should be

    printf("%d", value);
  9. Replies
    9
    Views
    749

    I don't think your using continue and break how...

    I don't think your using continue and break how you think

    while(number!=0){
    if(r>0){
    a=area_Circle(int a, int r);
    printf("The area is %f\n", a);
    }
    else

    etc etc.
  10. Replies
    8
    Views
    1,137

    Ok I made some dumb errors I fixed them but the...

    Ok I made some dumb errors I fixed them but the error is still in those 2 lines



    #include <stdio.h>
    #include <stdlib.h>
    #define CLASS 4
    #define STUDENT 11
    #define GRADE 5
  11. Replies
    8
    Views
    1,137

    Supposed to malloc an array, populate it then...

    Supposed to malloc an array, populate it then pass only parts of it to the functions to get the averages needed.
  12. Replies
    8
    Views
    1,137

    Making integer from pointer without a cast

    #include <stdio.h>
    #include <stdlib.h>
    #define CLASS 4
    #define STUDENT 11
    #define GRADE 5



    float average(float ***grade);//functionprototypes
    void classAverage(float *grade);
  13. Replies
    25
    Views
    2,582

    void freeArray(int ***a) { int i,j;...

    void freeArray(int ***a) {

    int i,j;
    for(i = 0; i <=NUMBER_OF_STUDETS; i++){
    for(j = 0; j <= NUMBER_OF_CLASSES; j++){
    free(a[i][j]);
    }
    free(a[i]);
    }
    free(a);
  14. Replies
    25
    Views
    2,582

    Nah just commenting on my own stupidity, but I'm...

    Nah just commenting on my own stupidity, but I'm literally falling asleep, looking at free function now. never did much with malloc prior
  15. Replies
    25
    Views
    2,582

    Lol, wow is all I can say. I know better than this

    Lol, wow is all I can say. I know better than this
  16. Replies
    25
    Views
    2,582

    Ahh yes, I noticed that and changed it, I can...

    Ahh yes, I noticed that and changed it, I can enter the inputs, but then afterwards it crashes.
  17. Replies
    25
    Views
    2,582

    Bare with me I'm a bit over tired, why am I out...

    Bare with me I'm a bit over tired, why am I out of bounds?
  18. Replies
    25
    Views
    2,582

    Ahh sorry, I edit it in main, whenever I respond...

    Ahh sorry, I edit it in main, whenever I respond about the changes!
  19. Replies
    25
    Views
    2,582

    Thanks I missed that semi colon, it's early and...

    Thanks I missed that semi colon, it's early and my spacing is horrid atm, bad habits. Still same result however
  20. Replies
    7
    Views
    5,088

    I'm not that good but I wrote this real quick...

    I'm not that good but I wrote this real quick trying to figure out why mine is crashing



    #include <stdio.h>
    #include <conio.h>

    int main()

    {
  21. Replies
    25
    Views
    2,582

    Ok I wrote a function to free my memory, and I...

    Ok I wrote a function to free my memory, and I won't cast it in the future. Trying to figure out what I am doing wrong
  22. Replies
    25
    Views
    2,582

    what should I do instead of casting malloc?

    what should I do instead of casting malloc?
  23. Replies
    25
    Views
    2,582

    Just crashes when I try and run

    Just crashes when I try and run
  24. Replies
    25
    Views
    2,582

    Dynamic Allocating Array and Function Call

    Clearly I'm not doing this right, what am I missing?



    /* printing the average grade for every student in every class.
    printing out the average grade per class; printing out the average grade...
  25. Replies
    13
    Views
    1,744

    Oh man I didn't even notice that little...

    Oh man I didn't even notice that little oversight, thank you
Results 1 to 25 of 126
Page 1 of 6 1 2 3 4