A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • one year ago

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

  • This Question is Open
  1. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    the program is written in C++11 language , I recommend using the following online program: #include <iostream> 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

  2. rsmith6559
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...


  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.