ndeniche 402 Posting Virtuoso Featured Poster

so... this is what i would do...

#include <fstream>
#include <iostream>

using namespace std;

int main(){
   fstream file("myfile.txt", ios::in | ios::out);
   char *name;
   cout<<"Enter your name: ";
   cin>>name;
   file.write((char*)&name,sizeof(name));
   file.close();
}

guess there are some mistakes in the write line... correct me if wrong plz...

ndeniche 402 Posting Virtuoso Featured Poster

i actually feel like a n00b asking this, but i'm a little of what you might call rusted in this stuff, since i hadn't need to handle files for a year now...

i searched for some guide, but i only found out how to open a file... like this:

ofstream *pfile;
pfile.open("myFile.txt", ios::in | ios::out);

but i don't know how to create the text file from my program...

ndeniche 402 Posting Virtuoso Featured Poster

"i don't know how it happened, but it rained inside my house..."

ndeniche 402 Posting Virtuoso Featured Poster

2732

ndeniche 402 Posting Virtuoso Featured Poster

2731

ndeniche 402 Posting Virtuoso Featured Poster

2729

ndeniche 402 Posting Virtuoso Featured Poster

I guess it must be corporal fluids... just like flu...

ndeniche 402 Posting Virtuoso Featured Poster

2727

ndeniche 402 Posting Virtuoso Featured Poster

its just that its contagious

ndeniche 402 Posting Virtuoso Featured Poster

"i've had like 30 boyfriends... but i'm still a virgin"

ndeniche 402 Posting Virtuoso Featured Poster

bacon bringer -> butcher

ndeniche 402 Posting Virtuoso Featured Poster

we're talking about chicks that look like schwartzenegger...

ndeniche 402 Posting Virtuoso Featured Poster

'Hey, I am not here seeking ready made code.'

"I did try my best.'

'Our teacher sucks, she doesn't teach us anything'.

'The above code is working fine except a small problem.'

'I love my clients, they are so co-operative.'

'My project manager is really a nice guy.'

rofl... i loved these ones... they're soo full of crap... :P

ndeniche 402 Posting Virtuoso Featured Poster

2725

ndeniche 402 Posting Virtuoso Featured Poster

Blink are cool too :)

I know!!! they totally rock!!!

ndeniche 402 Posting Virtuoso Featured Poster

though, not necessarily for a chick to fall in love with you she has to be nerdy... am i right xtina?

ndeniche 402 Posting Virtuoso Featured Poster

2716

ndeniche 402 Posting Virtuoso Featured Poster

illness -> sick

ndeniche 402 Posting Virtuoso Featured Poster

LOL And do you know that from personal experience :)

sure does... :D

ndeniche 402 Posting Virtuoso Featured Poster

ghost -> dead

ndeniche 402 Posting Virtuoso Featured Poster

"i promise... *crossing fingers*"

ndeniche 402 Posting Virtuoso Featured Poster

>>But I came to Daniweb because of my boyfriend.

Thought so...

>> I do!

No way!!!! :P

My girlfriend does too... :D

ndeniche 402 Posting Virtuoso Featured Poster

sort of...

ndeniche 402 Posting Virtuoso Featured Poster

2711

ndeniche 402 Posting Virtuoso Featured Poster

human -> soul

ndeniche 402 Posting Virtuoso Featured Poster

i'm sure lots of chicks fancy nerds... :D

ndeniche 402 Posting Virtuoso Featured Poster

@ christina:

somewhere in other thread i read you are not that much into software and programming and stuff... ("Gray Reputation" i believe)... so, how did you get into daniweb?

ndeniche 402 Posting Virtuoso Featured Poster

"i'm innocent!!! i swear!!!"

ndeniche 402 Posting Virtuoso Featured Poster

"i swear it was right there!!"

ndeniche 402 Posting Virtuoso Featured Poster

Like physical strength? Chicks with muscular bodies are not hot.. It's certainly a turn off when your chick can kick your ass..

don't be stupid... (no offense intended :P)

he's talking about the strength that makes you overcome obstacles in life... strength of spirit...

though, you're right... i personally think it would be gross to be with a girl with more body than me... or with biceps better formed than mine... it's disgusting...

ndeniche 402 Posting Virtuoso Featured Poster

