Question: I need help converting this Java into C++. This is wayyy too confusing for me to convert. Please help! The keyboard input is killing me.

I need help converting this Java into C++.

This is wayyy too confusing for me to convert. Please help! The keyboard input is killing me. I don't even know where to include the scanf.

try

{ //TODO

FileInputStream fis = new FileInputStream("<>"); Scanner sc = new Scanner(fis);

while(sc.hasNextLine())

{ try

{

BigDecimal b = new BigDecimal(sc.nextLine());

numberList.add(b);

}

catch(BigDecimalException bde)

{

System.out.println(bde.getMessage());

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!