General C++ Programming - July 2009 (Page 8)

File Input reads last line twice
 
Ok so I have a file that contains one-double-per-line entries & I know how many lines I have from another executable that creates & fills the file. Then I have ...
[7 replies] Last: Alright gotcha. Another nice shortcut. After using the suggestions the... (by Ludicrous)
pure virtual destructor - compilation error
 
Compiler gives error - 1>BridgePattern.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Shape::~Shape(void)" (??1Shape@@UAE@XZ...
[2 replies] Last: Thanks very much. Solved the problem. (by n4nature)
How to create static library in C++ .net 2008 and call it from VC6
 
Hello, I want to create a static library using .net 2008 Framework 3.5 and export a function. In order to call this function from a vc6 enviroment what proj...
[1 reply] : Perhaps you'll have better luck on a .NET forum. (by helios)
Event mechanism
 
Hello all there, I am newbe to unix programing. I want to implement event mechanism just like __event, __hook and __raise in VC++. Is there any way to ...
[3 replies] Last: It's pretty obvious how it might be done in C/C++ on Windows. They ma... (by kbw)
by arnon1
Cleaning up containers of pointers
 
Hey. I'm relatively new to the forum. Anyway, I've been trying to cleaning up the containers of pointers when they have same pointer into it. What changing nee...
[4 replies] Last: I do not have time checking your code thoroughly, but you would double... (by Robertlzw)
Simple Interpreter (1,2,3)
 
Hey guys, Does anyone have an example of an interpreter (pure C/C++) which can work out some basic maths and print text/numbers? Thanks, James
[48 replies] Last: I've had no luck. Is anyone able to take a stab please? (by jbrooksuk)
by muzhe
Naming output file
 
Hi, Please have a look of the code below: #include <fstream.h> #include <iostream.h> #include <stdio.h> #include<conio.h> int main() { char Fi...
[7 replies] Last: In this link are listed some: http://www.cplusplus.com/forum/articles/... (by Bazzy)
Problem on 'new' & 'delete' in C++
 
Hi all C++ expert,I'm new in this field.I've written a program but I need to write it using class. I'm not able to understand where I'll define a = new double ...
[3 replies] Last: Hey mrHappyPants and wmheric, I have solved this problem and also mark... (by sdmahapatra)
by jolly
MS Visual C++ 6.0 addin
 
Hi to All, I'am creating a addin in visual c++ 6.0.On my add-in,I would like to get the path of the selected item on the project. Can you please help me on ...
[no replies]
user input - lowercase mixed with uppercase
 
okay another beginnerC++ question... Can someone compile my code below to figure out my problem - it runs, it compiles. it answers the questions properly (s...
[3 replies] Last: hey thank you guys very much. helped me out A LOT. truly appreciate ... (by xiikryssiix)
network programming
 
Could anybody recommend a fundamental c++ network programming book to learn things such as TCP/IP and htonl(..) networking like functions? Thanks!
[1 reply] : Try this TCP/IP Illustrated, Volume 1: The Protocols (Addison-Wesle... (by kinley)
Want to program inventory databas for movie theater
 
Hey guys, not sure if this is the right forum to post this on but here goes nothing... I work at a small movie theater and am a computer science major going int...
[1 reply] : Um... Sounds to me like you need to go and take a closer look at your ... (by helios)
Bitfields Unexpected Output
 
I have a code that goes like this: typedef struct _point { int x:2; int y:2; }Point; int main() { Point p; p.x = 2; printf("%d\...
[2 replies] Last: Classical sign extension bug. x can only contain two bits, to which... (by helios)
by nikoz
Does strtok lead to memory leak??
 
Hi All, I've been exploring the string library with particular interest to tokenising. Below is a slightly modified example from www.cplusplus.com/referenc...
[6 replies] Last: Turbo C is an old 16-bit DOS program generator -- meaning it runs in t... (by Duthomhas)
submit value to ostringstream does not work
 
//!> Convert Int, Real etc. to string template<typename ty> string VTKWriter::convert(const ty val) { ostringstream buffer; string str; buffer << ...
[7 replies] Last: Of course, you can always use left-hand comparison. And, of course, yo... (by helios)
by hen
can't convert from double to int
 
Hey, is there anyone that would be willing to look at my source code for a program I am trying to write. It calls the BGI graphics library and has a few other ...
[7 replies] Last: All right. Thank you. (by hen)
by fiska
how to close threads from the loop
 
By plaving around with the code, a new issue has arrised, see the code #include "MyApp.h" void MyApp::print() { for (int i = loopStart; i <= lo...
[no replies]
How to create static library in C++ .net 2008 and call it from VC6
 
Hello, I want to create a static library using .net 2008 Framework 3.5 and export a function. In order to call this function from a vc6 enviroment what p...
[no replies]
Why does my program return single precision results?
 
Hi all, I have an extensive program package for scientific purposes, too big to post anything here. It has been in use for a long time. I do not use any specia...
[4 replies] Last: The way to obtain results up to a given order N is totally determined ... (by Coleman Silk)
Bulk write to a file
 
Hi, I have some huge data to be written to a file. So instead of writing line by line, I want to write many a lines at a time to save time. Each line has ...
[1 reply] : Why do you want to write all the lines at the same time? The best sol... (by Bazzy)
July 2009 Pages: 1... 678910... 14
  Archived months: [jun2009] [aug2009]

This is an archived page. To post a new message, go to the current page.