General C++ Programming - December 2008

assigning 0 to a structure value
 
Hi guys I am working on a program and I am having problem assigning null or 0 to a value in a structure.My structure looks like this: struct question { exprs...
[4 replies] Last: Thank you very much guys...really I am touched:) (by compcrazi)
C++ Language Tutorial in pdf
 
Hello, my name is Robson. I would like to know if someone have the C++ Language Tutorial in the format pdf or any other format.
[5 replies] Last: ++ Everyone knows pirating books is like stealing food for your family... (by Repentinus)
Replacing String from a text file
 
Hello, I've been searching this website for hints on how to search and replace a string from a text file. What I've come up with is a program that opens and rea...
[6 replies] Last: Okay, I have a new problem. I want to convert the elements in the ... (by workboy)
Freeing allocated memory from a vector!
 
I've got a vector: std::vector<C_Trigger*> tRegister; Then I throw in pointers like this: // trigger1 activates event1 C_Trigger* trigger1 = ne...
[2 replies] Last: <3 (by pierre001)
MS Widnows ASIO programming
 
Hi guys! Happy New Year to all! I am having an excruciatingly painful issue with ASIO programming in MS XP. My routine reads some uninteligent sequence fr...
[1 reply] : Hi Sergei FWIW: I had the same problem when I connected ASIO to the... (by Corpus)
Virtual function & Inheritance issue..!!
 
Please consider the code snippet below.. #include <iostream> using namespace std; class A { public: int data; public: A() : data(4) ...
[3 replies] Last: To be clearer, the class A has a virtual method hence is a polymorphic... (by satm2008)
Run time error in C++ project
 
Hi Everyone, Iam getting the following error while running some of the applications in my c++ project. *** glibc detected *** /home/sivasankar/...
[2 replies] Last: Hi Dear, check all buffer. surely there any buffer over flow problem... (by minix)
Question about C++ templates
 
I have a question about creating a c++ template class. I'm building a simple mailbox class for communication between threads, our original implementation simpl...
[4 replies] Last: Seconded. Especially if you put the definition in a .cpp file. Write t... (by Corpus)
VERY Beginner question?
 
So I just picked up a book on C++ probably an hour ago, and I seem to be having problems already. So this is my code, I was wondering if anybody could tell me w...
[10 replies] Last: // Listing 2.2 using std::cout #include <iostream> int main() { ... (by grey127)
How to retrofit C++ app to support B/S?
 
Hi everyone, Right now, I'm working at a project that change it to support B/S mode. That is, user can do something by WebBrowser to invoke some functionalit...
[7 replies] Last: Sorry man... I forgot to mail u... i'll mail you today. Andy... (by minix)
MSVC extern static spec conformance
 
Hi, This compiles clean on MSVC 2005. extern int d; static int d; This should not compile, per the ARM (7.1.1). So, rightly this doesn't compile on gc...
[no replies]
backtracking
 
hello I need to make a program that given an array of two points of impact and tell me it all possible paths from the first point to another
[1 reply] : ...is there a question? (by Corpus)
by Qolz
Get data from internet?
 
Hello i'm trying to make a "track" program. Example of what i mean A program that gets "live stock" prices updated second by second. The prices are update...
[6 replies] Last: If you like to use linux then use web service with c++. Andy... (by minix)
Problem on using fflush(stdin)
 
I have write a program that required to enter a list of data, and then store in array in order to display later. when i write the code to insert data into array...
[8 replies] Last: Colleage::Colleage() { Student arrStudent ; //start... PtrArr =... (by minix)
Alternative to Get... and Set... private member access functions
 
When I was first working with classes it allways annoyed me typing out "Get..." and "Set..." at the start of Private member access functions. The "Get../Set.." ...
[6 replies] Last: "Sorry PseudoCode but you would not be able to patent your way " I ... (by PseudoCode)
by helios
Standardness of swprintf
 
Okay, I have two different versions for swprintf()'s prototype. VC++ and GCC say it's swprintf(wchar_t *,int,const wchar_t *,...); But MinGW says it's ...
[3 replies] Last: Yeah, I thought so. I ended up using an intermediate function and c... (by helios)
by sadaf
arrey &string
 
how could i call by value a string? please give me a example
[1 reply] : int f(string s) // f called with a string parameter as call-by-valu... (by Corpus)
by Lawand
CHM version of the C++ FAQ Lite
 
I wanted to share this great resource with all of you guys. C++ FAQ Lite is a free C++ online tutorial, for more info, visit the home page: http://www.para...
[no replies]
by DtD
Passing a Class...
 
Hi, I'm new here, so sorry if this is a stupid question or something. In my game, I have a Stage Manager class, which basically controls which "stage" the us...
[8 replies] Last: I don't know why not create stage objects by StageManager. The StageMa... (by jinhao)
How can i get this program to continue as many times?
 
How can i get this program to continue as many times as the user wants. #include <iostream> #include <string> using namespace std; int main() ...
[3 replies] Last: You could use a loop for tht purpose. And ensure that it continues f... (by Xenophilius)
December 2008 Pages: 123... 10
  Archived months: [nov2008] [jan2009]

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