Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				@7Raiden Exactly. It'd be fine here, but it's a bad habit and can make things rather slow
 - 
				
				
kurtr124767yPorted to JS... couldn't resist a round of code golf 😝
alert(`Your future wifes name is Mrs ${['first','last'].map(a=>prompt(`Enter your ${a} name`))[1]}`) - 
				
				
7Raiden8647y@someonewithpc Well, depending what you're doing :) I never had slow down using it instead of printf!
Also, prematurely optimizing the code removing std::endl it seems a bit excessive to me! But yeah, I get your point :) - 
				
				
devpit4627yI can’t stop thinking about that first_name somewhere in memory void. Alone. Without a friend. Surrounded by flashing chaos and confusion.
He’s just proudly sitting there. Waiting for his purpose. Waiting for his call. - 
				
				
hjk10155957y@Lezka Shure it would C++ with just stdlib features compiles everywhere!
Although the above is still customary a lot of women keep there last name these days and men take there wife's name from time to time - 
				
				
iceman9257yAdmit it, it was your code and you want to see if you are on the right path with your tutorials by asking about peoples reaction 
Related Rants
- 
						
							
OrestH18
I'm dreaming to send homework to my C++ programing lecturer full of strange #defines and make the code compila... - 
						
							
FMashiro15
HOLY SHIT THE COURSE DOCUMENT CPP USES DEV DUCKS AS HEADER IMAGES! - 
						
							
Skyrox2
When you don't find what is wrong with your code so you do some shit and it works miraculously 

Friend : Hey bro I made an awesome program which shows your future wife's name.
Me : Hey that sounds interesting, show me the source code bro !!
Friend shows the code :
#include <bits/stdc++.h>
using namespace std;
int main()
{
string first_name , last_name;
cout << "Enter your first name\n";
cin >> first_name ;
cout << "Enter your last name\n";
cin >> last_name ;
cout << "Your wife's name is " << "Mrs " << last_name << "\n";
}
Me : Dude you are gonna crack Google some day :P
joke/meme
cpp