but they're not actually working the 80 hours a week... they might be at the office or whatever, but they're not actually working the whole time...

ndeniche 402 Posting Virtuoso Featured Poster

perhaps she's dead... :D (not that i want her to be... that shall be a huge loss for us geeks)

ndeniche 402 Posting Virtuoso Featured Poster

"i promise it's all gonna be fine"

ndeniche 402 Posting Virtuoso Featured Poster

Yes, I remember someone else talking about that in another thread..

that would have been me too...

..and as for the "f" word, from what I understand, it originally came from old Anglo Saxon society.. when farmers would plant seed, fertilize it.. they called it "f-ing". Henceforth, human sex became known as "f-ing". Hah.. maybe thats not quite right, but thats what I've heard.

i checked it out @ wikipedia and it says a lot from saxon languages... bu the explanation is too complicated so i got bored... :P

ndeniche 402 Posting Virtuoso Featured Poster

of course... that's because you're an atheist too... :P (not that i'm discriminating anyone)

your (religion/faith/whatever you want to call it) is something that must be on top of any other thing, since is your source of wisdom... the source of "life" to your soul... so, if anything is an obstacle to practice your religion (which i doubt it can be possible), you should strongly consider to fix anything you have to fix so that it isn't that way...
though, in the life of programmers, there is many spare time for you to dedicate yourself, or your mind, to other activities besides programming, or troubleshooting, or whatever your work is... for example, if you have nothing to do, even if you're in your office, you can pray... so, if you're really committed to your religion, and convinced that it is what is going to save you, you should be able to find time to dedicate to your religion...

ndeniche 402 Posting Virtuoso Featured Poster

what about plastic surgery to fix something that was really really wrong?

ndeniche 402 Posting Virtuoso Featured Poster

"i can stop drinking/smoking/doping whenever i want to"

ndeniche 402 Posting Virtuoso Featured Poster

feeling -> senses

ndeniche 402 Posting Virtuoso Featured Poster

couple -> love

ndeniche 402 Posting Virtuoso Featured Poster

@ infarction:
hahaha

@christina:
i know what you mean... my actual girlfriend is my first one and she gives me everything i need... so i don't need to go looking for anything anywhere else...

@Orewa:
*thumbs up* good luck with this one... hope she goes for the bait...

ndeniche 402 Posting Virtuoso Featured Poster

"i did it for us"

ndeniche 402 Posting Virtuoso Featured Poster

true... very nice arguments indeed...

ndeniche 402 Posting Virtuoso Featured Poster

hah... i just read (guess where... wikipedia of course), that the etymology i wrote down is one of the false etymologies... lol


i read it somewhere... for those who wondered what my source was... though i guess i should've looked for it @ wikipedia...

ok... another one...

the work "Okay" (as you all know) comes from O.K., which has its origin in the WWII, where germans, imitating the english phrase "All Correct" wrote it as "oll korrekt", which was abbreviated "O.K."

ndeniche 402 Posting Virtuoso Featured Poster

do you know what the 'F' word actually means? (apart from any modern meaning applied to it, which actually comes from its real meaning)

in the middle ages, as you may know, when a man wanted to have sexual intercourse with his bride, he needed the authorization of the king. So they would be put into a room with a sign on the door which said <snipped> which means "fornicating under consent of the king", thereby, F***

That's why it is actually used as to describe a sexual act...

iamthwee commented: stupid and pointless -2
ndeniche 402 Posting Virtuoso Featured Poster

"do you have a dollar i can borrow? i'll pay you tomorrow"

ndeniche 402 Posting Virtuoso Featured Poster

i don't see why we shouldn't have time...

ndeniche 402 Posting Virtuoso Featured Poster

two -> pair

ndeniche 402 Posting Virtuoso Featured Poster

ohh... sorry... missed the explanation :D

i have to say though, that it is pretty unusual to have such long-term relationships at the age of 17... generally they're just like for 7 - 12 months... maybe a little more...

so... my respect to you, since it must be the first time i hear something like that... congrats... and i hope all your expectations are fulfilled...

ndeniche 402 Posting Virtuoso Featured Poster

those riddles are great... haven't you, by chance, got any other of them?

ndeniche 402 Posting Virtuoso Featured Poster

what about exchanging ip addresses?