anonymous
  • anonymous
I am trying to do assignment 0 on MIT open courseware, its an intro computer science and electrical engineering course. How do i create a program that asks user to enter date of birth and last name
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
the program is written in C++11 language , I recommend using the following online program: #include using namespace std; int main() { char DOB[11];char lname[30]; cout<<"enter date of birth(DD/MM/YYYY): "; cin.getline(DOB, 11); cout<<"enter lastname: ";cin.getline(lname , 30); return 0; } compiler to use it : LINK: http://www.tutorialspoint.com/compile_cpp_online.php
rsmith6559
  • rsmith6559
The raw_input() function takes a prompt for an argument and returns the user's input as a string: foo = raw_input( "Type in something" ) print foo

Looking for something else?

Not the answer you are looking for? Search for more explanations.