General C++ Programming - June 2010 (Page 17)

New line in a text file
 
I need to write strings in a file by visual C++ under windows and then to read this file in the Linux or vice versa. But I have the problems: if I write file b...
[14 replies] Last: how are you storing said indices? Yes, I am storing indexes in ... (by fotoni2)
by geoff
ctime() and new line
 
Hello, I'm writing a small logging class and I want to date/time stamp each line of output. I'm using ctime() for this, but it adds a new line /n at the end....
[3 replies] Last: Yes, that works. Thanks guys. :) (by geoff)
by zsukal
How to add library sqlite to porject.
 
Hello. I read forums and instruction on SQLite page how to make library *.lib. I do library mylib.lib but can't add to project. I tray to add in option in Link...
[2 replies] Last: You have right. I change link source to folder Debug, before folder wi... (by zsukal)
by donnyb
General Error handler for whole program
 
Ok, I am very frustrated. I have done a lot of homework on this subject and I just can not figure it out. I want to write a header file and .cpp file to catc...
[3 replies] Last: Then you need to have your functions all return to an intermediate fun... (by Computergeek01)
Problem with decalring a vector in a header file!!
 
Hi all, I declared a vector of pointers in a header file named (bug.h) typedef Bug* Bugpt; //Bug is a defined class vector <Bugpt> Bugarr(6); But t...
[13 replies] Last: Tried this too, but the same error keeps appearing!! (by waleed 707)
Can an auto_ptr survive the destruction of it's owner?
 
Consider two classes: Vehicle && Engine. class Vehicle{ private: std::auto_ptr<Engine> engine_; public: Vehicle() : engine(new std::auto_ptr<Engine>...
[12 replies] Last: I don't think there is a right or wrong answer to the design aspect of... (by rollie)
by wtf
I hate you codeblocks!
 
Yay codeblocks 10.05 is out! Wait a second, now my code won't compile. the latest version of codeblocks, while adding a bizillion different useless feat...
[10 replies] Last: Alright let's set this straight. First of all, like many before me ... (by xander333)
mixing C++ and C
 
I'm trying to wrap a legacy application with C++ code. class MyClass { _ beginthreadex(NULL,0, OldMain, 0,0,0); } int main () { MyClass exe...
[1 reply] : De-capitalize "Return", else it won't work. Also, there are hundred... (by Albatross)
calling c type function
 
Hi , I am using Visual studio 2008 I have a separate .cpp file in which i put the definition of the function . #include "Tree.h" //extern void func(in...
[4 replies] Last: Thanks Athar ..it worked .. thanks. (by bluecoder)
task in c++
 
Define a class Circle that stores the center and radius of a circle, by keeping the numbers in a dynamically allocated array of doubles. Supply the "big three"...
[13 replies] Last: Well, with all due respect, I don't think any learning is for nothing.... (by Galik)
How to learn MFC
 
I have read the previous 9 chapters of Programming Windows with mfc two times,but I find I don't know how to finish a program by myself,I don't know how to sele...
[4 replies] Last: See if you can track down a copy of: Programming Windows with MFC ... (by closed account z05DSL3A)
Camera input as Mouse(Motion Tracking)
 
Dears, I have been developing a project which use web cam as source of input to imitate as mouse event on mac. I'm always handle with opencv for image proces...
[no replies]
move keyboard cursor
 
hi people, im creating a text editor in c language, n the point is that i cant move the cursor with the keyboard arrows, n im asking for some help here. #inc...
[1 reply] : Using [ code] blocks really helps. Check out the Windows Console ... (by Duthomhas)
writing integers, doubles etc directly into a binary file
 
Hello everyone! I (not the biggest c++ professional) spent some hours today trying to solve this problem: I need to create a binary file and want to be able...
[4 replies] Last: Simply casting does not account for endianness issues. If it makes a ... (by Duthomhas)
"Imaginary" keyword?
 
I was writing a program for a friend and the IDE's autocomplete showed an "imaginary" keyword. What is it? I couldn't find it on the internet.
[10 replies] Last: It has to be for some other language or library that Code::Blocks supp... (by Duthomhas)
mac, pc and compiling
 
is there a way for me, using a mac to compile a c++ program to work on windows? or could some one with a windows computer compile this code and send it to me s...
[2 replies] Last: It works in the opposite direction as well if you know the proper cros... (by Albatross)
by ibwood
Header file declaration differences
 
Hi all, I have been confused about this for a long time now.. What is the difference between double quotation marks and inequality brackets when including a ...
[5 replies] Last: I see.. thanks guys :) -Ian (by ibwood)
by indigo
recv() return
 
Hello everyone, can somebody explain how recv() function really works? As I understand now it waits for data to be in buffer in TCP level and takes the maximum...
[6 replies] Last: You actually were right! Thank you very much! Now when it's so obvious... (by indigo)
C++ class memory allocation error (getting Command terminated)
 
Hello! I have a problem with the following code: http://www.pastebay.com/101195 If I try to allocate memory on line 110 I get a start-up application crash....
[4 replies] Last: OK! I got it! God, Valgrind is awesome. First of all a was using xpmI... (by mr muscolo)
Advance books in c++
 
Please Name some advance books in C++ Not beginer stuff which have loops,conditional,logical operators, if commands and the beginner stuff I want somethin...
[6 replies] Last: The C++ Standard Library - Nicolai Josuttis Is a theory book Can... (by thapchi)
June 2010 Pages: 1... 15161718
  Archived months: [may2010] [jul2010]

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