you could divide you 7-9 digit number into 3 numbers and place commas between them...
ndeniche 402 Posting Virtuoso Featured Poster
Sulley's Boo commented: hehe +3
ndeniche 402 Posting Virtuoso Featured Poster
you could divide you 7-9 digit number into 3 numbers and place commas between them...
eats
i don't think anyone that qualifies in other might be able to answer that poll...
ok... let me correct myself... i don't hate gays... i dislike them... happy?
2758
ok... lets put it this way... AIDS came with gay sex... then came the so-called "bi-sexuals", which to me are as gay as the homosexuals... and had intercourse with a woman... this woman had intercourse with other three men without knowing about the disease... and so on and so on...
see? its not like diseases are born when you respect the natural order of things... but when you start messing up with order, comes disaster...
oh... come on... will you tell me you never use the word hate to refer something you dislike?
thank you very much Josh...
@ A.D.:
agreed... perhaps we may want to consider experimentation as the best explanation... experimentation just to see what it feels like to do things different, and end liking it... but then, if it was experimentation, it was chioce... choice to keep doing it, or just stopping it...
environment influence might be a good explanation too nowadays... since there's a lot of societies that promote gay communities and stuff... so, some kid that has been rejected, with no family support and everything sees that gays "are" (by "are" i mean seem) happy, so he wants to be happy... so he turns to the gay community...
@ Ancient Dragon:
as i stated it in the other thread, gayness has nothing to do with natural processes, genetics or anything... i clearly stated that the human need to be sexually satisfied comes from his instinct... instinct indicates humans to have sexual intercourse with someone from the opposite sex... there's no way gayness can be assed through as genetic information...
gayness is just the same as masochism... some weird experimentation made by some wacked up guy that ended liking this new sensation... a psychological impulse to do something that wasn't meant to be...
to say that gayness is passed through genetics is like saying stealing is passed through genetics...
2756
-"have you seen my <enter noun here>?"
-"no."
this thread was not started as a hate speech... that comment was posted in another thread... i just created this one so we could widely discuss it...
when i commented that, i meant gay comunities, gay conversations... and that kind of stuff... i have no problem in using something inventd or discovered by someone gay... but you will never ever see me sharing anything more than a professional relationship or none at all...
ok... i modified that part of the code, so the file is now crated if there wasn't any... but... now it fails writing into the file... guess it goes the other way around in the if statement...
#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <fstream>
#include <cstdio>
using namespace std;
struct carro{
char placa[7];
char nom[50];
char marca[20];
char modelo[20];
char color[10];
};
void leerVehiculo(carro cliente){
cout<<"Ingrese el nombre del propietario: ";
gets(cliente.nom);
cout<<"\nIngrese la marca del vehiculo: ";
gets(cliente.placa);
cout<<"\nIngrese el modelo del vehiculo: ";
gets(cliente.modelo);
cout<<"\nIngrese el color del vehiculo: ";
gets(cliente.color);
cout<<"\nIngrese la placa del vehiculo: ";
gets(cliente.placa);
cout<<"\n\n\nPresione >>ENTER<< para continuar";
getchar();
system("cls");
}
void nuevoCliente(){
carro cliente;
leerVehiculo(cliente);
fstream file("Boleta.txt", ios::out | ios::in);
if (!file.is_open()){
fstream file ("Boleta.txt", ios::out);
}if (file.is_open()){
cout<<"Proceder con escritura en archivo\n\n";
file<<"\nNombre: "<<cliente.nom;
file<<"\nMarca: "<<cliente.marca;
file<<"\nModelo: "<<cliente.modelo;
file<<"\nColor: "<<cliente.color;
file<<"\nPlaca: "<<cliente.placa;
file<<"\n\n\n";
file.close();
}else perror(0);
cout<<"Presione >>ENTER<< para continuar";
getchar();
}
int menu(){
int op;
system("cls");
cout<<"Bienvenido al Sistema de Registro de la Direccion Ejecutiva de Ingresos";
cout<<"\n\n\n\n Que desea hacer?";
cout<<"\n\n 1.-Agregar un nuevo vehiculo\n 2.-Salir\n\n\n Ingrese una opcion: ";
cin>>op;
getchar();
system("cls");
return op;
}
int main(){
do{
if (menu()==2){
_exit(0);
return 0;
}else{
nuevoCliente();
}
}while (1);
}
hmmm... idea... maybe it doesn't open it for reading, because there's nothing to read from... lol
thnx for opening my eyes...
i don't need it to tell me why it failed... i need it to create a new text file if there is no one to write into...
the error is "No such file or directory"
the thing is it doesn't even create the file... that's what i need it to do...
i can't beleive i'm starting a thread about this... but it is a subject that must be discussed through and through...
1.- when i was talking about hating everything gay, i wasn't talking about what they've invented, because the fact that they're gay doesn't mean they're intelligent...
2.- i never intended to say that my god is bigger than yours... in the end i don't think any religion approves of gay relationships...
3.- being gay has nothing to do with skin color or anything you mentioned... because, differently from the others, is a decision from a human being about going the wrong way...
2754
ok... i had it corrected, but it still doesn't create the file i need in to create...
here's the code:
#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <fstream>
#include <cstdio>
using namespace std;
struct carro{
char placa[7];
char nom[50];
char marca[20];
char modelo[20];
char color[10];
};
void leerVehiculo(carro cliente){
cout<<"Ingrese el nombre del propietario: ";
gets(cliente.nom);
cout<<"\nIngrese la marca del vehiculo: ";
gets(cliente.placa);
cout<<"\nIngrese el modelo del vehiculo: ";
gets(cliente.modelo);
cout<<"\nIngrese el color del vehiculo: ";
gets(cliente.color);
cout<<"\nIngrese la placa del vehiculo: ";
gets(cliente.placa);
cout<<"\n\n\nPresione >>ENTER<< para continuar";
getchar();
system("cls");
}
void nuevoCliente(){
carro cliente;
leerVehiculo(cliente);
fstream file("Boleta.txt", ios::in | ios::out);
cout<<"Proceder con escritura en archivo\n\n";
file<<"\nNombre: "<<cliente.nom;
file<<"\nMarca: "<<cliente.marca;
file<<"\nModelo: "<<cliente.modelo;
file<<"\nColor: "<<cliente.color;
file<<"\nPlaca: "<<cliente.placa;
file<<"\n\n\n";
file.close();
cout<<"Presione >>ENTER<< para continuar";
getchar();
}
int menu(){
int op;
system("cls");
cout<<"Bienvenido al Sistema de Registro de la Direccion Ejecutiva de Ingresos";
cout<<"\n\n\n\n Que desea hacer?";
cout<<"\n\n 1.-Agregar un nuevo vehiculo\n 2.-Salir\n\n\n Ingrese una opcion: ";
cin>>op;
getchar();
system("cls");
return op;
}
int main(){
do{
if (menu()==2){
_exit(0);
return 0;
}else{
nuevoCliente();
}
}while (1);
}
it runs perfectly except for that small detail (which is the whole idea of the project...)
its in spanish though... hope you don't mind...
there've been already like 3 or 4 joke threads...
first of all... let me make myself clear... i hate gays... i hate everything that has to do with gays...
in my opinion, gayness is the worst disease there is... because that's what it is, a psychological disease, that makes a man feel attracted by another man...
there's nothing genetic, nor any physiological need, since AFAIK it is not necessary for a man to be physically satisied by another man... what is a physiological need is for a man to be satisfied by a woman, just as it was meant to be... physiological needs are those humans have from their animal being, also called instinct... such as the need to pee, to eat to sleep... or have you ever seen a dog having gay relationships with other dogs? of course not... why? because they don't have a mind to have f***ed up by some weird "need" to have someone of their same sex beside them...
gay people shouldn't be praised... his only causes more people to think this is good...
actually gay sex is the source of many diseases... maybe is a punishment to mankind for allowing this to happen... or at least i feel it that way...
even (as christians may know), God Himself is againsta gay relationships... i can't recall where it is, but it clearly says (in other words, obviously) "gays will not go to Heaven"...
conclusion... gays shouldn't exist... and it is a mistake to think they are a "nature's …
we're gonna get sooo many trouble when she reads this...
dude... tehy even sent me candy...
rumor has it she passed away... :P
i did once too... :P
2752
why don't you initialize your unknown variable as a string, and depending on its value you convert it to int, double, boolean, or leave it as a string... you may use atoi() to compare numbers and strings such as "true" and "false" to compare boolean... if there is a dot in middle of the string and the rest of the characters are numbers, then it is a double... and if not, it is a string...
2750
it's not that i have that problem... but seeing it from MidiMagic's point of view...
if i have to edit a post i edit it immediately after posting... so, by me you could make it 5 minutes if you want...
2748
hah... that's what happens when something doesn't go the way it should...
well... what about the "best price warranty"? "bring me a better price and i'll cut ours by half"
don't know who the heck you're talking about, but glad we solved this dilemma...
what about "this product has a 2 year full coverage warranty"
me neither
2745
but that is exactly the point. government is capable of creating jobs. therefore the sarcasm is false by virtue of the statement being true. look at germany before the second world war. while the rest of europe was in depression the national socialists created jobs.(i am no fan of hitler in case someone is going to say so.)
the sarcasm cmes in when we start speaking about actual governments... mostrly western governments... like the US, Mexico, Central America... in these countries, it seems like tho government doesn't care if people without jobs starve to death... beleive me when i say so...
btw. i am now practicing chess. got to be ready for narue if she comes back!
lol... you're right...
hey!! guys!! the phrase "the govenrment creates jobs" was meant to be a lie... it is called sarcasm... maybe you should get to know each other...
what about extending the edit time? how did you get to the conclusion that 30 mins was best?
Paris: Skinny freak who only became famous due to a leaked amature porn movie.
hmmm... leaked? i'm pretty sure it was not an accident...
2743
2741
2739
there was a small mistake, and i'm trying to make it follow the post number... 2737
2735
i had seen that one too... actually that's the one included in my project right now...
let me see what i can do, and i'll post back if i have any more trouble...
she is a girl... perhaps you should take a look to her profile picture to have an idea of her body (and an awesome tattoo)... quite intelligent too...
that's why there's a large variety of colors and flavors my friend...