From a5b1a43bfc2887994604b494ff2e48f028485439 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:38:40 +0000 Subject: Tue, Feb 27, 2024, 12:38 PM -08:00 --- wk4/lect/copy.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 wk4/lect/copy.c (limited to 'wk4/lect/copy.c') diff --git a/wk4/lect/copy.c b/wk4/lect/copy.c new file mode 100644 index 0000000..9a61c04 --- /dev/null +++ b/wk4/lect/copy.c @@ -0,0 +1,17 @@ +#include +#include +#include +#include +#include + +int main(void) +{ + string s = get_string("s: "); + + string t = s; + + t[0] = toupper(t[0]); + + printf("%s\n", s); + printf("%s\n", t); +} -- cgit v1.2.3