Problem with spaces when printing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Invalid
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: gedit
I use Gedit to program in C/C++. When i had to print my little stupid code, some "free lines" disapeared.
The code was:
// Projet 1
//
// Groupe 3
#include <iostream>
using namespace std;
int main() {
double solde=0.0;
// Cette variable contiendra la somme à retirer ou à verser
int montant;
// sera le type d'opération (retrait, versement, intérêts)
unsigned short int operation;
cout << "Solde du compte : " << solde << endl << endl;
cout << "Opération (0=quitter, 1=verser, 2=retirer, 3=intérêts) ? ";
// Tant que le chois de l'utilisateur n'est pas de terminer le programme
while (cin >> operation && operation != 0) {
if (operation == 1) {
cout << "Montant à verser ? ";
cin >> montant;
// ajout du versement au solde total
solde += montant;
} else if (operation == 2) {
cout << "Montant à retirer ? ";
cin >> montant;
// Si l'utilisateur demande de retirer plus que disponible
if (montant > solde) {
cerr << endl << "Pour garder ses amis, la banque ne fait pas crédit !";
cerr << endl;
} else {
// retrait de la somme au solde total
solde -= montant;
}
} else if (operation == 3) {
// Intérêts de 0.5%
solde *= 1.005;
// Si l'utilisateur fait un choix non disponible
} else {
cerr << endl << "*** Erreur: Opération inconnue ***" << endl;
}
cout << endl << "Solde du compte : " << solde << endl << endl;
cout << "Opération (0=quitter, 1=verser, 2=retirer, 3=intérêts) ? ";
}
cout << endl << "Solde du compte : " << solde << endl;
}
The free line after // groupe 3 was not printed as after unsigned short int operation; and cout << "Opération (0=quitter, 1=verser, 2=retirer, 3=intérêts) ? ";
Really sorry for the bad english
ProblemType: Bug
Architecture: i386
Date: Mon Oct 8 14:37:27 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gedit
NonfreeKernelMo
Package: gedit 2.20.1-0ubuntu2
PackageArchitec
ProcCmdline: gedit
ProcCwd: /home/herlock
ProcEnviron:
PATH=/
LANG=fr_BE.UTF-8
SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux laptop 2.6.22-13-generic #1 SMP Thu Oct 4 17:18:44 GMT 2007 i686 GNU/Linux
Thank you for your bug. What printer did you use? Do you get the issue if you use the pdf printing option?