How do i cut off this long string? with cout
i tired using precision and setting it to 30 but that doesnt work
17 Replies
when you use strcpy give it 30 as a third parameter
check utils.cpp you'll see it takes a length param
if i do that then this becomes shortened though
unless i make a temp variable that store the short version and then strcpy
Which is what you do
tyty, the last minute submission time is getting to me lol
i got a memory leak i couldn't fix so i asked for an extension lol
Not fun ;-;
yeah i've been neglecting my other classes just to focus on these workshops and i still can't make the
Wait in this assignment?
yea
Or the last one
last one was tough as nails too lol
Where do you dynamically allocate memory here?
for the name
Hmm
these bits
Lemme see code