F&A Diskussionen
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 Stimmen
2 AntwortenWhy is there this error?
1 Stimme
4 AntwortenWhat is my mistake?
0 Stimmen
1 Antwortwhat 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 Stimme
7 AntwortenMethod in python
0 Stimmen
2 AntwortenPendulum broken
2 Stimmen
3 AntwortenData Science - Average of Rows
-1 Stimme
1 AntwortКак добавить несколько переменных?
0 Stimmen
1 AntwortAbout files and Binary Strings
0 Stimmen
2 AntwortenHeute heiß
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
1 Votes