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 ...
[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...
[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 constan...
[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 d...
[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 2...
[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...
[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...
[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; ...
[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, bu...
[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 cl...
[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 ...
[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...
[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 pro...
[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...
[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 th...
[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 ca...
[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 ...
[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...
[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 ...
[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 na...
[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.