473,543 Members | 1,994 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
1,658
thread by: Marcel | last post Jan 24 '06 by: Marcel
Can someone explain me what an interface in C++ is. Is that just about the data encapsulating capability of C++ classes? Marcel
7
1,658
thread by: xllx.relient.xllx | last post Jul 2 '06 by: Andrey Tarasevich
Q1: What happens when you apply parenthesis to the class type name? Is the constructor for the class called and returns an object?, or what? in main...: MyClass(); // end
7
1,658
thread by: atomik.fungus | last post Jul 25 '06 by: Howard
Hi, im having problems compiling some code, and i dont understand why. I've made a Matrix class for any kind of data and now im implementing an inherited class with all the mathematical stuff (MMatrix) (determinants and so on). The data and the number of rows and columns are declared in the base clase as protected. When i ask the functions of...
5
1,658
thread by: hkhellhkhell | last post Sep 30 '06 by: Keith Thompson
How can i declare an array in c#? Joy_chow@hotmail.com
3
1,658
thread by: Greg | last post Oct 11 '06 by: Daniel T.
How do I inherit or templatise from a continer class, without having to reinterate (type) the member functions ?
1
1,658
thread by: jitender164 | last post Jan 23 '07 by: horace1
hello all pls help me to explore the diffrence b/w c and c++ by using a program example code that can illustrate the diffrence between the structure programing and object oriented programing. thanks
3
1,658
thread by: lumpybanana247 | last post Apr 29 '07 by: ilikepython
This code is C++ and works fine. But does anybody know how to sum it up so i dont have to put the same thing in there over and over again? Your answers are greatly apreiciated. --Nate (the code is in quotes)
3
1,658
thread by: Dave2020 | last post May 10 '07 by: ilikepython
Im new to C++ and having a bit of a problem, I have a program, written in Visual C++, designed to take in data and then let a user search through it but while it lets the user search it never comes back with my error message if the search isnt successful { char search_town; int result = 0; int sub = 0; bool custfound = false;
3
1,658
thread by: ashu | last post Jul 20 '07 by: Kenneth Brody
i want to create a program that checks if file is readable and writable ? any help will be great.
2
1,658
thread by: tdog | last post Aug 23 '07 by: Default User
I am reading in io input using 'cin' in a do-while loop. But the error bit apparenlty keeps getting set, leaving the console in a "frozen" state until I hit enter twice. How do I reset this error bit? Thanks.
6
1,658
thread by: jason | last post Nov 10 '07 by: jason
Hello, I have a question about what kind of datastructure to use. I'm reading collumn based data in the form of: 10\t12\t9\t11\n 24\t11\t4\t10\n ..... I now have a structure which allows me to access the data like this: x->row.coll.value.d;
5
1,658
thread by: Adrian | last post Nov 28 '07 by: James Kanze
I remember from C that you are not supposed to access different members of a union at the same time? It seems to say the same thing in the C++ standard (9.5.1) "In a union, at most one of the data members can be active at any time, that is, the value of at most one of the data members can be stored in a union at any time." What does it...
4
1,658
thread by: Tiago | last post Feb 13 '08 by: pastbin
Hello Experts! I´m searching sites,tutorials or other, about Virtual Functions! Any person can hel me? Thank´s! Bye!
1
1,658
thread by: Bruintje Beer | last post Feb 20 '08 by: AnonMail2005
Hi, Is there a C++ alternative for the Java Castor Project (Java thirdparty tool to create xml files from Java Objects and vice versa) John
4
1,658
thread by: nabil035 | last post May 5 '08 by: weaknessforcats
I have COM server written in VC++ 6 And I'm migrating this aplication to VS2005, i've reach a good level in my project but now I have this famous erros LNK2005. I know the cause :( #include) calls the same file 2 times but I should let the code without changes cuz it's not mine so if you can give me an idea to resolve this problem just...
1
1,658
thread by: dkornyushin | last post Jun 27 '08 by: kasthurirangan.balaji
I have an huge application written using C and Pro/C. I want to write C ++ function which will access oracle using OCCI. Can I reuse Pro/C connection?
8
1,658
thread by: fabian.lim | last post Sep 10 '08 by: fabian.lim
Hi, I have a question on constant variables. In the following code snippet, I have a function assign() that takes in an iterator to the private variable v, the number of stuff to assign (int n), and the information to assign (a const pointer to a class object Vector<TYPE>. According to the arrow below, I put a const keyword in the...
3
1,658
thread by: Ravi | last post Sep 12 '08 by: Juha Nieminen
Is this the correct way to think of "base class"? The "base class" is a class from which other classes are derived. The "base class" will never be derived from another class.
1
1,658
thread by: beginers of c | last post Oct 5 '08 by: Richard Heathfield
What is teh actual use of declaring FUNCTIONS globally for eg #include<stdio.h> int add() // add function void main() { }
0
1,658
thread by: sfsfloan.cn | last post Oct 18 '08 by: sfsfloan.cn
Enjoy total privacy on the Internet nobody can spy on you. ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦~ Full SSL Support ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦~ YouTube Proxy ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦~ FAcebook Proxy ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦~ MySpace Proxy ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦~ UK Based Proxy http://sfsfloan.cn/ http://sfsfloan.net/
10
1,657
thread by: Hattuari | last post Jul 22 '05 by: Mike Wahler
On page 32 of TC++PL SE is an example of a complex class as follows: class complex { double re, im; public: complex(double r, double i){re=r; im=i;} //... }; On page 262 of TC++PL SE is an example of a complex class as follows:
1
1,657
thread by: Mark | last post Jul 22 '05 by: SaltPeter
Which MFC runtime dll is the CArchive object in? I have a situation where the CArchive constructor gpf's when using a certain set of MFC*.dll and msvc*.dll. Trying to narrow down which file is getting called.
8
1,657
thread by: JKop | last post Jul 22 '05 by: Ioannis Vranos
Having decided not to use macros at all in designing my reseatable references, and having looked through the list of overloadable operators and combinations of them, I've settled on the following syntax: Reseat >> kref = moon; Where "kref" is the reseatable reference and "moon" is the new object it'll refer to. Overall, once a...
2
1,657
thread by: Martin Magnusson | last post Jul 22 '05 by: Jonathan Mcdougall
I'm including a library in my program that I have wrapped in a namespace, since it contains typdefes that clash with my own. Like this: namespace OPT{ #include "OPT/NLP.h" #include "OPT/NLF.h" } When compiling, I get a number of undefined references to code in
3
1,657
thread by: Paul | last post Jul 22 '05 by: Paul
Situation: Running a MPI program that segfaults. Cannot open program up in debugger due to nature of MPI system. Using g++ 3.2.3. Goal: Find out which line it segfaults on; ideally which variable name causes the error. Some kind of error message akin to VC7's "stack corrupted around varname" message would be very nice.

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.