| | |
program in c++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 98
Reputation:
Solved Threads: 12
Break the problem down into small tasks.
First, you need to find a way to get the first digit and the last digit.
There are many different ways you could get these digits.
One way might be to convert the number into a string. Once you have the string, there are several ways you can get the first and last character.
Convert those characters representing the first and last digit to an int.
Once you have those digits, simply add them together.
First, you need to find a way to get the first digit and the last digit.
There are many different ways you could get these digits.
One way might be to convert the number into a string. Once you have the string, there are several ways you can get the first and last character.
Convert those characters representing the first and last digit to an int.
Once you have those digits, simply add them together.
![]() |
Similar Threads
- Playing .Wav/MIDI files in a Visual Basic Program (Visual Basic 4 / 5 / 6)
- What's the HARDEST program you've written? (Computer Science)
- Cool little Program to disable startup programs (Windows NT / 2000 / XP)
- Program is shutting down right after program is executed (C++)
- 3d Program (Game Development)
Other Threads in the C++ Forum
- Previous Thread: Linker Error - Multiple Definition
- Next Thread: Need advice for data storage
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





