Search:

Type: Posts; User: tfigueiro

Search: Search took 0.01 seconds.

  1. [Help] A program to count the number of words in a sentence!

    I am trying to make a program which will return the number of words in a given sentence. It should be able to give correct information even if there are multiple spaces before the sentence, between...
  2. Replies
    2
    Views
    674

    Thank you laserlight!

    Thank you laserlight!
  3. Replies
    2
    Views
    674

    Declaring a pointer.

    What is the right way to declare a pointer and assign it an existing variable in the same line?

    would this:


    int *p = &e;


    be the same as:
  4. Yaiks! Working program: #include ...

    Yaiks!

    Working program:

    #include <stdio.h>
    #include <math.h>

    long int factor(int num1){
    int x;
    long int fact;
  5. Thank you for your help. So what is the power...

    Thank you for your help.

    So what is the power operator? And what do you mean by "integer" math, since I have defined frac to be a float?

    Please understand I have just started programming and...
  6. Sum of fractions with factorial function. need help.

    I am trying to write a program which will solve the following expression:

    (1/2)-(1/2^2!)+(1/2^3!)-(1/2^4!)+(1/2^5!).......+-(1/2^(n-1)!)+-(1/2^n!)

    I have been trying to debug it for a couple of...
  7. Replies
    3
    Views
    2,027

    Thank you very much for looking into my question!...

    Thank you very much for looking into my question! I thought scanf meant something like "update value of". Now my program does work properly and more important, I won't forget what exactly scanf does!...
  8. Replies
    3
    Views
    2,027

    Factorial calc program not running!

    Hello, I am very new to C, I was making an experiment after reading the C tutorial on the site up until the "Loops" section. I've made a program which I can compile but which doesn't return any...
Results 1 to 8 of 8