| |
thread by: Chad |
last post Mar 4 '06 by: Eric Sosman
The following question stems from the following thread on comp.lang.c:
http://groups.google.com/group/comp.lang.c/browse_thread/thread/0ad03c96df57381a/5f20260b30952fe7?hl=en#5f20260b30952fe7
I was sort of mystified by a comment made by Eric. And I quote:
"You might also be confused by the fact that each
`struct my_struct' contains a...
|
thread by: jason.s.turner |
last post Mar 4 '06 by: Mark P
I have spent hours on this problem and cannot get it, any help would be
appreciated:
A binary search tree using n distinct integers 1, 2, ..., n. There
are n! possible initial orderings of the n numbers. How many of the n!
permutations will result in a perfectly balanced binary search tree?
Assume that n =2^k -1 for some positive integer...
|
thread by: fouxman |
last post Mar 4 '06 by: fouxman
There's a relatively new product in source code spell checking area
that should help developers keep their code and GUI spell-clean. It's
called Source Code Spell Checker by Parasite Software -
http://www.parasitesoft.com/scsc.html
|
thread by: KL |
last post Mar 4 '06 by: Jim Langston
Hey...I am working on a project for school. I preface this so everyone
understands that I don't want the full answer, rather a nudge in the
correct direction.
The following code section is supposed parse in a url from the command
line. For some reason, I am not parsing the command line properly. Can
someone help nudge me towards the...
|
thread by: majestik666 |
last post Mar 4 '06 by: JH Trauntvein
Hi,
i'm bulding a multi platform app under windows/linux/osx
an i have a bit of trouble exporting c++ symbols from
a dynamic library...
Under windows, i compile a dll exporting symbols
using :
__declspec(dllexport) & __declspec(dllimport)
I do export non-static and static members from my c++ code
|
thread by: Aravindh |
last post Mar 4 '06 by: Pedro Graca
A 'C' program that takes two numbers and produces two other numbers.
None of the four numbers must be similar.
printf ("%d%d", & num1, & num2) ;
if (num1 > num2) {
num1 ++ ; num2 -- ;
}
else {
num1 --; num2 ++ ;
}
|
thread by: Allerdyce.John |
last post Mar 4 '06 by: BobR
Hi,
In my code, I have a function which has a return value in the
declaration:
bool myFunction( int a) {
// my implmentation
}
|
| |
thread by: kathy |
last post Mar 4 '06 by: Gavin Deane
I have code:
std::string s(1,'A');
for(int i=0;i<26;i++)
{
s = s{0] + 1;
}
what I expect is get A,B,C...Z. But I only got A,C,E,...
|
thread by: amparikh |
last post Mar 4 '06 by: Alf P. Steinbach
I have some test code which demonstrates the problem. I know I could
solve this by just returning a pointer, but I better use a reference.
In real code, what I actually want to return is a reference to an array
of function pointers. But the code below is good enough to show the
problem.
Thanks.
#define MAX_DEC 11
|
thread by: denis_browne |
last post Mar 3 '06 by: Rod Pemberton
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
of 2
|
thread by: RyanS09 |
last post Mar 3 '06 by: S.Tobias
Hello-
I am trying to write a snippet which will open a text file with an
integer on each line. I would like to read the last integer in the
file. I am currently using:
file = fopen("f.txt", "r+");
fseek(file, -2, SEEK_END);
fscanf(file, "%d", &c);
this works fine if the integer is only a single character. When I get
into larger...
|
thread by: Jacek Dziedzic |
last post Mar 3 '06 by: BobR
Hi!
<OT, background>
I am in a situation where I use two compilers from different
vendors to compile my program. It seems that recently, due to
a misconfiguration, library conflict or my ignorance, with one
of the compilers I am having trouble related to libuwind.so,
which, to my knowledge, deals with the intricacies of unwinding
the...
|
thread by: Jordan Abel |
last post Mar 3 '06 by: Micah Cowan
Is there a function to find the length, in wide characters, of a
multibyte string?
|
thread by: junw2000 |
last post Mar 3 '06 by: Aleksander Beluga
Is C++ Exception handling useful? think it is too complicated.
|
thread by: nigeljordan |
last post Mar 3 '06 by: Banfa
Hi
I’m having problems with the following method…
It works for the ‘@user’ bit (i.e. it takes in the user variable and works within the sql command).
But the @column variable still is not working somehow.
It’s probably something to do with the way I’ve phrased the actual sql statement.
|
| |
thread by: Jordan Abel |
last post Mar 3 '06 by: Jordan Abel
I have run the formulas in the publically available c89 draft through
eqn and groff, and the result is at
<http://random.yi.org/~random/c89_formulas.pdf>
|
thread by: void * clvrmnky() |
last post Mar 3 '06 by: CBFalconer
Greetings,
I'm in the process of refactoring some code, and have determined that I
need a map (or some other dictionary structure) to maintain a small list
of key-value pairs. This is follow-on work from parallel development
done in Java, so I'm working to a spec based on exposed methods.
I've cooked up some prototypes based on...
|
thread by: Tomás |
last post Mar 3 '06 by: roberts.noah
This won't compile for me, it's saying "wcslen" isn't defined in the
"std" namespace:
#include <cwchar>
int main()
{
std::wcslen("monkey");
}
|
thread by: soccertl |
last post Mar 3 '06 by: Keith Thompson
Is there a listing of what the compile errors mean? For example:
"hdb_log.c", line 163.22: 1506-046 (S) Syntax error.
"hdb_log.c", line 160.20: 1506-098 (E) Missing argument(s).
make: 1254-004 The error code from the last command is 1.
How do I find out what 1506-046 and 1506-098 mean?
Thanks for any help.
|
thread by: Ark |
last post Mar 3 '06 by: kuyper
Hello NG,
My Lint and my compiler disagree on whether this is valid code:
typedef int test_t(char *);
typedef int contest_t(const char *);
extern contest_t somefunction;
test_t *mypointer = somefunction;
I think the assignment is clean in what it does, but who cares? - What's
|
thread by: lchian |
last post Mar 3 '06 by: lchian
Hi,
For two stl strings s1 and s2, I got different results from
strcmp(s1.c_str(), s2.c_str())
and
s1.compare(s2)
can someone explain what these functions do? It seems that strcmp
gives the "right" (i.e.wysiwyg) answer while compare() does not.
|
thread by: denis_browne |
last post Mar 3 '06 by: Keith Thompson
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
of 2
|
thread by: code break |
last post Mar 3 '06 by: Keith Thompson
Can Any one tell me why this program is crashing .
testFunc()
{
int a1, *ptr ;
f=&a1;
f=f+1;
return 0;
}
|
| |
thread by: Alex Buell |
last post Mar 3 '06 by: Alex Buell
Is it legal to do this:
using std::out, std::cin, std::endl;
If not, why not?
--
http://www.munted.org.uk
"Honestly, what can I possibly say to get you into my bed?" - Anon.
|
thread by: Kza |
last post Mar 3 '06 by: Andrew Koenig
Hi, just in the process of maintaining some software that used some
funy old string library and char*s , and we are updating everything to
use std::strings. (or should I say std::basic_string<>s)
I find it wierd that that all the new c++ ansi style librarys like the
streams and file handling classes still expect us to use old style
char*...
|