[SOLVED]Why this code has no output? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 6

[SOLVED]Why this code has no output?

Bennett Post ,HonFu ,~ swim ~ please help šŸ™ I was trying to perform reciprocal letter program . But b4 going for a big program I tried to just copy one string to another... Actually I don't have to just copy it.. but it's a little part of overall program .... I have to input an entire line of input so I'm using getline(); function here I don't want to use cin āš ļøProblem is that after copying string when I tried to print it as output it says no output. Please help me to fix it .and also tell me what is wrong with this program so next time I can avoid mistakes Thank you! Edit 3rd june 2019: < Code deleted accidentially>

27th May 2019, 7:56 AM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar
1 Resposta
+ 5
~ swim ~ First of all thank a lot šŸ˜Š It works now ...I understand what was problem And I can use NULL also instead of '\0' but the comparison should be like: line[i]!=NULL /*not 'NULL' the ' ' inverted commas shouldn't be used */ Thanks again... It means a lot to me šŸ˜Š
27th May 2019, 9:58 AM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar