[Solved] Warning given and i can not understand why after about 10 minutes of research so i am asking

The statement return(“Option %c is not supported”,’k’); is the same as return(‘k’); since the expression “Option %c is not supported” has no side effect. Given that the return type of the function is FILE*, return(‘k’); is a problem since ‘k’ is not of type FILE*. It seems you are not sure what you are doing. … Read more

[Solved] My codes work well In Dev c++ IDE, but in linux terminal, it doesn’t. (especially in the part of ‘while’ loop.) [closed]

You are most likely running into the NL/CR issue. Instead of if (a[i]==””) Use something like: if (isEmptyLine(a[i])) where bool isEmptyLine(std::string const& s) { for ( auto c : s ) { if ( !std::isspace(c) ) return false; } return true; } You can also convert the file into a file with UNIX style line … Read more

[Solved] How to show the Linux command line on 1 row? [closed]

You need edit the file .bash_profile, Open the terminal Run the command to edit: nano .bash_profile Insert this line: export PS1=”[\e[0;31m]\u[\e[0;36m]@[\e[1;36m]\h[\e[1;34m]:[\e[1;33m]\w[\e[0;31m]$ [\e[0;37m]” Ctrl+X to save, close and open again the temrinal You will get a user@host:~/working/dir $ 2 solved How to show the Linux command line on 1 row? [closed]