So- my program does not stop on condition (str2[o] != \'+\') So if anyone knows why and how to fix it it will help me ( :.
this is My code -
#include <
At the moment + will be copied to str2, o index will point to the next char, which most probably won't be +, so you condition will never be true. This could be possible solution :
+
do { str2[o] = str3[w]; o++; w++; } while(str2[o-1] != '+' );