noproblembrawl
Gebruiker
- Lid geworden
- 16 jun 2008
- Berichten
- 5
edit:
/* my first program in C++
with more comments */
#include <iostream>
using namespace std;
int main()
{
// declaring variables;
int a (0), b, c, d;
float mynumber;
int result;
//progress;
b = 5;
c = a + 1;
d = 17;
result = (a + b) - (c + d);
// print out the result:
cout << result;
// terminate the program:
system ("pause");
return 0;
}
dat je een vraag erin zet die aan jou vraagt:
wat is a? waarop jij een getal invoerd
is het nu duidelijk?(ja, ik ben net begonnen
)
/* my first program in C++
with more comments */
#include <iostream>
using namespace std;
int main()
{
// declaring variables;
int a (0), b, c, d;
float mynumber;
int result;
//progress;
b = 5;
c = a + 1;
d = 17;
result = (a + b) - (c + d);
// print out the result:
cout << result;
// terminate the program:
system ("pause");
return 0;
}
dat je een vraag erin zet die aan jou vraagt:
wat is a? waarop jij een getal invoerd
is het nu duidelijk?(ja, ik ben net begonnen

Laatst bewerkt: