473,543 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
2
2,415
thread by: Kelvin | last post Jul 23 '05 by: Ioannis Vranos
In Visual Studio we can limit the size of an enum by doing: enum Weekday : char { MON, TUE, WED; }; is that in the stardard C++ ? or it's just an extension from microsoft?
2
1,145
thread by: BigMan | last post Jul 23 '05 by: BigMan
Why g++ 2.95.4 does no compile the code at the end of the message? I think the code is perfectly standard since 2 other compilers did compile it (Microsoft C++ compiler that ships with MS VS.NET & Comeau online compiler). If the problem is with the gnu compiler (version 2.95.4), is there any workaround? If there is no workaround, what version...
2
1,013
thread by: jstevanus | last post Jul 23 '05 by: Karl Heinz Buchegger
I am getting an error from my Print() function. It has something to do with the way I'm trying to output the data from my pointer. Any help would be greatly appreciated. Here is the code: void SortedType::Print() { ofstream outFile; outFile.open("out.data");
2
1,494
thread by: JH Trauntvein | last post Jul 23 '05 by: Stefan Strasser
I have something like the following code that I am trying to convert from vs studio .net to g++ under linux: #include <sstream> #include <iostream> void foo(std::istream &in) { int i, j;
2
933
thread by: Turrle | last post Jul 23 '05 by: David White
How can i make a class with with one overloaded function declared as friend ? When tried but unsuccessful, because I don't know anything clear about this overloaded function. Thanks
2
302
thread by: Turrle | last post Jul 23 '05 by: Ioannis Vranos
I want to learn windows programming, I looked through goups but didn't find where they were. Can you help me ? Thank you PS Please post something, I promise I will be back after a few weeks Send me emails vavaturtle@yahoo.co.jp Write something bout you so that I can recognize WHO YOU ARE, I don't
2
2,018
thread by: niranjan.tulpule | last post Jul 23 '05 by: Ioannis Vranos
I know this doesn't exactly come under comp.lang.c++, but is anyone aware of any RSS feed collection API for C++? I want to build my own RSS feed collector and require the APIs for this purpose. Thanks, Niranjan
2
375
thread by: invincible | last post Jul 23 '05 by: Thomas Matthews
hi I have a cpp application , which is getting compiled but while linking I am getting error message " first defined here". error line is pointing to class constructor clDisplay::clDisplay() {} -------->>>>> error pointing here.
2
2,687
thread by: qfel | last post Jul 23 '05 by: Howard Hinnant
If new pair is inserted into std::map through operator, is default value for build-in types equal to 0? eg. std::map<std::string,bool> m; bool b=m; will b equal to false, or will it contain undefined value?
2
1,436
thread by: rajkumar | last post Jul 23 '05 by: Victor Bazarov
hey all While maintaining some legacy code I came across such a class class Point { double coordinate; }; This class doesn't have any virtual functions and is aligned by
2
1,069
thread by: VikingHun | last post Jul 23 '05 by: Malte Starostik
Hi all;) I recently thought about making a program that would output all possible orders that groups of numbers, characters etc. of different sizes could have.(eg. 1,2,3 1,3,2 2,1,3 2,3,1 3,1,2 3,2,1) I racked my brain, but couldn't find a solution. Can anyone help me?
2
1,318
thread by: Daniel Schüle | last post Jul 23 '05 by: Victor Bazarov
Hi all! given the following code #include <iostream> using std::cout; using std::endl; struct X
2
3,207
thread by: Sagar Choudhary | last post Jul 23 '05 by: Thomas Matthews
Is there any exception related to disk space ? If not how else can we check the availability of the disk space in a c++ program. I know ostream helps a bit. When we try to open a file when there's no disk space ostream::rdstate() returns badbit.
2
1,624
thread by: Bob Jenkins | last post Jul 23 '05 by: Thomas Matthews
Set A={y1,y2,y3} How can i find set B={y2-y1,y3-y2,y3-y1} in a fast way? Thanks! -Bob
2
2,274
thread by: jsnX | last post Jul 23 '05 by: John Carson
i want a function object that is a) initialized with an STL container foo b) will search foo for an object of type foo::value_type here is my code: ======================================================================== /* if we have a big list of things, and we went to check it * over and over for this or that thing, then we can use...
2
1,105
thread by: brentritchie | last post Jul 23 '05 by: Brent Ritchie
Hello everyone, I have this problem, I want to declare an interface class and have it inherit from other interfaces. But when I define a concrete class I want to substitute implementations of interfaces instead of the interfaces themselves; In much the same way I can use a refrence to an interface within a class but point to any object that...
2
337
thread by: M Maloney | last post Jul 23 '05 by: M Maloney
Hey all, I was wondering if anyone could help me with this problem I have: Given a text file like this: 8 =ABC 18.00 Dr Who: Underworld 18.30 Collectors 19.00 News
2
1,658
thread by: pc | last post Jul 23 '05 by: Allan Bruce
Hi, Currently we are using a CDwordArray type array to store some DWORD data. This data is dynamic and we need to continuously grow the array size using SetAtGrow() . Due to performance reasons, we are planning to try out other possible choices (Cmap,Clist,STL.....). We want to use the Container that has the best performance in terms of...
2
1,674
thread by: wongjoekmeu | last post Jul 23 '05 by: Howard
Hello all, I have the following problem, maybe someone can help me out. I have a template class A which has a protected member Aint. Now I have template class B which has as private member an instance of A. Now to get the value of Aint I decided to create a friend function and declare them in both classes. But I cant get this program to...
2
1,175
thread by: Pramod Sharma | last post Jul 23 '05 by: yinquan
I am trying to call function pointer using class pointer and compiler is not allowing it. //=================================================== #include <stdio.h> class TestClass { public: int func1(int a) { printf("\nTestClass:func1 a = %d\n", a);
2
1,513
thread by: Neil Hindry | last post Jul 23 '05 by: Ioannis Vranos
I wonder if you can help me. I am looking at starting C++ programming and I am looking for a free IDE & compiler. I heard the Quincy IDE was quite good. Does anyone use Quincy IDE? Is it good? Does anyone know of a free C++ compiler that will work with Quincy IDE? Does anyone know of any other free C++ IDE compilers (I don't mind if the
2
1,246
thread by: Christian Christmann | last post Jul 23 '05 by: Dave Rahardja
Hi, I was asked to remove the void*'s from an old project. My idea was to replace them with templates. Is this a good idea? How would you proceed? Thanks Chris
2
1,134
thread by: Jianli Shen | last post Jul 23 '05 by: Victor Bazarov
template is this: template <class Data> class FastQueue{ public: FastQueue(int size){ } }
2
2,427
thread by: amir samir | last post Jul 23 '05 by: Victor Bazarov
hiii i need help i need to learn and/or code for audio capture from a mic
2
1,240
thread by: Xin Wang | last post Jul 23 '05 by: Sumit Rajan
Hi, I tried to declare an iterator inside a template class, but the compiler regards list<State>::iterator as an expression, instead of an iterator. #include <list> template <class State> class Problem {

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.