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

Search:

Type: Posts; User: stephenalistoun

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    8,123

    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
    8,123

    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





Click Here to Expand Forum to Full Width

Featured