Ask someone out using C++

Hi everyone,

this is urgent and might sound cheesy.

I just met this girl and she is a programmer and proficient in C++. I just know some VBA etc.

I wanted to ask her out on a date, but wanted to write her in C++ code.

Could someone provide me with a short code to do so? that would be awesome :-)

I thought about like calling the routine "Date" and to ask her out for a date. leaving her to answer "Yes" or "no". But when it says "no" it leads to an error and to run again until she says "yes" ;-)

I'd be sooooo thankful!!!

Markus

lol this is a first for me, hope it works out :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include <iostream>
#include <algorithm>
#include <string>

void Date(std::string &ans);

int main()
{
	std::string answer;
	do {
		Date(answer);
	} while (answer != "yes");
	std::cout << "See you on Monday at 7?";	// final message
	return 0;
}

void Date(std::string &ans)
{
	std::cout << "Will you come out for a date with me? ";
	std::cin >> ans;
	std::transform(ans.begin(), ans.end(), ans.begin(), ::tolower);
	if (ans != "yes")
		std::cout << "****** Error, answer not accepted, try again!" << std::endl;
}
thank you so much! I can work with that :-)

I keep you posted on how it went. I bet she loves it haha

Markus
dont use standard library function use yourself code so she will amaze in your code :)
@markus978: that's so cool, dude! good luck!
@lorence30: i think that's a good idea, too...
Last edited on
haha what if she ask you about c++ or she made a topic about c++
Last edited on
just say, "i don't know, but i'll learn it for you..." :)
Just a short update. She hasn't gotten back to me yet :-( Girls these days... no place for some romance I suppose.
Thanks for your help again.

markus:-)

ps. Id suggest to her that we meet up for some bug fixing ;-)
if ever she replies or gets back to me.
its okay dude, find some bar and get drunk then learn C++

maybe she's checking your code for bugs ;-)

Topic archived. No new replies allowed.