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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:29:18+00:00 2026-06-04T17:29:18+00:00

I have the following #include in my program which I am trying to change

  • 0

I have the following #include in my program which I am trying to change from a console app to a GUI app. I have to code this by hand. The problem is my program can’t import the string header. Why is that?

#ifndef CATALOG_H_
#define CATALOG_H_
#include <string>


#include "StudentRepository.h"

#include "Student.h"


using namespace std;

class Catalog{
private:
    StudentRepository *studRepo;

public:
    Catalog(StudentRepository *stre):studRepo(stre){};
    ~Catalog();
    void addNewStudent(string name, int id, int group);
    void removeStudent(string name);
    void editStudent(string,int,int);
    Student seachStudent(string name);
    void printStudents();
          .
          .
          .

};

#endif /* CATALOG_H_ */

ERROR:

Description Resource    Path    Location    Type
Type 'string' could not be resolved Catalog.h   /L_6-8_GUI  line 25 Semantic Error

PS: I use Eclipse with the QT addon.

  • 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-04T17:29:20+00:00Added an answer on June 4, 2026 at 5:29 pm

    write std::string, not just string.

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

Sidebar

Related Questions

I have the following c program which launches a Gtk Program on ubuntu: #include
I have the following trivial Lua program which I copied from the book Programming
The problem I have is illustrated in the following code. #include <iostream> #define X
According to this site , I have done the following program which sorts strings.
I have the following program in which I'm trying to understand the functioning of
If I have the following basic C++ program: #include <iostream> using namespace std; class
I have the following code: #include<iostream> using namespace std; typedef void (*HandlerFunc)(int, int); HandlerFunc
I have the following code: #include <stdio.h> #include <pthread.h> #define THREAD_CNT 10 #define ITER
I have the following code: #include <iostream> #define BOOST_TEST_MODULE my test #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE(
I have the following problem #include <iostream> #include <stdio.h> #include <string.h> int main (){

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.