| |
thread by: anand |
last post Feb 28 '06 by: Ben Pfaff
***********************************************************************************************************
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
double a,b,c,fa,fb,fc,err;
int count;
|
thread by: Ninan |
last post Feb 28 '06 by: Daniel T.
I am skipping a couple of steps in betweens, like inserting into a list
of ints and extracting from it. But this is the gist of what I am
trying to do
class A {
};
A *a = new A();
|
thread by: RG |
last post Feb 28 '06 by: Gregory Pietsch
Greetings friends,
This semester I have started a course in C programming. I was moving
along fine until I reached to the topic of loops (feeling embarrassed
among you elite programmers). My prof. would post program questions
and the solutions online. For practice I would try to do the problems.
I would reach to a certain point in the...
|
thread by: sudharsan |
last post Feb 28 '06 by: CBFalconer
please gimme the logic to merge two binary search trees?I mean which
node has to be the root node of the new binary tree??
Thanks in advance
|
thread by: Plissken.s |
last post Feb 27 '06 by: w_abdelhady
Hi,
Is it possible to over load a function of a class with const input
parameter ?
class A {
public:
void aFunc(const B& b);
void aFunc(B& b);
}
|
thread by: anand |
last post Feb 27 '06 by: Keith Thompson
Dear all,
I am trying to "find the area under the curve f(x)=sin(x)/x for x=1 to
3"
a) Use the trapezoidal rule method. Prove that your trapezoidal rule
method is second order
accurate (using he program)
b) Use the Romberg method. Compare the grid size neccessary to get
convergence to within 1e-8 using TR (part a) versus the Romberg...
|
thread by: JustSomeGuy |
last post Feb 27 '06 by: Victor Bazarov
I have an 8 bit byte in which two bits are used and the remaining 6 are
unused.
#pragma pack(1)
typedef struct
{
unsigned int item_len;
unsigned char presentationContextID;
unsigned char unused : 6;
unsigned char command : 1;
|
| |
thread by: Srinivas Mudireddy |
last post Feb 27 '06 by: Micah Cowan
Hi,
I am facing a problem with trying to conditionally compile inside a
macro. I have a macro
#define SET_VAL(x, y) ((x) = *(y))
But the problem is y can be NULL in which case I want to set x to 0. So
I modified macro to
#define SET_VAL(x, y)
|
thread by: julianlzb87 |
last post Feb 27 '06 by: julianlzb87
Illuminated manuscripts, 13 volumes
http://ptlslzb87.blogspot.com/
|
thread by: openacc.net |
last post Feb 27 '06 by: Default User
I have created a poll about
There are 3 most popular web browsers- IE, Netscape & Firefox.
Sometime, website format could distort a little bit. So, I think it is
important to know which web browsor is most popular and the resaon why
you like that web browsor?
You are also welcome to provide other good web browsor's information.
URL:
|
thread by: Satpreet |
last post Feb 27 '06 by: Michael Mair
I'm looking to simulate the behavior of a digital hardware arithmetic
block in a C/C++ program.
I was just wondering if there are any libraries (with datatypes and
overloaded operators etc.) available for arithmetic operations on
Fixed/Block-Floating Point variables ??
Alternatively could anyone throw me a pointer to sample code if...
|
thread by: Satpreet |
last post Feb 27 '06 by: Satpreet
I'm looking to simulate the behavior of a digital hardware arithmetic
block in a C/C++ program.
I was just wondering if there are any libraries (with datatypes and
overloaded operators etc.) available for arithmetic operations on
(variable lenght) Fixed/Block-Floating Point variables ??
Alternatively could anyone throw me a pointer to...
|
thread by: Konrad |
last post Feb 27 '06 by: Konrad
Hello,
Stupid question, but I just don't remember, here is what I want to do:
#ifdef _UNICODE
#define ONLY_UNICODE(t) t
#else
#define ONLY_UNICODE(t)
#endif
You know what it does, but I'm not sure, if I actually can use #defines
|
thread by: cdg |
last post Feb 27 '06 by: Neil Cerutti
Could anyone tell me how to write a loop for an array, that would have to
check each iteration for duplications of previous entered values. So, the
exact number of loops is not known, but the total number of array elments is
known.
Example: array size - array
(some type of loop statement)
{
array "equal to" or "not equal to" a variable....
|
thread by: Tomás |
last post Feb 27 '06 by: Alf P. Steinbach
I recently started back programming in C++, having taken a break of well
over a year. Before I stopped, I considered myself to be an expert.
When I started back, things started coming back to me day by day. When I
first opened a source code file it looked like gibrish!
Now about two weeks later, I just about back to the standard I was at....
|
| |
thread by: Benjamin GILLET |
last post Feb 27 '06 by: Ben Pope
Dear all,
I have coded a class called Object with a member method called
getClassName().
Here is the code of this class:
#include <iostream>
|
thread by: Roka |
last post Feb 27 '06 by: Roka
Hi all.
I'm reading a program which used the sentence below:
#define NUM_THREADS 10
... ...
int rand_num;
rand_num = 1+ (int) (9.0 * rand() / (RAND_MAX + 1.0));
sleep(rand_num);
... ...
(The program is long so I used a part of it.)
|
thread by: Anjo Gasa |
last post Feb 27 '06 by: Victor Bazarov
I have two classes:
// B.h
class B
{
friend class A;
//...
private:
static float rate;
}
|
thread by: Ami |
last post Feb 27 '06 by: Tomás
Hi All,
I want to find at runtime for given class object, if it is a object
of given class. For example:
I have declared "ClassA" and i have created its instance "instA". Now
at run time, how can i detect, if "instA" is object of "ClassA".
Something like "is" operator in Delphi or C#. (e.g if( instA is ClassA)
)
Thanks in advacne.
Regards
|
thread by: Allerdyce.John |
last post Feb 27 '06 by: Tomás
I have a function in a class:
void A::aFunction (B& b) {
// do something
....
}
void A::anotherFunction() {
// need a reference of B again.
}
|
thread by: jack |
last post Feb 27 '06 by: Chris McDonald
Hi guys,
I am working on a project which requires an implementation of discrete
event simulation in C using linked lists. I would greatly appreciate if
someone could provide with some sources on how to approach DES. Please
help me out.
Thanks,
Jack
|
thread by: Joseph |
last post Feb 27 '06 by: JE
Hi Gurus,
I got a problem, I am trying to port a win32 prog to Linux. It was all
one big program.cpp and I have to split the functions into separate
init_pxi6052e.cpp,func1.cpp and func2.cpp in order to compile them
separately and debug them. In both cpp file I have to include a common
header file lets call it here as "datatype.h" which is...
|
thread by: dex |
last post Feb 27 '06 by: Rolf Magnus
Hi,
Is it possible to write driver files in C++? if not why...
thanks,
|
| |
thread by: Kio |
last post Feb 27 '06 by: Michiel.Salters
Hi,
For example:
1 __int64 fib4(__int64 n)
2 {
3 if ((n==1) || (n==2)) return 1;
4 else return (fib(n-1)+fib(n-2));
5 }
|
thread by: thinktwice |
last post Feb 27 '06 by: Jeff Flinn
here is what i what to do;
//pesudo code
iter = container.begin();
while (iter != container.end())
{
myclass *obj =my_cast (*iter);
obj->func(arg1, arg2);
}
i want to simplify those code just like this:
|