Search:

Type: Posts; User: ydan87

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,468

    2 Matrices multiply problem

    Hello there,
    I have a struct of matrix that is defined like this:

    typedef struct {
    int rows;
    int cols;
    int *mat;
    } Matrix;

    And I have 2 pointers to...
  2. Return a pointer from a function and use it later in main

    Hello there,
    Suppose I have a matrix structure that defined like this:

    typedef struct {
    int rows;
    int cols;
    int *mat;
    } Matrix;

    And I have a function:
  3. Thread: reverse words

    by ydan87
    Replies
    6
    Views
    2,079

    How?

    How?
  4. Replies
    4
    Views
    906

    Thanks guys for your help I ran into some...

    Thanks guys for your help
    I ran into some trouble: I get the file names as arguments (meaning, I call the function like that: order letter.txt tags.txt), so how can I read from the files as you...
  5. Thread: reverse words

    by ydan87
    Replies
    6
    Views
    2,079

    reverse words

    Hi all,

    This C program reverses the first n words in a string, for example:
    echo "hello world do not reverse" | rev 2 should output:
    "world hello do not reverse"
    Here's my code:


    1...
  6. Replies
    4
    Views
    906

    Thank you both!!! I'll try your ideas

    Thank you both!!! I'll try your ideas
  7. Replies
    4
    Views
    906

    Personalize letters in c

    Hi there,
    given 2 txt files, one is a letter with tags, such as:

    Dear <title> <first> <last>,
    Thank you for the apply, we will process it soon.

    Sincerely,
    <clerk>

    And one with the tags:
  8. Your guideness helped alot! Thanks

    Your guideness helped alot! Thanks
  9. Change a string in a function that recives a pointer to that string

    Hello there, I'm new here and I need some help:
    I am asked to write a function that recieves a pointer to string, a zero-based integers, "start" and "end", and int "dist".
    In this function I need...
Results 1 to 9 of 9