Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: stephenalistoun

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,876

    Re: Convert String Value to an Int

    Thanks Paul, for replying to my forum

    The atoi function expects a 5

    The compiler returns the following error:
    main.cpp:46: error: cannot convert `std::string' to `const char*' for argument `1'...
  2. Replies
    4
    Views
    2,876

    Convert String Value to an Int

    Hi All,

    In C++ how do I convert the string value position to a integer. The compiler keeps on giving me an error.

    string numFamilyMembers[100];

    if(atoi(numFamilyMembers[0]) > 5){
    ...
Results 1 to 2 of 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center