General C++ Programming - August 2010 (Page 13)

by qabil
search file
 
Hy.. Help me to make my program can find a file in all drive in my computer if I use findfirst & findnext function I just search in that directory How to ...
[7 replies] Last: search each folder in each drive. compare the folder name is 'qabil' ... (by beginning)
FIXED SIZE STRINGS
 
Hi, I want to make bitwise operations on different strings of binary numbers . The main string that i perform bitwise operations on it has 16 binary ch...
[4 replies] Last: Thank you. (by manaila)
[C] Header Problem
 
Two C source files include a single header file. The header file contains a declaration of a constant variable. However, the declaration prevents me from compil...
[5 replies] Last: If they were two distinct variables, you'd need to declare them static... (by kbw)
why do we need to have classes ?
 
i am learning c++ i wonder why do we need to have classes ? what the things that classes can do , but function() cannot? thanks
[9 replies] Last: Classes are used to create user defined types. The language only supp... (by kbw)
Different C++ Compilers
 
Currently I am using Windows Vista Home Premium as an operating system and Microsoft Visual Studio 2010 Professional (student edition) as my compiler. By studen...
[5 replies] Last: All compilers have nonstandard extensions. Indeed. Besides, if... (by firedraco)
function pointers
 
I'm trying to pass a function pointer into the constructor of a class, and I want to have a getter that will return that function so I can be called as an ins...
[6 replies] Last: void(*)()validation_function() { return validation_fun... (by Skillless)
Erasing elements in a vector
 
I know that erase() will invalidate all iterators in a vector. And that, erase-Remove combination is the way to delete a range of elements from a vector. Wha...
[7 replies] Last: I've read this book about STL http://www.amazon.com/Effective-STL-Spe... (by Denis)
by XemMeg
Clearing specific parts of an array
 
Hi everyone! Let's say I have an array of structures: struct Party { char * pName; int NumPeople; char Plane; }; Party List ; An...
[3 replies] Last: You need to keep a note of the number of items in the array. Then use ... (by Galik)
by declan
Debugging multithreaded code with gdb, no access to private variables?
 
Hey guys. My program uses OpenMP at a few parts to do multithreading. It works for the most part, but occasionally stalls and just sits there. So I run it in th...
[no replies]
by bbgst
Static function calling derived funtion
 
I have a question that is making loops in my mind. I'm wrapping a Win32 thread in a class. The class needs: - a public start() method called to create a...
[2 replies] Last: Thanks a lot, that was the problem. Can't believe I thought so mouc... (by bbgst)
Command Line Programming
 
I've seen some fancy command line programs. Some of them almost look animated. For instance, I used a command line installer for something in Ubuntu one, and it...
[4 replies] Last: oh, BTW, you said ubuntu. console animation. install the package bb... (by bigearsbilly)
struct question
 
Hi guys, I have a struct defined in a header, is it possible to use the same struct variable across more than one file. in other words like this.... header....
[8 replies] Last: ok ive got a betrer idea now, i had already used a struct in another p... (by jammas615)
by LJones
derivative classes cause compiler to fail only if split between .h and .cpp file
 
I have a base class from which I'm trying to inherit members for various other classes. The only problem is that if I split up the derived class into a header a...
[2 replies] Last: Light reading complete with cliffs notes. Thanks. (by LJones)
drawing animated sprites in directx
 
I'm making a game in directx and I've discovered that my draw function is wrong when the sprites are rotated, when drawn with a rotation value of 0 they are dra...
[6 replies] Last: Thanks a lot helios that works just fine now =) and btw 7366 posts! =... (by quirkyusername)
Writing Unicode to a text file
 
Hello all, So, I am trying to write a program that will find files in a directory and traverse through them in random order. I'm pretty sure my code for find...
[1 reply] : Is m_tempFileListOut an std::fstream? I'm surprised that compiled at a... (by helios)
Convert Console Apps to GUI Apps
 
Hello! I've been learning how to code C++, but entirely Console apps! Can you tell me how I can convert Console apps into GUI apps? [Only using librari...
[1 reply] : If youre using windows and you want to make some applications try the ... (by Skillless)
system() and newlines
 
I am trying to have my c++ app use windows console commands. I currently, my program spools a bunch of commands, then outputs to a batch file, and finally my pr...
[7 replies] Last: With a list you can easily add or remove a line wherever you like b... (by Skillless)
Strange behavior of vectors
 
I am adding a piece of code, all that I am doing in this is creating an object of class csocket, and adding into the vector. Then erase the object and add again...
[5 replies] Last: I found the reason for the crash.I was actually doing some thing like ... (by punithraj)
Using pointer instead of array.
 
Hi.Just started using pointers. I'm trying to use them instead of arrays but i get this error after the program finishes: Run-Time Check Failure #2 - Stack arou...
[7 replies] Last: Yes i realized that the solution was bad after i saw the required size... (by Rampage)
Singleton class
 
The code below is a singleton class called base. #include <iostream> 2 3 4 using namespace std; 5 6 7 class base 8 { 9 private...
[14 replies] Last: Related thread: http://www.cplusplus.com/forum/general/26976/ (by moorecm)
August 2010 Pages: 1... 1112131415... 20
  Archived months: [jul2010] [sep2010]

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