Having an output of words after use of built-in data types

Not sure how to continue with a statement after using a double

Page 1 of 1

2 Replies - 336 Views - Last Post: 02 December 2008 - 06:09 PM Rate Topic: -----

#1 scimmy55  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 02-December 08

Having an output of words after use of built-in data types

Posted 02 December 2008 - 05:34 PM

I have my whole program complete except for 1 line. I am trying to an output of: The trip to school will take timetrip minutes.

-note-: I am only providing you with the double i used and the one line.

double timetrip = (32/kmph)*(60)
cout<<"The trip to school will take "<<timetrip<< \how do i show " minutes."


Is This A Good Question/Topic? 0
  • +

Replies To: Having an output of words after use of built-in data types

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3093
  • View blog
  • Posts: 19,139
  • Joined: 14-September 07

Re: Having an output of words after use of built-in data types

Posted 02 December 2008 - 06:03 PM

cout << "The trip to school will take "<< timetrip << " minutes";


Was This Post Helpful? 1
  • +
  • -

#3 scimmy55  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 02-December 08

Re: Having an output of words after use of built-in data types

Posted 02 December 2008 - 06:09 PM

Yet again it was a simple question! Thanks with the quick result!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1