Search:

Type: Posts; User: markg

Search: Search took 0.00 seconds.

  1. Thread: Structures help.

    by markg
    Replies
    1
    Views
    825

    Structures help.

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

    typedef struct{
    int dd, mm, yy;
    }DATE;

    typedef struct{
    int idno;
  2. Thread: simplify this?

    by markg
    Replies
    2
    Views
    3,084

    bord2=0; for(l=0;l

    bord2=0;
    for(l=0;l<0;l++){ /*changed it to 1*/
    for(k=0;k<n;k++){
    bord2=bord2+matrix[k][l];


    Thanks.
  3. Thread: simplify this?

    by markg
    Replies
    2
    Views
    3,084

    simplify this?

    #include <stdio.h>

    void main()
    {
    int matrix[100][100], n, k, l, bord, bord1, bord2, bord3, bord4;

    do{
    printf("Enter order of matrix between 1 and 100 \n");
    scanf("%d",&n);...
  4. Thread: crazy triangles

    by markg
    Replies
    3
    Views
    1,413

    crazy triangles

    *** *** ***
    ** ** **
    * * *

    -sigh- My head's aching, but I can't seem to figure out how to generate that figure using the for loop and putchar('*').
    Any help would be greatly appreciated.
  5. Replies
    6
    Views
    1,069

    CWR - thanks ... and not really, but i copied it...

    CWR - thanks ... and not really, but i copied it down and i'll analyze it.

    rockytriton - what book would you suggest? for beginners and with lots of sample programs and...
  6. Replies
    6
    Views
    1,069

    program explanation

    #include <stdio.h>

    void main()
    {
    int a,b;

    for(a=0;a<6;++a){
    for(b=0;b<=a;++b)
    putchar('*');
    putchar('\n');
Results 1 to 6 of 6