using namespace std;
cout<<"Please enter your name: ";
cout<<"Welcome, "<< name <<"\n";
Above is my code just a simple C++ program to ask your name but having a problem the variable name is only storing the first character of your name i know char does this but what is the alternative so that it will store a whole name.
Thanks mate this does work with error. I played around with it and the number doesnt seem to matter if u have 0 5 or 5000 it will show as many characters as typed until a space. C++ is seeming a little confusing as to how results are shown. Also the 2 #includes dont seem to be needed works either way with error.
First off I'll begin by explaining, common reasons, most folks know or perhaps don't know, why their smartphone battery life sucks and a few tricks to boost battery life from extra hour to several hours difference. (Depending on use, make, model).
Now some of the common reasons for poor battery...
My laptop is taking its last breaths as we speak (the screen is acting up more and more and some other shit) so I need recommendations for a laptop.
I currently have a DELL Inspiron 1545 from like 2009. I really liked this computer, and would prefer to use a newer model of a DELL laptop if...
Came home yesterday from work and watched a couple hours of wrestling on my computer last night. Shut it down. Now this morning when I try to boot it up, the light comes on but my screen remains black. I charged it, so it's not that and I was watching an old WCW PPV on the network so it's not a...
Firstly I know you get what you pay for with electronics...
I've been browsing some electrical stores looking for a reasonably priced 40" 4k TV. (50"+ wayyy to big IMO)
I've found a few under $1,000 and I call bullshit, I have no trust in what they're claiming in the specs. I've looked for some...
I got a new laptop for Christmas (this one) and it's fucking sexy, but, my previous laptop, I planned on using for downloading music since the program is already on it and I don't want to download it on this computer because I don't want to mess this one up.
Anyway, that computer was stupidly...