Peixoto 0 Denunciar post Postado Setembro 25, 2011 :( O programa não compila. Setei o compilador mas.. //Capitulo 5 #include <iostream> using namespace std; int main() { int x=2, y=10; int z,k; //Usando como expressão for (int j=x;j <= 4*x*y;j+=y/x)// equivale for (int j=2;j <= 80;j+=5) { cout << j; // j só é visivel no bloco do for } cout << endl << endl; //Forma decrescente for (int i=10; i >= 1; i--) cout << i; cout << endl; //interrompendo laço com break for (int count = 1; count <=10; count++) { if (count==5) { break; cout << count << count; } } cout << endl; cout << "Saida forcada do for, ao atingir 5. " <<endl; //Reiniciando o laco for (int count = 1; count <=10; count++) { if (count==5) { cout << "O loop continua ao chegar em: " << count << endl; continue; // faz pular a instrução de saida } cout << count << " X "; } cout << endl << endl; //Uso de for com mais de um incremento for (z=0,k= 0; z + k <= 5; z++, k++) cout << z << " " << k << endl; //for incompleto cout << endl << endl; //for incompleto for (int f=0; f<3;) { cout << "Entre com o numero 3 para sair: "; cin >> f; } //Outro modo de for incompleto int b; for (; x <3;) { cout << x << " " << endl; ++x; } // laço infinito for (;;) { // } system ("pause"); return 0; } Erro Compiling: D:\FonteLivroC++\Capitulo-5\repeticao-controlada_1.cppmingw32-g++.exe: error: CreateProcess: No such file or directory Process terminated with status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings Obrigado Compartilhar este post Link para o post Compartilhar em outros sites
_Isis_ 202 Denunciar post Postado Setembro 25, 2011 http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista http://cmake.org/Bug/view.php?id=11315 http://stackoverflow.com/questions/3848357/gcc-createprocess-no-such-file-or-directory Compartilhar este post Link para o post Compartilhar em outros sites