| |
thread by: Tomás |
last post Mar 3 '06 by: Victor Bazarov
When you have a constant integral in a program, like the population of a
town, how do you declare it? A const variable or an enum?
Up until now I've always used variables, e.g.:
unsigned const population_dublin = 8274816;
I'm flipping through pages of Bjarne's book though at the moment, and
enum's seem pretty handy, as in:
|
thread by: Tom Smith |
last post Mar 3 '06 by: Tom Smith
I'm having difficulty with overloading ==, and it's making my
brain melt - can you help...? What I want to have is:
1) A base class A with virtual operator== defined (no problem)
2) A class B derived from A with operator== overridden (again, no problem)
3) Pointers A* b1, b2 which may actually point to instances of B, where I
can call...
|
thread by: denis |
last post Mar 3 '06 by: tragomaskhalos
Hi there,
I got a tough interview questions lately, and I would like to hear
your opinion:
An array of N chars is given
Write an efficient algorithm to find all the repeating substring with a
minimal size
|
thread by: junw2000 |
last post Mar 3 '06 by: Phlip
For example,
int i = 5;
int &r = i;
Are i and r two different variables?
Or do i and r occupy the same memory space? that means they are the
same variable?
Thanks.
|
thread by: hfs2 |
last post Mar 3 '06 by: pemo
Years ago we used to produce production flow diagrams using a C to flow
diagram
tool. So much better than "drawing" in our environment. I can't
remember the name
of it. C First? Any old C programmers around that remember this
product?
Is there a code to flow product out there now?
|
thread by: denis |
last post Mar 3 '06 by: Tomás
What are the benefits of using const functions?
How does the compiler interpret const functions?
Thanks, Denis
|
thread by: denis |
last post Mar 3 '06 by: loufoque
Hi there,
Whats more efficient and why ....
int func(int x) {
return x*2;
}
or
|
| |
thread by: seema |
last post Mar 3 '06 by: Simon Elliott
hi all ,
I am new to C++ programming. Can some body explain reason for this
compilation error,
.../inc/polecache.h", line 339: error #2322: object of abstract class
type
"CPoleCache::CCacheViewImpl" is not allowed:
|
thread by: cesco |
last post Mar 3 '06 by: roberts.noah
Hi,
I'm using the boost library program_options for parsing the command
line given to my program as described in the class Parameter:
// Main.cpp
#include "Parameter.h"
using namespace std;
int main(int ac, char* av)
|
thread by: Donkeylung |
last post Mar 3 '06 by: Neil Cerutti
I have a base class which has a protected member:
map<mstring,mstring>
mstring is a derived class from std::string, which includes some
functionality to cope with MFC.
It works fine in the base class, but when I try to use it in a derived
class, it gives me an error message.
C:\Program Files\Microsoft Visual Studio .NET...
|
thread by: Nithya |
last post Mar 3 '06 by: Casper H.S. Dik
Hi,
I encountered a problem when compiling multiple files with make file on
solaris. The program uses a thrid party library file(.a) and when
linking it to the program with -l option i get a error stating:
ld: elf error: file library.a(lib_obj.o): elf_strptr: Request error: no
string table
ld: elf error: file library.a: elf_begin: Format...
|
thread by: Jean-pierre Martineau |
last post Mar 3 '06 by: Imre Palik
how apply design patterns to c ?
|
thread by: utab |
last post Mar 3 '06 by: Victor Bazarov
Dear All,
I have file like:
$ -----------------------
$ file management section
$ -----------------------
$ -------------------------
$ executive control section
$ -------------------------
|
thread by: Angel Tsankov |
last post Mar 3 '06 by: mlimber
Does anyone know of a port of getopt and getopt_long for Windows, especially one that compiles and links with VC++?
|
thread by: Ivan Mascovich |
last post Mar 3 '06 by: Victor Bazarov
Previous posts (and compilers) confirm that
class X
{
friend void Y() ;
} ;
does not match
namespace
|
| |
thread by: Alex |
last post Mar 3 '06 by: Aleksander Beluga
Hello,
I'm starting to spam this group..I need a function that is equal to
this function in JAVA:
System.currentTimeMillis();
that returns the difference, measured in milliseconds, between the
current time and midnight, January 1, 1970 UTC. (output is like this:
1141375007171 )
|
thread by: Toon Knapen |
last post Mar 3 '06 by: Toon Knapen
Following small test-program (see below) compiles fine with multiple
versionS of gcc, icc, xlC, aCC, pathscale but not with the PGI compiler.
The PGI 6.1 compiler tells me following:
<error>
"test.cpp", line 12: error: more than one operator "<<" matches these
operands:
function "std::operator<<(std::basic_ostream<char,...
|
thread by: pedagani |
last post Mar 3 '06 by: Dietmar Kuehl
Dear comp.lang.c++,
I'm interested in knowing the general techniques used to handle large
binary files (>10GB) efficiently such as tweaking with filebuf , etc.
Reading chunk by chunk seems to be popular choice even though it
complicates the algorithm implementation. I am interested in knowing
when & what to apply in frequently encoutered...
|
thread by: vurdlak |
last post Mar 3 '06 by: vurdlak
Learn C programming from these daily lessons I found. They're eleven
days ahead of you already so get busy...
http://www.visualcmaniac.com
|
thread by: barnali_apiit |
last post Mar 3 '06 by: Mark McIntyre
Hi all ,i need algorithm and source code for Minimum spanning tree(MST)
please tell me algorithm and code for it
|
thread by: mahesh |
last post Mar 3 '06 by: Gavin Deane
Hi friend,
I am in deep trouble,
I need to change the string in following format " 1.55576+2" in the
floating point notation.
that is i should have 155.576 as my output.
Please suggest some efficient way.
Looking forward to get good solution to my problem.
Raj
|
thread by: plmanikandan |
last post Mar 3 '06 by: Alf P. Steinbach
Is static constructor available in C++?
Can anybody explain me about private and static constructors in c++
Rgds,
Mani
|
thread by: # include |
last post Mar 3 '06 by: robin liu
what is the ((((return any no;))) in the main mean plz
Ex.
int main()
{
;
;
;
return ??;
|
| |
thread by: VisionQuest |
last post Mar 3 '06 by: Michael Mair
FREE newsletter from recruiter of 25 years! Feel like
your resume is one of thousands? Don't know if your
cover letter should be short or long? Wondering how to
ace that interview?
Successful recruiter of 25 years tells you what recruiters
and employers look for. Learn how to stand out from the
crowd, be an "A" candidate, tell a good...
|
thread by: Jeff |
last post Mar 3 '06 by: BobR
Hello-
Ive never used a vector or vectors in C++ so I have a question for you
all.
I know I can dynamically create the size I need upfront, but is it
possible to
create them on the fly dynamically? That is, for a 2 dim array, I want
to create
the first element and then push_back the columns after that:
|