Sesiones de PyR
WY I get a rundum number from memory when I run this code
#include <iostream>
using namespace std;
int main ()
{
int array [5];
for (int x = 0; x < 5; x++) {
array [x] = 42;
cout << x << ': ' << array [x] << endl;
}
return 0;
}
if I replace ': ' with ": " every thing works well.
0 Votos
2 RespuestasCout__x
0 Votos
2 Respuestaswhat is tjis code problem!
#include <iostream>
using namespace std;
int main()
{
int b = 5;
int arr[b] = {11, 35, 62, 555, 989};
int sum = 0;
for (int x = 0; x < 5; x++) {
sum += arr[x];
}
cout << sum << endl;
return 0;
}
I cannot make an array using int variable in order to define array's element number!?
1 Voto
7 RespuestasPlz answer?
1 Voto
2 RespuestasEn tendencia hoy
How to make a game code
1 Votes
What is HelloWorld
1 Votes
Missing]
0 Votes
Tic tak toe
1 Votes
Lesson on Robotics
1 Votes
Inner .html
0 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
About this app
1 Votes
Hyperlink and tests
0 Votes