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 4566052
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:43:58+00:00 2026-05-21T18:43:58+00:00

So in the down time before summer semester, I’m trying to learn a little

  • 0

So in the down time before summer semester, I’m trying to learn a little C++ on my own. I’m working through a book, but not using the compiler provided. Instead, I’m using MinGW. The problem I’ve encountered is that the headers the two compilers need appear to be somewhat different. For example, where the text uses

#include <iostream.h>

…the MinGW C++ compiler needs…

#include <iostream>

… so now I have a simple program manipulating strings I’m trying to run, and the header provided in the text is…

#include <string6.h>

…and I don’t know what header to include to make it run. In fact, I don’t really know how headers work. I have a cursory knowledge of Java and Python and that’s it. Do I need to install the compiler that came with the text after all? Where can I find a list of the headers used by the MinGW C++ compiler for different data? Here is the code I was trying to run…

int main() {
    string s1;
    string s2;

    s1 = "This is a test";
    s2 = "and so is this.";

    cout << s1;
    cout << s2;

    return 0;
}

Any help and insight into the general way headers work would be much appreciated. I can’t seem to make sense out of the MinGW documentation.

  • 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-05-21T18:43:59+00:00Added an answer on May 21, 2026 at 6:43 pm

    You better read the MinGW documentation and samples. String manipulation can be a bit different from one compiler to other.

    You can also install visual studio express, it’s free.

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

Sidebar

Related Questions

I've spent a decent amount of time trying to hunt down a simple way
I've spent a considerable amount of time trying to track this one down. I've
I'm trying to get a report down from the 20+ minute run time and
I'm currently trying to simulate holding a key down for a specified time. The
I'm working on a bug where code is not always being executed before an
I'm trying to build an Ad system. Some time before i wanted to build
I am new to AVR, but i have programmed PICs before, only this time
My app has been working fine the whole time I've been developing it, but
I'm working with Doctrine2 for the first time, but I think this question is
I am having a hard time tracking this down since the profiler keeps crashing

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.