Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8654601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:49:43+00:00 2026-06-12T14:49:43+00:00

Earlier today (actually yesterday due to my time-zone) I was attempting a programming interview

  • 0

Earlier today (actually yesterday due to my time-zone) I was attempting a programming interview using Visual Studio 2012 for C++ on Interview Street (which uses g++).

To be brief, I came across several compilation errors1 when I was using

#include <cstring>

which was provided by the skeleton code in one of the question, and after turning to

#include <string>

all compilation errors magically disappeared.

However, upon submission to Interview Street, I had to add c back; otherwise I got compilation errors.

It was the first time I was bitten by non-standardization….

My question is: what inside <string> and <cstring> took me (precious) more than half an hour?


1 For anyone who is curious:

One error by Visual Studio 2012 if using <cstring> is:

error C2338: The C++ Standard doesn’t provide a hash for this type.

in

c:\program files (x86)\microsoft visual studio 11.0\vc\include\xstddef

possibly for string as key in unordered_map

One error by g++ if using <string> is:

‘strlen’ was not declared in this scope

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:49:44+00:00Added an answer on June 12, 2026 at 2:49 pm

    The cstring header provides functions for dealing with C-style strings — null-terminated arrays of characters. This includes functions like strlen and strcpy. It’s the C++ version of the classic string.h header from C.

    The string header provides the std::string class and related functions and operators.

    The headers have similar names, but they’re not really related beyond that. They cover separate tasks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I posted earlier today about an error I was getting with using the predict
Earlier today I needed to iterate over a string 2 characters at a time
Earlier today I asked this question . After spending some time investigating this issue,
I asked a question earlier today regarding using Perl to search in a CSS
Earlier today I asked similar problem to find the maximum element which is common
Earlier today I was working on a PHP 5.3+ application, which meant I was
Earlier today, I asked a question about the way Python handles certain kinds of
Earlier today we experienced a YSOD on one of our MVC sites running on
Earlier today I was looking for an C# API which provides stock quotes for
This code was working earlier today, then randomly stopped, something must of changed, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.