| |
thread by: Riya |
last post Mar 6 '06 by: Ben Pope
My MFC application generates a C program. I need to incorporate a C
compiler into it which can compile this code and indicate the lines of
errors.
Can someone suggest me a good OpenSource C Compiler which I could use?
I am using Visual Studio .Net to develop my application
Thanks in advance.
|
thread by: Allerdyce.John |
last post Mar 6 '06 by: Roland Pibinger
How can I emove an item in STL iterator without use the STL algorithm?
I know we can use stl erase, find_if to remove items from a STL vector
, but how can I do the same without using STL algorithm?
vector<int> srcVector;
vector<int> destVector;
for (vector<int>::iterator itr = srcVector; itr != srcVector; itr++) {
int i = (*itr);
|
thread by: novacreatura |
last post Mar 6 '06 by: john isaac
Hi,
I have a project that's supposed to create a program for a "Dating
Service". The first part of the program is to read a textfile of
profiles which include names, age, etc...into a string array, and be
able to add,edit,remove to the textfile of profiles during runtime.
What would be the most efficient way to do this to make it easiest as...
|
thread by: Fei Liu |
last post Mar 6 '06 by: Neil Cerutti
Hi Group, I've got a problem I couldn't find a good solution. I am
working with scientific data files in netCDF format. One of the
properties of netCDF data is that the actual type of data is only known
at run time. Therefore a lot of template based trick isn't too useful.
Considering
datafile
float x(3) 3.5, 2.5, 8.9
double y(3)...
|
thread by: cpj |
last post Mar 6 '06 by: Al Balmer
www.bornwitit.com
|
thread by: David Welch |
last post Mar 6 '06 by: David Welch
Hi,
I have a bit of code where I am relying on empty base member
optimisation. The bit of code is below:
template<typename Enum>
struct EncodePrefix
{
template<Enum e>
struct Apply
|
thread by: Digital Puer |
last post Mar 6 '06 by: Dietmar Kuehl
I would like to merge together several STL integer vectors using STL's
merge() function. What is the best way to do this while avoiding
unnecessary vector copying?
Is the following a good approach?
vector<vector<int> > data; // already filled up properly with integers
vector<int> result; // temp space
|
| |
thread by: Ryan H. |
last post Mar 6 '06 by: Ryan H.
A very simple example of something that acts quite odd:
class TopClass
{
public:
TopClass(){ }
virtual ~TopClass(){ }
virtual int myFunc() = 0;
};
|
thread by: kelvSYC |
last post Mar 6 '06 by: Dietmar Kuehl
As we all know, iostreams cannot be assigned or copied. This gives me
a problem: suppose we have
class Foo {
std::istream in;
public:
Foo::Foo(std::istream& in_) : in(in_.rdbuf()) {}
};
This would not compile, as std::ios_base has a private copy constructor.
|
thread by: Mike - EMAIL IGNORED |
last post Mar 6 '06 by: werasm
delete this; I have seen it used occasionally,
and I would have a use for it. Is it allowed?
Assuming, of course, that I do nothing to the
object thereafter.
Thanks,
Mike.
|
thread by: lnzju |
last post Mar 6 '06 by: Walter Roberson
I mean to write the DES Algorithm myself.
|
thread by: nicolas.michel.lava |
last post Mar 6 '06 by: Pete Becker
Hi there,
I have some trouble using STL containers.
I'm working on a multithreaded (pthread) application making heavy usage
of STL containers. All accesses to containers are made in locked
sections (using mutexes). But sometimes it happens that the application
crashes on container operations. The 2 last crashes are :
* calling push_back on...
|
thread by: Spufi |
last post Mar 6 '06 by: Ben Pope
I have read several messages on converting packed decimals (EBCDIC) in
a C++ program, but they were all for AS400 systems. I am looking for a
way to convert the packed decimals in a COBOL program that is on a MVS
(z/OS) system in a C++ program. Anyone have any idea how to do this? Is
there a header or class that will do this?? Thanks in...
|
thread by: KevinGPO |
last post Mar 6 '06 by: Victor Bazarov
My application was developed under Visual C++ 6.0, ATL, MFC &
PlatformSDK Feb2003 (the last VC6 compatible version).
I am wondering if PlatformSDK Feb2003 is compatible with Visual
Studio.NET 2003? I am having major problems trying to port/build my
application under Visual Studio.NET 2003 using the unmanaged/native C++
compiler.
I was...
|
thread by: yourmycaffiene |
last post Mar 6 '06 by: Ben Pfaff
Okay, this if my first post so go easy on me plus I've only been using
C for a couple of weeks. I'm working on a program currently that
requires me to read data from a .dat file into a 2d array and then
print out the contents of the 2d array to the screen. I wil also need
to append data to the .dat file but mostly right now I'm worrying about...
|
| |
thread by: karolszk |
last post Mar 6 '06 by: braveconf
Hi!
The following program gcc returns error:
class Z
{
int a;
int b;
};
|
thread by: Nemo |
last post Mar 6 '06 by: Richard Heathfield
EXECryptor Software Copy Protection and License Management System is
updated to version 2.3.7
Added full Unicode support for serial numbers. Using Unicode
registration names they are transformed in UTF-8 representation and
then are treated by relevant same-name ANSI functions. As the
representation of string that contains only latin...
|
thread by: alopatenko |
last post Mar 6 '06 by: andreil
I have a template class
template <Class W>
class WS
At some point I have to use a STL list WS<W>objects
so, I define
#include <list>
|
thread by: electrixnow |
last post Mar 6 '06 by: TB
I am about to pull my hair out!
I have VS 2005 PRO and I am coding in C++
I have a console program that parses data and creates a text output. I
need to use MSWords mailmerge to merge the text output and save the doc
for emailing later. I have a macro in MSWord that merges the data from
the textfile with the doc.
I have looked everywhere...
|
thread by: SkyFalconT7 |
last post Mar 6 '06 by: Alex Buell
Hello all, does any one know a scource code for a keylogger, invisible
one and doesn't appear any where on the computer and send the log file
via email? thanks in advance...
|
thread by: Kceiw |
last post Mar 6 '06 by: Alex Buell
Does c++ pronounce c plus plus?
Thanks.
|
thread by: john |
last post Mar 6 '06 by: Richard Bos
Hello,
Supposed sizeof(short) == 2 and sizeof(int) == 4 and argument passing in
a stack.
When doing:
int i1; int i2;
printf("%d %d", i1, i2); // OK. 2 arg of size 4
|
thread by: Rainmaker |
last post Mar 6 '06 by: Aleksander Beluga
Hi,
I'm a newbie.
Can someone please explain to me what will happen if I use "delete
this".
Is it bad to use it?
Thanks,
Gaurav
|
| |
thread by: sweety |
last post Mar 6 '06 by: Vladimir S. Oka
fread hangs before reaching eof()
Hi,
I'm reading the datat from the file. I could read the data by fread but
it hangs on last data. its juz before reaching eof(). The same file
could read all the data in debug mode but could not read in executable
mode.
I'm using VS .net 2003 and VC++ 7.1
|
thread by: www.brook |
last post Mar 6 '06 by: benben
I want to enfore the implementation of the operator overloading eg
class Interface_
{
public:
virtual void operator = (const Interface &other)=0;
virtual void operator +=(const Interface &other)=0;
}
but in the sub class
|