Search:

Type: Posts; User: sahil_m

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,150

    Oops, my output doesn't need to be a 3d model. I...

    Oops, my output doesn't need to be a 3d model. I could just set the pixels of a BMP based on my raytracing, right?

    So I just answered myself here. Silly me.
  2. Replies
    2
    Views
    1,150

    learning how to Raytrace

    Hi,

    I would like to write a raytracer, but before I start I would like some help.


    1) What should I know in order to learning raytracing? (I am fluent in basic C and can handle
    linked lists...
  3. 1.Open the file you want to copy stuff from. ...

    1.Open the file you want to copy stuff from.

    2.Search for the desired text using strcmp.

    3.Write it into the new file.
  4. The best way would be to pick up your high school...

    The best way would be to pick up your high school text books again, that is if you still have them. Otherwise buy any book on basic Calculus.

    Regarding URLs, you should know where to look for them.
  5. Replies
    18
    Views
    6,101

    Ninestar, what is a bubble loop?

    Ninestar, what is a bubble loop?
  6. You'll need to learn dynamic memory allocation to...

    You'll need to learn dynamic memory allocation to acheive that, I suggest you read on that topic, you can look up your compiler docs for malloc(), that's one function that facilitates dynamic memory...
  7. Thread: C Question

    by sahil_m
    Replies
    10
    Views
    1,345

    What do you think this forum is, your personal...

    What do you think this forum is, your personal genie?
  8. Replies
    1
    Views
    850

    First of all it's not a good idea to have global...

    First of all it's not a good idea to have global variables in your code when you dont need them to be global.Next your "j" counter is running up to size whereas it should have been size-1.

    Here's...
  9. Replies
    10
    Views
    3,995

    I dont have a C compiler with me right now, if...

    I dont have a C compiler with me right now, if you have any syntactical errors, tell me about them, or else wait for someone else to help you.
  10. Thread: stack project

    by sahil_m
    Replies
    18
    Views
    2,343

    the_winky_files: If you dont know what a stack...

    the_winky_files:

    If you dont know what a stack or a queue is, how do you expect yourself to be able to implement postfix evaluation and modify an already written program which manipulates a queue?...
  11. Replies
    11
    Views
    31,017

    What do you mean by this?

    What do you mean by this?
  12. Replies
    10
    Views
    3,995

    You already have a main() in your program, what...

    You already have a main() in your program, what is it that you want help with?
  13. Replies
    11
    Views
    31,017

    I've never heard of boolean variables in C?

    I've never heard of boolean variables in C?
  14. Thread: c help arrays

    by sahil_m
    Replies
    7
    Views
    1,375

    Oh!, I am sorry I made a typo, but you should...

    Oh!, I am sorry I made a typo, but you should have figured that out yourself, the function prototype and the definition dont match, I am fixing that right now.
  15. Replies
    2
    Views
    6,658

    All you need to do is keep dividing the number by...

    All you need to do is keep dividing the number by 10, your remainder will be the LSD from the integer then store the digits in reverse order.

    Thus if you have a 4 digit number, the remainder you...
  16. Thread: c help arrays

    by sahil_m
    Replies
    7
    Views
    1,375

    Hi, I have made some changes to your program,...

    Hi,

    I have made some changes to your program, read my comments.



    #include <stdio.h>

    int display (int nums[5][5]); /*This function will return the total*/
  17. Replies
    9
    Views
    7,706

    Hi Alex, From your code i figure that your...

    Hi Alex,

    From your code i figure that your using "Turbo C/C++" under DOS and your "fire program" uses the standard Borland Graphics Interface(BGI) for 2d drawing.

    I also have that compiler/IDE...
  18. Replies
    3
    Views
    2,553

    Well, I have another solution:- ...

    Well, I have another solution:-



    printf("*");
    printf("\n**");
    printf("\n***");
    printf("\n****");
    printf("\n*****");
  19. Replies
    9
    Views
    1,434

    You can't do that, your array bounds must be a...

    You can't do that, your array bounds must be a constant value and since N is an integer it cant be used for defining the size of your array.

    You could solve this issue by either doing this:-


    ...
  20. Replies
    3
    Views
    5,852

    thanks to both of you.

    thanks to both of you.
  21. Replies
    3
    Views
    5,852

    adding two polynomials

    Hi,

    I've already written some code to add two polynomials(one variable) stored in a linked list.

    The Basic Node structure looks like this:


    struct node
    {
    int coeff;
  22. It would be really nice if you read...

    It would be really nice if you read http://cboard.cprogramming.com/showthread.php?t=71094 this code of mine, though I dont think I could pay you :)
  23. struct node { int data; struct...

    struct node
    {
    int data;
    struct node *next;
    };

    typedef struct node * nodeptr;


    Why is the above code a bad idea, besides the obvious pitfall:-
  24. Replies
    12
    Views
    2,266

    Hi, I am sorry for bumping such an old thread,...

    Hi,

    I am sorry for bumping such an old thread, but I think bumping it is better than starting a new one based on the same topic.

    I would really like someone to check out my code and tell me if...
  25. Replies
    12
    Views
    2,266

    Hi, Alright i'll try to gather what you just...

    Hi,

    Alright i'll try to gather what you just told me:-

    1.My create_list should look like this:-



    nodeptr create_list(size_t node)
    {
Results 1 to 25 of 40
Page 1 of 2 1 2