String to Number Conversion


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C++, Python3

You are required to write lab3p1.cpp and implement a function that performs conversion from string to number.

The function prototype declared in lab3p1.h is:

  1. int stringToInt(string &str);

This function will convert a string instance containing number characters only and sometimes preceding + or - signs

After you are done, upload the content of your lab3p1.cpp onto the OJ here.

Input Specification

No input specification. OJ will automatically judge your implementation of lab3p1.cpp.

Output Specification

No output specification. OJ will automatically judge your implementation of lab3p1.cpp.


Comments

There are no comments at the moment.