I'm trying to learn C++ with the book of Francis Glassborrow".
I'm trying to solve the exercise 5 of the chapter 2.
I have the same error if I use the solution proposed by Francis then mine.
Here is the code proposed by Francis:
This program must display the 256 colours.
When I execute the program. there is an error :
I don't understand why it doesn't work!
Somebody can help me?
Paola
I'm trying to solve the exercise 5 of the chapter 2.
I have the same error if I use the solution proposed by Francis then mine.
Here is the code proposed by Francis:
Code:
#include "playpen.h"
#include <iostream>
using namespace fgw;
using namespace std;
int main()
{
playpen papier;
papier.taille(32);
for (int i(0); i!=16; ++i)
{
for (int j(0);j!=16; ++j)
{
papier.tracer (i-8,j-8,(i*16+j));
papier.afficher();
}
}
cout << "Appuyer sur ENTER pour sortir du programme";
cin.get();
}
When I execute the program. there is an error :
"cannot open output file C:\ tutorial\Chapte r 2\ex5.exe: Permission denied.
I don't understand why it doesn't work!
Somebody can help me?
Paola
Comment