Search:

Type: Posts; User: Sure

Search: Search took 0.00 seconds.

  1. Thread: Unions?

    by Sure
    Replies
    8
    Views
    4,304

    Hows this... it works #include ...

    Hows this... it works


    #include <stdio.h>


    void display_union(char c, short s, int i, long l);

    union integer_union {
    char c;
  2. Thread: Unions?

    by Sure
    Replies
    8
    Views
    4,304

    well still dont understand ... no diff in codes.....

    well still dont understand ... no diff in codes.. damn it .. brain hurts
  3. Thread: Unions?

    by Sure
    Replies
    8
    Views
    4,304

    If i do something like this it messes up ...

    If i do something like this it messes up


    #include <stdio.h>


    void display_union();

    union integer_union {
    char c;
  4. Thread: Unions?

    by Sure
    Replies
    8
    Views
    4,304

    Unions?

    What i Gotta DO:

    Your solution must include a function called displayUnion() which will take a integer_union variable as a parameter. The function will have simply 4 printf statements, and nothing...
  5. Replies
    3
    Views
    11,125

    k thx bro ....

    k thx bro ....
  6. Replies
    3
    Views
    11,125

    strtok() a phone number

    What i gotta do:

    Write a program that inputs a tele phone #as astring in the form (555)555-5555. The program should use function strok() to extract the area code as a token , the first three...
  7. Replies
    5
    Views
    16,354

    got er thx....

    got er thx....
  8. Replies
    5
    Views
    16,354

    well a no go ...need some help

    well a no go ...need some help
  9. Replies
    5
    Views
    16,354

    Reversing strings using strtok()

    What i gotta do:

    Write a program that inputs a line of text, tokenizes the line with the strtok() function and outputs the tokens in reverse order. For example the input string: "The quick brown...
  10. Replies
    20
    Views
    3,862

    Thx prelude, and i will tell my teacher bout the...

    Thx prelude, and i will tell my teacher bout the gets()
  11. Replies
    20
    Views
    3,862

    As i stated b4 i have to use the gets() and the...

    As i stated b4 i have to use the gets() and the strncmp(), and the code prelude gave still dosnt pass the tests outlined......
  12. Replies
    20
    Views
    3,862

    Well got it to work without errors but it dosnt...

    Well got it to work without errors but it dosnt pass the tests

    Test your solution with the following test data:

    aab
    aabb //should be equal

    abcde
    abcdf // second string should be greater
  13. Replies
    20
    Views
    3,862

    so i could use strlen() to determine the length...

    so i could use strlen() to determine the length of the string?
  14. Replies
    20
    Views
    3,862

    its basically the same , jus cahnged %s to %d and...

    its basically the same , jus cahnged %s to %d and thats all i know ... the text isnt even helpin
  15. Replies
    20
    Views
    3,862

    well still cant figure it out.....

    well still cant figure it out.....
  16. Replies
    20
    Views
    3,862

    thx for the ideas ill give it a shot

    thx for the ideas ill give it a shot
  17. Replies
    20
    Views
    3,862

    i have to use the gets() and the strncmp()...

    i have to use the gets() and the strncmp() functions in this program....
  18. Replies
    20
    Views
    3,862

    Comparing Two Strings

    WHAT I GOTTA DO:

    Write a program that uses the C string library strncmp() function to compare two strings input by the user. The number of characters to be compared should be the length of the...
  19. Replies
    1
    Views
    7,290

    Time to seconds program

    This is what i gotta do:

    Create a C function called SecondsSinceMidnight() that has 3 parameters of type "long". The 3 parameters will be: "hours", "minutes" and "seconds". This function will use...
  20. Thread: Integer power

    by Sure
    Replies
    3
    Views
    12,599

    thx bro....... haha wut a simple mistake ........

    thx bro....... haha wut a simple mistake ..... awell thx for the correction
  21. Thread: Integer power

    by Sure
    Replies
    3
    Views
    12,599

    Integer power

    What i gotta do:

    Write a function called "integerPower(base, exponent)" that calculates and then returns the value of base to the power exponent. For example, if you invoke the function in the...
  22. Replies
    7
    Views
    14,240

    Thx bro i changed it to this seems to bw working...

    Thx bro i changed it to this seems to bw working fine:




    #include <stdio.h>

    int main()

    {
  23. Replies
    7
    Views
    14,240

    sorry forgot to read the faq's my bad

    sorry forgot to read the faq's my bad
  24. Replies
    7
    Views
    14,240

    Writing code for a program in C

    it works but need to refiine it a bit


    What i need to do:


    The factorial of a non-negative integer n is written n! (pronounced "n factorial") and is defined as follows:
    n! = n * (n-1) *...
Results 1 to 24 of 24