Posts by Victoria Moraes • 9 points
2 posts
-
0
votes1
answer61
viewsQ: How do I make a char vector recognize a line break?
The code is like this #include <iostream> #include <fstream> using namespace std; int main(){ char frase[30]; char j; int i=0; do{ cin>>j; if(j!=' '){ frase[i]=j; i++; } }while…
c++asked Victoria Moraes 9 -
0
votes1
answer22
viewsQ: How do I print the line that is the smallest element of an array?
#include <iostream> using namespace std; int main() { int m[4][4],i,j,menor; for(i=0;i<4;i++){ for(j=0;j<4;j++){ cin>>m[i][j]; if (i…
c++asked Victoria Moraes 9