Search:

Type: Posts; User: Zachary May

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,452

    Okay so looking at the examples on google I came...

    Okay so looking at the examples on google I came up with this code



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #define pi 4*atan(1.)
    main(){
    double...
  2. Replies
    2
    Views
    1,096

    Thanks. Makes sense

    Thanks. Makes sense
  3. Replies
    4
    Views
    3,452

    int LaGrange(int x0[],int x[],int n,int m); I...

    int LaGrange(int x0[],int x[],int n,int m); I just noticed that i am not even using this
  4. Replies
    4
    Views
    3,452

    Lagrange Polynomial Program

    #include <stdio.h>#include <stdlib.h>
    #include <math.h>
    #define pi 4. * atan(1.)
    int LaGrange(int x0[],int x[],int n,int m);
    main(){
    double x[10]={0,0.1,0.3,0.45,0.66,0.8,1.1,1.4,1.5,1.9};
    ...
  5. Replies
    2
    Views
    1,096

    Not using Structures for project

    I have to do a project for Programming and he said in quotes

    "Programming exercise 10.6: the programming project is as described, except do not represent the points using structures.Assume, as...
  6. Replies
    4
    Views
    745

    Haha, can't believe i didn't see the little math...

    Haha, can't believe i didn't see the little math operations in that lol. Thank for the help
  7. Replies
    4
    Views
    745

    Defined constants questions

    Why does this code = 27 instead of 21

    7*7*7=21



    #include <stdio.h>
    #define x 5+2
    main(){
    int i;
  8. Replies
    10
    Views
    2,637

    Thank you for your help

    Thank you for your help
  9. Replies
    10
    Views
    2,637

    If you take out g=max++ it does compile. ...

    If you take out g=max++ it does compile.

    That's why I asked why C won't let you do this.

    I defined max as 52 but you can't increment that and I wanted to know why
  10. Replies
    10
    Views
    2,637

    Okay. All I can say is that we use dev c++ My...

    Okay. All I can say is that we use dev c++
    My teacher tests on this, so what am i suppose to do
  11. Replies
    10
    Views
    2,637

    Incrementation Questions

    First, I know this is bad programming and most people say to not use it, but my teacher uses this stuff on his test a bunch.


    #include <stdio.h>
    #define max 52
    main(){
    int...
  12. Nope. We are learning Strings and Arrays right...

    Nope. We are learning Strings and Arrays right now, but for the purpose of this exercise, we are not allowed to use them. And that is what im having the main problem with. If I could use arrays I...
  13. I don't have any experience in arrays yet for...

    I don't have any experience in arrays yet for this project so I can't use this.



    int combination(int a,int pos,int count)
    {
    int d;
    if (count>0)
    {
  14. I am having a terrible time figuring out how to...

    I am having a terrible time figuring out how to start this.


    int combination(int a,int count)
    {
    if (count <=1){
    printf("%d",a);
    return a;
    combination(a+1,count-1);
    printf("%d",a);
  15. Okay, I am understand how to go about the...

    Okay, I am understand how to go about the solution, it is clearer to see with the answers being backwards. I am going to write the program part of this later on and i will respond back if I have...
  16. Using recursive functions (I am beginner at C programming)

    Okay so the job of this program is to have a robot take steps of 1,2,3 meter in a amount of steps asked by the user. After the user inputs a value, the program will tell them that the robot can walk...
  17. Replies
    3
    Views
    1,778

    Okay Thank you. I will try this

    Okay Thank you. I will try this
  18. Replies
    3
    Views
    1,778

    getchar() help

    basically i have to do a summation of e, which is 1/k! and i need to allow the user to input a positive integer which i did. The second thing i need to do is once the total is given, i need to allow...
Results 1 to 18 of 18