473,811 Members | 4,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
1
1,494
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.
7
9,982
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);
2
3,031
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...
13
4,538
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)...
1
1,395
thread by: cpj | last post Mar 6 '06 by: Al Balmer
www.bornwitit.com
1
2,001
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
1
3,227
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
6
2,275
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; };
4
2,407
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.
7
430
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.
13
2,435
thread by: lnzju | last post Mar 6 '06 by: Walter Roberson
I mean to write the DES Algorithm myself.
9
4,551
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...
4
5,164
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...
1
2,231
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...
29
10,455
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...
1
1,997
thread by: karolszk | last post Mar 6 '06 by: braveconf
Hi! The following program gcc returns error: class Z { int a; int b; };
1
375
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...
9
2,024
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>
2
1,775
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...
4
2,110
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...
9
7,840
thread by: Kceiw | last post Mar 6 '06 by: Alex Buell
Does c++ pronounce c plus plus? Thanks.
2
4,575
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
2
370
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
1
3,533
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
2
3,090
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.