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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:26:53+00:00 2026-05-27T21:26:53+00:00

I am trying my hands on sample codes from a book, and so I

  • 0

I am trying my hands on sample codes from a book, and so I am not entirely sure what I may have wrong in the header file I have so far.

I keep getting the following error messages.

Error 2 error C2061: syntax error : identifier ‘streambuf’
Error 1 error C2504: ‘ios’ : base class undefined
Error 5 IntelliSense: identifier “streambuf” is undefined

// StdAfx.h HEADER FILE 
**************************
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once
#include <iostream>
#include <strstream>
#include <iomanip>
#include <ios>
#include <stdio.h>
#include <tchar.h>
#include "targetver.h"


// Conios HEADER FILE 
**************************

#include "Stdafx.h"



class Conios :virtual public ios{
protected:
public:

    Conios(void);
    ~Conios(void);
     Conios(streambuf* Buffer);
};
  • 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-27T21:26:53+00:00Added an answer on May 27, 2026 at 9:26 pm

    ios is in the std-namespace. So either use use namespace std; or extend from std::ios instead of just ios.

    If you are using use namespace use it only in your implementation-files like *.cpp or *.cxx, do not write use namespace ... your header files – ever!.

    And the same goes for streambuf.

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

Sidebar

Related Questions

So I'm trying my hands at a css menu and I have a simple
Lately I have been trying my hands on Eclipse IDE for java development. I
I have a mystery on my hands. I am trying to learn managed C++
I'm trying to get data from a webpage that serves a XML file periodically
I'm trying my hands at a simple Chrome Extension, but am running into a
So I have been looking every where, and so far i haven't been able
I am trying to produce a proof of concept shipping logging from Log4J through
I'm trying to implement a simple priority queue from array of queues. I'm trying
I'm trying to unmarshal a simple xml document from a public api from Convio.
Edit1 I am not sure if the title is best for the problem so

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.