0

My program stopped working

When i run my c++ program they give me that a problem caused the program to stop working correctly. What should i do??? https://code.sololearn.com/cMvLQ5bm9Fgi/?ref=app

1st Aug 2019, 12:47 PM
Majd Alkwaja
Majd Alkwaja - avatar
5 odpowiedzi
+ 5
The code is perfect..but you are not returning dayname..In that case you have 2 options .. 1. Print dayname in function itself Or 2. Add "return dayname; " statement at the end of switch case..(As Mert Yazıcı said)
1st Aug 2019, 1:41 PM
Alaska
Alaska - avatar
+ 3
add "return dayName;" after switch
1st Aug 2019, 1:24 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
ohh , thanks 😍😍
1st Aug 2019, 1:25 PM
Majd Alkwaja
Majd Alkwaja - avatar
+ 1
thanks ❤️
1st Aug 2019, 2:03 PM
Majd Alkwaja
Majd Alkwaja - avatar