Minhas saídas para minhas funções precisam estar lado a lado, mas estão por todo o lado. Como obtenho-los lado a lado? Não tenho certeza se me ajuda aqui, mas tenho que tentar, porque ninguém está respondendo no fórum C++.
http://www.CPlusPlus.com/forum/General/125243/ #include #include <iostream>#include <iomanip>#include <cmath>#include <windows.h>"stdafx. h" usando o namespace std;
void ClearTheScreen();
void Heading();
void NormalTermination();
void K();
void SquareRoot();
void Cube();
void CubeRoot();
int main () {Heading();
K();
SquareRoot();
Cube();
CubeRoot();
retornar 0;
} void ClearTheScreen() {system("cls")};
void Heading()
{
ClearTheScreen();
cout < "\t\t="" xxxxxxx="" xxxxxxx="" xxxxxxxxx="" xxxxxxxx";="" cout="">< "\n\t\t\t\t="" xxxxxxx="" xxxxxxx";="" cout="">< "\n\n\t\t\t\t="" cs="" xxx";="" cout="">< "\n\t\t\t\t="" beginning="" c++";="" cout="">< "\n\n\t\t\t\t="" xxxxxxx="" xxxxx\n\n="" ";="" }="" void="" normaltermination()="" {="" cout="">< "\n\t\t\t";="" }="" void="" k()="" {="" int="" k;="" cout="">< "\t\tk";="" k="0;" while="" (="" k="">< 15="" )="" {="" cout="">< "\t\t="" ";="" cout=""><><>< right=""><>< endl;="" k++;="" }="" }="" void="" squareroot()="" {="" int="" n;="" cout="">< "\tsqrt";="" n="0;" while="" (="" n="">< 15="" )="" {="" cout="">< "\t\t\t="" ";="" cout="">< "\n\t\t="">< sqrt="" (n+1.0);="" n++;="" }="" }="" void="" cube()="" {="" int="" k;="" cout="">< "\t\t\t\t="" cube\n\n";="" k="0;" while="" (="" k="">< 15="" )="" {="" cout="">< "\t\t\t\t="" ";="" cout=""><>< pow(k+1.0,3);="" k++;="" }="" }="" void="" cuberoot()="" {="" int="" k;="" cout="">< "\t\t\t\t\t="" cube="" root\n\n";="" k="0;" while="" (="" k="">< 15="" )="" {="" cout="">< "\t\t\t\t\t="" ";="" cout=""><>< pow(k+1.0,1.0/3);
k++;
}
}
pow(k+1.0,1.0/3);="" k++;="" }="" }=""></ pow(k+1.0,1.0/3);
k++;
}
}
></></windows.h></cmath></iomanip></iostream>