| |
thread by: techie929 |
last post Feb 21 '10 by: weaknessforcats
I have to display nodes in bst in the below given format:
I have insesrted the nodes properly and able to display it using preorder.
if the nodes are F,D,E...the output should come as:
F
+ - - D
+ - - NULL
\ - - E
|
thread by: TQ Pham |
last post Jul 19 '05 by: Victor Bazarov
Hi,
How can you disable finstrument-functions option for included files ?
For example:
I have A.cxx, which include B.hxx
I want to compile A with -finstrument-functions, but it always do the
same with all the functions which have declaration, and implementation
in B (some short, inline functions, for example).
|
thread by: Alex Vinokur |
last post Jul 19 '05 by: Alex Vinokur
C++ Simulator of a Nondeterministic Turing Machine has been added at :
* http://alexvn.freeservers.com/s1/turing.html
* http://sourceforge.net/projects/turing-machine/
Currently those sites contain C++ Simulators for both Deterministic and Nondeterministic Turing Machines.
The Simulators contain examples of Turing Machines as well.
|
thread by: Conrad Weyns |
last post Jul 22 '05 by: Conrad Weyns
vc7.1 has no problem with the following snippet:
template <typename T> class TTest
{
std::list<T*>::iterator m_It;
};
but metrowerks codewarrior 9.2 kicks my butt and online Comeau confirms:
1. MW:
|
thread by: M?rio Amado Alves |
last post Jul 22 '05 by: M?rio Amado Alves
Will you help an outsider trying to trace the current state of
persistent object technology?
"I expect that there will be persistent object stores with
STL-conforming interfaces fitting into the STL framework within the
next year."
--Alexander Stepanov, 1995
Has this happened? (In 1996 or another year.)
|
thread by: Jim Strathmeyer |
last post Jul 22 '05 by: John Harrison
So I'm trying to implement a singleton template class, but I'm getting a
confusing 'undefined reference' when it tries to link. Here's the code
and g++'s output. Any help?
// singleton.h
template <class T>
class Singleton : public T {
public:
static T * Instance();
|
thread by: Timothy Madden |
last post Jul 22 '05 by: Timothy Madden
I know I can call destructors if I want (probably with their fully qualified
name).
However I don't see the point here. When and where would I want to call
destructors ?
Destructors are not designed to destruct one object twice and if I call the
destructor myself then it will get called a second time when the object goes
out of scope (or...
|
| |
thread by: GRoll21 |
last post Nov 2 '05 by: John Harrison
I have a program here that asks the number of students surveyed. then
it will ask how many movies each student has watched. After thats been
collected it does functions to find the average, median, and mode.
The problem I am having is getting it to return the mode. I have a
function set up but I'm not sure if it will correctly return the...
|
thread by: kimimaro |
last post Nov 14 '05 by: Barry Schwarz
hi I wonder if array can be work along with structure?
Below are the declaration of my structure
struct employee{
char ID;
char Name;
char Department;
|
thread by: Marlene Stebbins |
last post Nov 14 '05 by: pete
I am experimenting with function pointers. Unfortunately, my C book has
nothing on function pointers as function parameters. I want to pass a
pointer to ff() to f() with the result that f() prints the return value
of ff(). The code below seems to work, but I would appreciate your
comments. Have I got it right? Does the function name "decay" to...
|
thread by: gatorbeaver |
last post Apr 17 '06 by: Phlip
I am trying to upgrade an application that is currently using Xerces
and is only parsing XML files that are on the local host. I want to
add the ability to parse XML files that are located on a web-server.
This is being done using C++ on the Fedora Core 4 OS. I have seen many
examples but have not been able to get any to work. Can someone...
|
thread by: appi |
last post Jun 29 '06 by: Joe Van Dyk
I am learning datastructure using c in my syllabus and i want to learn
about datastructure, c++, java, oracle, web design, html,c#.
SO I AM REQUESTING YOU THAT PLEASE SEND ME SOME INFORMATION
ABOUT THE ABOVE MENTIONED TOPICS.
AND ALSO SEND ME SOME INFORMATION ABOUT INTERNET.
YOURS FAITHFULLY
|
thread by: tgiri |
last post Apr 27 '07 by: JosAH
hello, this is gireesh.
can u pls give me solution to this question.
PLATFORM : C language
Q. What are the input arguments passed to the printf() function?
actually i found in header file i.e;
extern int printf(const *char, ....);
what is the meaning of .... in printf function?
pls give me reply as early as possible.
|
thread by: curious2007 |
last post Jun 28 '07 by: curious2007
I am trying to get rid of errors in a vector template. This is one of the errors.
In vector.hpp the vector template has been declared as follows:
template <class V, class I=int, class S=FullArray<V> > class Vector: public Array<V, I, S>
And in array.cpp I have implemented size() and MinIndex() functions. So when I try to use these in...
|
thread by: =?gb2312?B?wfXquw==?= |
last post Aug 10 '07 by:
Hi, folks,
I am trying to make my copy constructor explicit, but when the
scenario below comes into being, weird things happen.
Here is the code snippet:
#include <iostream>
using namespace std;
|
| |
thread by: Ken JS |
last post Feb 24 '08 by: Ken JS
Is there a way to particular select a point on a screen???
Eg. There is a (back) button on the program, I want to write a C/C++ program to just select on that button.
Lot of help =)
|
thread by: Lambda |
last post Oct 30 '08 by: Timothy Madden
I'd like to load a lot of data into a hashtable,
when the memory is used up, I'll write the data to a file.
I'm trying to use std::tr1::unordered_map to implement that.
My question is if I insert too many data into the map, what will
happen?
Does unordered_map need continuous memory like vector?
How to detect that there is no free memory...
|
thread by: kumar |
last post Jun 27 '08 by: Flash Gordon
hi
i want to know where & how the C variables gets stored
i mean like volatile , pointer and string variables gets stored ,
whether it is on stack or some other places
if is there any clear document , plz suggest the link
|
thread by: charmeda103 |
last post Nov 29 '08 by: JosAH
I am writing a program that deals with structs.
i need help with structs this is my first time dealing with them. can you give me some examples that would be helpful.
my program is supposed to have to read data from two input files.
any inforamtion on stucts will be helpful.
thank
you
|
thread by: sljackson36 |
last post Feb 5 '14 by: Banfa
I am trying to design a program that uses a 1 Hz external clock to create a digital clock. The clock must display the hours and minutes in this format, HH:MM, using the 24 hour military format. I have to assume the output is four 7-Segment displays. I have to use a counter to cause an interrupt every 60 seconds, I need to provide a C...
|
thread by: Aries12345 |
last post Apr 19 '15 by: Luuk
How can I lock a folder using c++ turbo.
When someone tries to delete,access,edit it the computer must ask for the password.
Note:No one should be able to delete or edit it without the password. I need to store important files from others accessing it. And also the files inside the folder should not appear when searching in the search bar,and if...
|
thread by: bart59 |
last post Jul 19 '05 by: Jack Klein
Hello,
I am building a GUI, I would like to use Fox,
do you know if the foxtoolkit can work on palm os, win CE or linux for handle PC?
I know wxWindows has a new embedded version, but fox looks better for me...
thanks a lot
Bart
|
thread by: Milk |
last post Jul 22 '05 by: Kevin Goodsell
Hi,
i got a program working half part and my program is suppose to do 4*4 matrix
can any one help me to check it? i dunno whic part i did wrong thx~~
Here is the program :::::
.data
arrayA: .space 1024
arrayB: .space 1024
arrayC: .space 1024
str: .asciiz " "
|
| |
thread by: Steven T. Hatton |
last post Jul 22 '05 by: Steven T. Hatton
I've made no secret of the fact that I really dislike the C preprocessor in
C++. No aspect of the language has caused me more trouble. No aspect of
the language has cause more code I've read to be difficult to understand.
I've described it as GOTO's on steroids, and that's what it is!.
One argument against abolishing it it that it is useful...
|
thread by: Squignibbler |
last post Jul 23 '05 by: Squignibbler
Hi all,
I have a question regarding the C++ programming language
regarding the nature of the relationship between pointers and arrays.
If the statement MyArray is functionally identical to
*(MyArray+x), what statement is functionally identical to
MyArray?
I ask this question because when I create a dynamic array with one
|