Как это усовершенствовать?
An optional 'm' character. This is used with string conversions (%s, %c, %[), and relieves the caller of the need to allocate a corresponding buffer to hold the input: instead, scanf() allocates a buffer of sufficient size, and assigns the address of this buffer to the corresponding pointer argument, which should be a pointer to a char * variable (this variable does not need to be initialized before the call). The caller should subsequently free(3) this buffer when it is no longer required.
#include <stdio.h>
int main()
{
char *chars;
scanf("%m[^\n]",&chars);
printf("%s\n", chars);
}
`*198*` ... 8.0 Fanny och Alexander (1982).mp4: command not found
в чем проблема
Как можно перенести?
find -name '*198*' -print0 | xargs -0 -I{} mv \{} /home/fywy/task1/video/80x
#pragma once
#include "Vector.h"
class AbstractFigure
...
#pragma once
#include "AbstractFigure.h"
class Vector :
public AbstractFigure
...
#pragma once
class Vector;
class AbstractFigure
{
public:
virtual void Scale() = 0;
virtual void Rotate() = 0;
virtual void Move(const Vector& direction) = 0;
};
Откуда брать multiboot table с адресом фреймбуфера
я делаю прерывания в ОС ( как известно, то в защищенном режиме они не работают )
мне нужно ту таблицу которую загрузил GRUB - обнулить
скиньте пример
Нужно оздать bash скрипт, который создает каталог и копирует туда файлы, имена которых начинаются с буквы А
Не получается сделать имено эту функцию задания директории поиска через аргументы, код for file in $2 не работает
for ... in
работает только со строчками: попробуй for file in `ls $2`
Что происходит в данном случае
int ** ptr = &arr;
initialization from incompatible pointer type
.Получается что далее ptr == arr == &arr
==
использованное в смысле "численно равно" действительно имеет место. Но типы этих трёх значений разные: int **
/int[4]
/int (*)[4]
Почему нельзя получить указатель на указатель на массив в данном случае?
#include <stdio.h>
int main(void)
{
int arr[4] = {1, 2, 3, 4};
int *pa = arr;
int ** ptr = &pa;
printf("%d", **ptr); // 1
return 0;
}
void __cdecl main()
.int main
вместо void main
( Роман ).