I am trying to get a element of string and cast it as a integer. What I am ultimately doing is in a for loop taking an element out of the string and convering that element to an int. This is in order to get the characters ascii value.
I believe what you are looking for is the Atoi function.
Here is a quick example
#include <string> // used for string support
#include <stdlib.h> // used for atoi() support
using namespace std;
string theString = "12345"; // the string we are going to convert
int i; // integer to store string value into
i = atoi(theString.c_str()); // we use the c_str() to convert the function to a c-string which is the parameter that atoi takes
cout << theString << " is now in the integer " << i << endl;
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...