Задания к уроку "Первая программа на С++"
warning
В заданиях 1-3 использовать raw string literals
запрещено!
- Перепиши программу, которая выводит на экран `Hello World!' так, чтобы каждое слово выводилось с новой строки
- Сделай так, чтобы слова в программе пункта 1 выводились не каждое с новой строки, а каждое через таб
- Напиши программу, которая выводит на экран следующий текст:
If you try to mimic this build system by hand, you'll discover that
' The GNU Build System has a lot of features.
Some users may expect features you do not use.
' Implementing them portably is difficult, and exhausting.
(Think portable shell scripts/portable Makefiles, on systems you may
not have handy.)
' You will have to upgrade your setup to follow changes of the GNU
Coding Standards.
GNU Autotools provide:
' Tools to create the GNU Build System from simple instructions.
' A central place where fixes and improvements are made.
(A bug-fix for a portability issue benefits every package.)
Конечно же, с сохранением табов и переносов строк.
- Бонус! С использованием
raw string literals
выведи тот же текст, что и в пункте 3