General C++ Programming - May 2010 (Page 18)

Output File smaller than Input file?
 
What im doing is loading a file in to an array, and simply writing that array to another file. Whe...
[1 reply] : Don't forget to open with ios :: binary . (by Duthomhas)
Copy
 
hello. How can i copy a file? Is it depends on the format of file? thanks :)
[1 reply] : Via C++? Just store all the data to a bitset in your program, and read... (by Albatross)
CCTV video streaming
 
guys, i want to know all of the following: -How do i read video data from cctv cameras -What do i ...
[1 reply] : http://stackoverflow.com/questions/37956/c-whats-the-easiest-library-t... (by cnoeval)
Copy const char* to char*
 
Hello again, I'm a bit confused... I have a std::string szLine which reads in a line of a document....
[1 reply] : dynamic memory allocation! std::string szLine; while( true ) { ... (by m4ster r0shi)
can't complie and run..
 
//Exercise P11.10, sort a vector of Employee objects by salary using the standard C++ sort function....
[3 replies] Last: I hope this helps. #include <iostream> #include <string> #incl... (by blackcoder41)
Access to controls in child dialogs
 
Hello everybody ! With vs2008 – Smart Device – MFC – dlg I have a project named Test1 : 1-...
[no replies]
by browjs
factoriadic number calculator problems
 
hi guys im quite new to C++, so there is probably lots wrong with this programme. im really having a...
[3 replies] Last: right now all i am using main for is to enter in a number and then it ... (by browjs)
by sunilk
initializing static variable conditionally
 
Hi, I would like to know how to initialize a static variable conditionally. if(flag == true)...
[3 replies] Last: (However keep in mind that statics are initialized only once no matter... (by jsmith)
by eonerf
Alphabetically Ordered Binary Tree Word Count Problem
 
I'm making a binary tree which analyses a text file and counts the frequency of the words from that ...
[1 reply] : Although your addNode() function handles the case where the word to be... (by jsmith)
vertical axis on graph
 
Hi all this is my code, i am able to get the horizotal axis correctly, but i am unable to get the ho...
[1 reply] : please edit your post and put [ code ] (without spaces) before and b... (by imi)
by mrkcc
Programming grapih
 
graphic c + +, which is not borlan graphics.h, I need good libraries is that I can use to start prog...
[2 replies] Last: If you mean you want to easy draw diagrams out of some raw data, then ... (by imi)
Vector of derived classes
 
Hi, hopefully someone can help me here. I have three classes derived from an abstract base class,...
[2 replies] Last: Zhuge is right: you can't use direct copies of your base class. Bu... (by imi)
Semaphores
 
I am getting a strange problem. I have 3 files, 1. Semaphore.h - Header file 2. Semaphore.cpp ...
[3 replies] Last: Was missing sem_op = -1 in getLock(); Its working fine now. :) Than... (by rachitagrawal)
by vihrao
binary '+' : no operator found which takes a right-hand operand
 
I am trying to use operator+ overloading to add to matrices classes. It is on the line rslt = m1+m2 ...
[3 replies] Last: Yes, OK, I see where I misread it. Your matrix should look somethin... (by Duthomhas)
Arrays
 
Hi, I am a C++ learner , therefore, please do not judge me very much for not handling such a simp...
[8 replies] Last: Cnoeval, wow, it is a simple as only possible! (by kirillpushkin)
pointers :significance of * sign
 
void main() { char s ="string"; char *sp=s; while(*sp!='\0') { cout<<*sp; sp++;...
[2 replies] Last: When you use *sp, cout prints content of pointer's actual position. Wh... (by mtweeman)
Program about Complex numbers.
 
...
[10 replies] Last: If you're still needing help on this topic I suggest you stop erasing ... (by cnoeval)
Dynamic object
 
I am creating a student object and want to call my constructor using a loop here is my code can anyo...
[8 replies] Last: "That looks to me like a double initialization. Why are you reinitiali... (by Dlockwood)
Is there any difference between Windows and MAC to use dynamic_cast?
 
There are two class like A and B: class A { public: virtual ~A(){} }; class B: public A ...
[no replies]
how to check whether a file exists or not
 
my application is present in a folder called file which contains user interface, header files and .c...
[5 replies] Last: Boost.Filesystem has an exists predicate: http://www.boost.org/doc/li... (by moorecm)
May 2010 Pages: 1... 1617181920... 22
  Archived months: [apr2010] [jun2010]

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