| |
thread by: Hyoung Lee |
last post Jul 19 '05 by: Alexander Terekhov
Due to performance reasons--code size, real-time accuracy, and power
consumption--many embedded SW engineers traditionally develop embedded
products in assembly languages. However, thanks to the higher CPU capacity
and lower CPU unit price, more embedded products are being written in C and
some in EC++ or EJava.
I seem to recall the latest...
|
thread by: Alex Vinokur |
last post Jul 19 '05 by: llewelly
Is it possible to use vector<ostringstream> ?
Here is what I have got.
===========================================
Windows 2000
CYGWIN_NT-5.0 1.3.22(0.78/3/2)
GNU gcc version 3.2 20020927 (prerelease)
===========================================
|
thread by: Sean |
last post Jul 19 '05 by: John Harrison
Recently tried to make a vector of a classe that contained a pure
virtual member. It didn't work. I've since found a little bit of
information including one possible solution:
http://pages.cpsc.ucalgary.ca/~kremer/STL/1024x768/ref2.html
However the author mentions that the solution provided is not very
efficient. Was wondering if...
|
thread by: Anoop |
last post Jul 19 '05 by: Anoop
Hi guys
i have a piece of code
main()
{
switch(...)
{
case 1:
{
|
thread by: G-Factor |
last post Jul 19 '05 by: David Cattarin
Hi all
Been learning C++ for about 5 weeks. I find that I create quite a lot of
variables. Generally, is it better to create a new variable for every
different thing that needs to be stored in the program? Or would you reuse
variables in the code... like declare an 'int i', and use it in loops,
storing temp values, storing main variables...
|
thread by: Vic |
last post Jul 19 '05 by: John Harrison
Hi all!
I'm trying to create a DLL in C++ that calls an EXE containing a COM
component.
I load the component and call to it's methods using the IDispatch
interface, it works correctly until I try to call a method with the
signature:
method(long, BSTR, VARIANT*)
|
thread by: kyo |
last post Jul 19 '05 by: kyo
class A
{
public:
int a;
};
struct testfun1 : public unary_function<const A&, bool>
{
bool operator()(const A &) const
{
|
| |
thread by: Paul Davis |
last post Jul 19 '05 by: Paul Davis
I'd like to overload 'comma' to define a concatenation operator for
integer-like classes. I've got some first ideas, but I'd appreciate a
sanity check. The concatenation operator needs to so something like
this:
1) e = (a, b, c, d); // concatenate a,b,c,d into e
2) (a, b, c, d) = e; // get the bits of e into a,b,c, and d
For example,...
|
thread by: Paul Davis |
last post Jul 19 '05 by: Paul Davis
I've just converted from gcc2.96 to gcc3.3. One of the things that 3.3
complained about was my use of functions which had default arguments.
Previously, I put the defaults in my function definition, and then
copied the definition directly as the declaration:
void A::foo(int a, int b=0); // declare somewhere
void A::foo(int a, int b=0)...
|
thread by: Damien Cymbal |
last post Jul 19 '05 by: Damien Cymbal
Sorry, don't have a copy of the standard handy anywhere. Given this:
// header
class Test
{
public:
Test() {}
~Test() {}
|
thread by: Lu |
last post Jul 19 '05 by: Roel Schroeven
$ cat main.c
extern void asm_exit(int);
int main(int argc,char *argv)
{
asm_exit(0);
}
$ cat asm_exit.asm
; exit() by assembly: void asm_exit(int status)
; assemble: nasm -f elf asm_exit.asm
|
thread by: srinivas reddy |
last post Jul 19 '05 by: srinivas reddy
Hi,
I have following questions.
1. Does va_arg allow one to read user defined types. My compiler
allows but I am wondering whether it is true for all.
2. I wrote the following code.
Pardon my omitting declarations etc..
int main()
{
func(10, "baaaaa");
|
thread by: LRW |
last post Jul 19 '05 by: Stuart Golodetz
I was wondering if anyone could recommend some good beginner sites and
tutorial sites for writting ASP.Net pages in C#.
Things that especially help with datagrids!!
And perhaps a newsgroup that really focusses on C# and ASP.Net? That
is, if not this one?
Thanks!!
Liam
|
thread by: Peter Morris |
last post Jul 19 '05 by: one2001boy
Is it possible to use C or C++ to create web pages?
Ouputting text with HTML syntax is easy enough,
but how do I make a web browser see the generated
text?
|
thread by: Spikinsson |
last post Jul 19 '05 by: Marduk
I'm looking for a good decrypt/encrypt function, all I want is a function in this form:
char* encrypt(char* normal)
{
...
return encrypted;
}
and
|
| |
thread by: Bonzo |
last post Jul 19 '05 by: Bonzo
I'm trying to write a class for a smart pointer. I'm having a problem
though when trying to implement operator== with both sides being a Smart.
(Or any function that I try to bring U into.)
The pointer contained might not be the exact same type but still get
tested for equality. Here's what I have:
template <typename T> class Smart;
...
|
thread by: George Zhou |
last post Jul 19 '05 by: MiniDisc_2k2
Such as in a.h, I need put #include "b.h", while in b.h, I need put #include
"a.h", but it does not work! Any alternative way to do it?
|
thread by: Ben Bateman |
last post Jul 19 '05 by: Ben Bateman
Hey there, I need to get some help with very basic C++ strings (they syntax
of them in c++ and such). I need to define a string of characters that will
be input.
And how do I input the difference between uppercase and lowercase letters?
Thanks
|
thread by: MiniDisc_2k2 |
last post Jul 19 '05 by: Andrey Tarasevich
Okay, here's a question about the standard. What does it say about
unsigned/signed mismatches in a comparison statement:
char a = 3;
unsigned char b = 255;
if (a<b)
Now what's the real answer here? If a is converted to unsigned, then b>a.
But, if b is converted to signed,then a>b. What's the correct coversion
(what is the compiler...
|
thread by: Joe Peach |
last post Jul 19 '05 by: Joe Peach
Thanks,
Not trying to be a spammer (this is the only group I will do this with), but
I thought if anyone was interested, it would be this group!
Thanks,
Joe
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=3617539231&category=1251&
|
thread by: Abhi |
last post Jul 19 '05 by: Artie Gold
I am trying to use pthread_allocator for a multi-threaded code.
However it does not seem to compile.
Heres the code snippet:
#include <list>
#include <bits/pthread_allocimpl.h>
using namespace std;
|
thread by: m vaughn |
last post Jul 19 '05 by: m vaughn
I wanted to hold information about open files in a struct and be able
pass it around, but the behavior is not what I would expect. Can
someone tell me why this doesn't work? (Even better, what is the
proper way to do this, eg, without the pointers and such). As is
probably obvious, I am not terribly knowledgable here.
The *fs.of<< ......
|
thread by: - Steve - |
last post Jul 19 '05 by: Karl Heinz Buchegger
I need to have a constructor that is passed a integer number that defines
the size of an array in the private area of the Class. Is that possible?
For example in main() the user is asked for the number of lanes. Then when
the object is declared after that it is passed that integer, which then
creates an array of pointers.
|
| |
thread by: Patrick McConnell |
last post Jul 19 '05 by: Michael Kochetkov
The following code gives the link error:
Unresolved external 'C1<int>::f()' referenced from D:\PROGRAM
FILES\BORLAND\CBUILDER5\PROJECTS\MAIN.OBJ
Using Borland CBuilder5. If i define the body of the function f in the
header file1.h, it links ok. I believe this is normal language behaviour
because all the ATL libs are defined in the...
|
thread by: Diego |
last post Jul 19 '05 by: John Harrison
I'm sorry for my English.
I had captured an image using:
error=capSetCallbackOnVideoStream(hCaptur, VideoStreamCallback);
and relativ functions.
In VideoStreamCallback in lpVHdr I can have the RGB sequence of my captured
image.
|