Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
I dont get c++ and i need help doing something that is simple
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sharpercurl
New Member
Join Date:
Sep 2006
Posts:
2
#1
I dont get c++ and i need help doing something that is simple
Sep 20 '06, 01:45 AM
I need to write a program the promts the user to input a decimal number and the program should then output the decimal and the corresponding integer
i don't know where to start
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#2
Sep 20 '06, 08:37 AM
Are you familar with cin and cout?
How about printf and fgets (or gets)?
Comment
Post
Cancel
sharpercurl
New Member
Join Date:
Sep 2006
Posts:
2
#3
Sep 20 '06, 04:25 PM
Originally posted by
Banfa
Are you familar with cin and cout?
How about printf and fgets (or gets)?
yes but I don't know how to use them I know that that sounds alittle silly, but I need help
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#4
Sep 20 '06, 05:09 PM
float f;
cout << "Enter Number: "
cin >>f;
cout << "\n" << f << " <-> " << (int)f;
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment