Astronet Поиск по астрономическим сайтам English Russian
       
        Точная форма слов   О проекте   Сайты   Справка
Поиск по:jet.sao.ru   - Поискать по всем серверам
На этой странице приведены все страницы сервера jet.sao.ru ,которые мы индексируем. Показаны документы 1701 - 1720 из 5951.

В начало ] Пред. | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | След.В конец ]

Упорядочить по: URL  |  дате изменения
1701. Массивы, строки, указатели. Хрестоматия по программированию на Си в Unix
... zero ){ prSpace( width - ln, ' '); putchar('-'); pr(s,ln); } else { putchar('-'); prSpace( width - ln, '0'); pr(s, ln); } } } else { putchar('-'); pr(s, ln); } } } /* --------------------------------------------------------- */ main (){ int i, n; static char s[] = Hello, world!\n ; static char p[] = Hello, world ; long t = 7654321L; myprintf ( %%abc%Y\n ); myprintf ( %s\n , abs ); ... width=-6|123 |-123 |123 |-123 | ... 123| ... Си в UNIX . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/bogatyrev_c_unix/gl_2_3.shtml -- 19.8 Кб -- 02.10.2012
Похожие документы

1702. Массивы, строки, указатели. Хрестоматия по программированию на Си в Unix
... Приведем несколько версий реализации strlen : /* При помощи индексации массива */ int strlen (s) char s[]; { int length = 0; for(; s[length] != '\0'; length++); return (length); } /* При помощи продвижения указателя */ int strlen (s) char *s; { int length; for(length=0; *s; length++, s++); return length; } /* При помощи разности указателей */ int strlen (register char *s) { register char *p = s; while(*p) p++; /* ищет конец ... Ответ: сравниваются адреса массивов , хранящих строки. ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/bogatyrev_c_unix/gl_2_1.shtml -- 22.6 Кб -- 02.10.2012
Похожие документы

1703. Простые программы и алгоритмы. Сюрпризы, советы. Хрестоматия по
В чем ошибка? файл A . c файл B . ... Большинство компиляторов не ловит такую ошибку, т.к. каждый файл компилируется отдельно, независимо от остальных, а при "склейке" файлов в общую выполняемую программу компоновщик знает лишь имена переменных и функций, но не их типы и прототипы. ... Будет создана библиотека file .a , содержащая перечисленные .o файлы (имена библиотек в UNIX имеют суффикс .a - от слова archive , архив). ... Напоследок - простой, но жизненно важный совет. ... Си в UNIX . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/bogatyrev_c_unix/gl_1_8.shtml -- 26.0 Кб -- 02.10.2012
Похожие документы

1704. Простые программы и алгоритмы. Сюрпризы, советы. Хрестоматия по
... Напишите программу, распечатывающую простые числа до 1000. int debug = 0; /* Корень квадратный из числа по методу Ньютона */ #define eps 0.0001 double sqrt = EPS */ sqold = sq; sq = 0.5 * (sq + x / sq); } return sq; } /* таблица прoстых чисел */ int is _ prime (t) register int t; { register int i, up; int not_div; if (t == 2 || t == 3 || t == 5 || t == 7) return 1; /* prime */ if (t % 2 == 0 || t == 1) return 0; /* composite */ up ... Используйте scanf и printf . ... Си в UNIX . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/bogatyrev_c_unix/gl_1_1.shtml -- 25.6 Кб -- 02.10.2012
Похожие документы

1705. power.c
. Next: ptr_arr.c Up: Program Listings Previous: factorial . #include <stdio.h> int power (int m, int n); main () { int i; printf ("power\t 2^power\t -3^power\n"); for (i = 0; i < 10; ++i) printf ("%5d \t%8d \t%8d\n", i, power (2, i), power (-3, i)); return 0; } int power (int base, int n) { int i, p; p = 1; for (i = 1; i <= n; ++i) p *= base; return p; } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_9.html -- 2.2 Кб -- 02.10.2012
Похожие документы

1706. factorial
. Next: power.c Up: Program Listings Previous: cio.c . \* e.g use of functions factorials *\ \* fact(n) = n*(n-1)*....2*1 *\ #include <stdio.h> main() { int n, m; printf("Enter a number: "); scanf("%d", &n); m = fact(n); printf("The factorial of %d is %d.\n", n, m); exit(0); } fact(n) int n; { if (n == 0) return(1); return(n * fact(n-1)); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_8.html -- 2.2 Кб -- 02.10.2012
Похожие документы

1707. cio.c
. Next: factorial Up: Program Listings Previous: average.c . \* program to echo keyboard input to screen */ #include <stdio.h> /* copy input to output */ main() { int c; while ((c = getchar()) != EOF) putchar(c); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_7.html -- 2.0 Кб -- 02.10.2012
Похожие документы

1708. average.c
. Next: cio.c Up: Program Listings Previous: arg.c . #include <stdio.h> float data[5]; /* data to average and total */ float total; /* the total of the data items */ float average; /* average of the items */ main() { data[0] = 34.0; data[1] = 27.0; data[2] = 45.0; data[3] = 82.0; data[4] = 22.0; total = data[0] + data[1] + data[2] + data[3] + data[4]; average = total / 5.0; (void)printf("Total %f Average %f\n", total, average); return (0); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_6.html -- 2.3 Кб -- 02.10.2012
Похожие документы

1709. arg.c
... program to read command line input and open files specified */ #include <stdio.h> main(argc, argv) int argc; char **argv; { int c; FILE *from, *to; /* * Check our arguments. */ if (argc != 3) { fprintf(stderr, "Usage: %s from-file to-file\n", *argv); exit(1); } /* * Open the from-file for reading. */ if ((from = fopen(argv[1], "r")) == NULL) { perror(argv[1]); exit(1); } /* * Open the to-file for appending. ... EOF) putc(c, to); /* * Now close the files. */ fclose(from); fclose(to); exit(0); } . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_5.html -- 2.8 Кб -- 02.10.2012
Похожие документы

1710. args.c
. Next: arg.c Up: Program Listings Previous: swap.c . #include <stdio.h> main(int argc, char **argv) { /* program to print arguments from command line */ int i; printf("argc = %d\n\n",argc); for (i=0;i<argc;++i) printf("argv[%d]: %s\n",i, argv[i]); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_4.html -- 2.1 Кб -- 02.10.2012
Похожие документы

1711. swap.c
Next: args.c Up: Program Listings Previous: printf.c . exchange values */ #include stdio.h void swap ( float *x, float *y); main() { float x, y; printf ( Please input 1st value : ); scanf ( %f , x); printf ( Please input 2nd value : ); scanf ( %f , y); printf ( Values BEFORE ' swap ' %f, %f\n , x, y); swap ( x, y); /* address of x, y */ ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_3.html -- 2.5 Кб -- 02.10.2012
Похожие документы

1712. printf.c
. Next: swap.c Up: Program Listings Previous: hello.c . #include <stdio.h> char char1; /* first character */ char char2; /* second character */ char char3; /* third character */ main() { char1 = 'A'; char2 = 'B'; char3 = 'C'; (void)printf("%c%c%c reversed is %c%c%c\n", char1, char2, char3, char3, char2, char1); return (0); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_2.html -- 2.2 Кб -- 02.10.2012
Похожие документы

1713. hello.c
. Next: printf.c Up: Program Listings Previous: Program Listings . #include <stdio.h> main() { (void) printf("Hello World\n"); return (0); } . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_22_1.html -- 1.9 Кб -- 02.10.2012
Похожие документы

1714. References
. Next: Common C Compiler Options Up: Ceilidh - On Line C Tutoring System Previous: How Ceilidh worksCeilidh Course Notes, User . 1. Abdullah Mohd Zin and Eric Foxley, "Automatic Program Quality Assessment System", Proceedings of the IFIP Conference on Software Quality, S P University, Vidyanagar, INDIA (March 1991). Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_7.html -- 2.1 Кб -- 02.10.2012
Похожие документы

1715. How Ceilidh works, Ceilidh Course Notes, User Guides etc.
. Next: References Up: Ceilidh - On Line C Tutoring System Previous: Conclusions . Ceilidh Licence Details . Ceilidh papers --- How Ceilidh works, marks etc. Ceilidh C Course Notes --- Alternative to what you have been reading. Ceilidh User Guides . Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_6.html -- 2.3 Кб -- 02.10.2012
Похожие документы

1716. Conclusions
. Next: How Ceilidh worksCeilidh Course Notes, User Up: Ceilidh - On Line C Tutoring System Previous: General points . The Ceilidh system is an essential part of your learning process; learn to make good use of it. Dave.Marshall@cm.cf.ac.uk . Wed Sep 14 10:06:31 BST 1994
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_5.html -- 2.0 Кб -- 02.10.2012
Похожие документы

1717. The command line interface (TEXT CEILIDH ONLY)
Next: Advantages of the command line interface Up: Ceilidh - On Line C Tutoring System Previous: Question/answer exercises . ... commands . ... Command Purpose commands See commands available set.cse pr1 Select course "pr1" commands See extra course commands lu List unit titles set.unit 4 Set a particular unit lx List exercise titles set.ex 4 Select exercise to solve vq View question setup Set up program skeleton ep Edit program cm Compile program run Run program sub Submit cks Check submitted . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_4.html -- 4.3 Кб -- 02.10.2012
Похожие документы

1718. Using Ceilidh as a Student
Next: The course and unit level Up: Ceilidh - On Line C Tutoring System Previous: Introduction . ... To enter the system at the general level, the appropriate command (which should have been set up by your computer systems administrator) is . ... q quit this session fs find student | ... text ceilidh only) in X the courses available appear on main window.This command tells you which courses are available and supported by the Ceilidh system, their full title and their abbreviation. vp . ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_3.html -- 8.3 Кб -- 02.10.2012
Похожие документы

1719. Introduction
Next: Using Ceilidh as a Student Up: Ceilidh - On Line C Tutoring System Previous: Why Use CEILIDH ? Ceilidh is an on-line coursework administration and auto-marking facility designed to help both students and staff with programming courses. ... It also marks programs directly, and informs the student and teacher of the mark awarded. ... Ceilidh also provides students with on-line access to notes, examples and solutions, and provides tutors with extensive course monitoring and tracking facilities. ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_2.html -- 3.4 Кб -- 02.10.2012
Похожие документы

1720. Why Use CEILIDH ?
Next: Introduction Up: Ceilidh - On Line C Tutoring System Previous: Ceilidh - On Line C Tutoring System . ... On line course notes . Automatic Assessment of C programs . Template programs are provided to start you on an exercise. ... Automatic Compilation of programs . Programs can be run against test data and user specified data . CEILIDH will be used to help mark your coursework. ... CEILIDH marks a program in many ways: it analyses style, efficiency, `prettiness' and output. ...
[ Сохраненная копия ]  Ссылки http://jet.sao.ru/hq/sts/linux/book/c_marshall/section2_19_1.html -- 3.2 Кб -- 02.10.2012
Похожие документы

В начало ] Пред. | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | След.В конец ]

Rambler's Top100 RFBR Яндекс цитирования