Search:

Type: Posts; User: oldman

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,300

    Struct and string ?

    x.name = fname, dont work, why ?
    and how can I solve it ?

    #include<stdio.h>

    struct example
    {
    char name[10];
    int year;
    };
  2. Replies
    2
    Views
    858

    while dont work, why ?

    Follwing code dont work , why ?
    read char and while - not end of line or while - not point, increment *p_for

    #include <stdio.h>
    #include <stdlib.h>

    int main(void)
    {
    char ch[10], *p_for;
  3. ok, thanks everybody.

    ok, thanks everybody.
  4. can you show some example codes , how to create...

    can you show some example codes , how to create two new variables and copy the contents of array[] into those new variables ?

    I would be grateful. (I have just started with C)

    oldman
  5. split the array[] to 2 new arrays new1[], new2[] is this possible ?

    1. If I have an array with 10 elements array[]
    2. And want to split array[] to:
    3. 2 new arrays:
    4. 6 first elements from array[] to array New1[]
    5. And new2[] with 4 last elements from array[]
    ...
  6. I have tried this following code with errors but...

    I have tried this following code with errors but I must have mistaken something: (you can improve it)



    #include <stdio.h>
    #include <stdlib.h>
    #define MAXLEN 100
    #define TRUE 1

    int...
  7. Problem with the code to count the word length if you have many words (sentence)

    I have problem to write code to following example:

    print on screen - Enter setence (some text)
    read from screen - setence (text)

    While - not end of file (or something like that)

    how many...
Results 1 to 7 of 7