General C++ Programming - September 2008

[FUNTIONS] How do I sum the result of 2 multiplications?
 
Hey I am making this program and I want to know how to after multiplying a * b and c * d, independently how I take both of their results and sum the?: Here...
[6 replies] Last: Erm, I'm only one person... :-) If you don't want to show the proc... (by Duthomhas)
by lipune
virtual
 
what is the advantage if in a real time project if we use virtual mechanism,wt type of advantage will get client if we use virtual mechanism. another questio...
[2 replies] Last: Please write correct english and not this chat-babble-style. It makes ... (by int main)
Function has a bug under only 1 condition
 
...
[5 replies] Last: Yes, it helped. Thank you very much. But how do I find such thin... (by int main)
by lipune
data structure
 
what is the use of double link list in real time.
[1 reply] : As you know a linked list is like an array but created for run-time si... (by satm2008)
by lipune
pointer
 
Hi to all can u tell me wt is the difference between them plz tell with some example i have lots of confusion abt it. "const Fred* p", "Fred* const p" an...
[5 replies] Last: Here is quick help to understand the virtual mechanizm in general C++ ... (by satm2008)
Deallocating dynamically allocated keys in SGI hash map
 
Hi everybody, I am using the SGI implementation of hash maps. I need to use dynamically allocated char* variables as the key type and I am using a simple stru...
[no replies]
A little geometry
 
Helo, I have the following problem: I have points p1,p2,p3 (x and y coordinates). I need to determine, that if i draw a line between p1 and p2, drawing a ...
[7 replies] Last: Then your code doesn't seem to be correct. Do you understand the solut... (by exception)
by xaq
map with custom comparison function?
 
I would like to write a custom comparison function object that I can pass to a map container. In my hands, a function object works fine when passed to an algori...
[9 replies] Last: Guideline: (a) avoid calling constructors in function calls (b) neve... (by exception)
Linking C function with C++ object file
 
This is a my C function: int Dow(long year, long month, long day) { if(month < 3) { month += 12; yea...
[no replies]
cout didn't work properly in my Binary tree
 
Hi all, I was trying to parse a string to a binary tree but I can't figure out what's wrong with my code, basically, I want to parse the string "(hu)" and put ...
[1 reply] : Let's see... Line 55: &str ==str Line 19: The function is returning ... (by helios)
wats wrong with the program
 
#include<iostream> #include<string> #include<fstream> using namespace std; const int NUM_ROW=8; const int NUM_COL=7; void addArray(int sum1, int s...
[4 replies] Last: Please use code tags please, its killing my eyes just looking at the c... (by CAIA)
Trying to include a file in my C++ code
 
Hi I'm trying to include the below code in my project in Visual C++ Express Edition, the code compiles fine for the file below but when I try to declare a varia...
[1 reply] : Maybe I'm missing something but I can't see a type matrix in that he... (by bnbertha)
by Gonen
Question about global time and dates
 
Hello, I want do to a program that doing some actions on time and dates. for example , the user enter his country , and the program prints it's time. o...
[2 replies] Last: Cool, Thanks a lot. (by Gonen)
Trying to write a simple input verification string
 
I'm writing some simple console program and I want to make sure that the value the user enters will only be a number, and if they accidently put in a letter, it...
[1 reply] : The litmus is usually just to try and translate the string to whatever... (by Duthomhas)
strcmp... please.. elp T_T
 
i need your help please help me convert strcmp() to a program C++ program.. I mean a program that will work like strcmp.. thanks!! here is my email: m3ril...
[1 reply] : If you're looking to put the function in your project, the library fun... (by Deej)
airline reservation
 
hi guys..i'm a newbie in programming.. anyone can help me? here's my problem i'm going to make a program lika an airline reservation and the user will enter his...
[1 reply] : If you have a specific error or need a specific push somewhere then pl... (by jpeg)
reading and writing an image
 
Hi everyone, I'm learning to do image processing using C++.Since I'm new to this type of programming ,I would really appreciate if some one can help me readi...
[6 replies] Last: Are you asked only to use the standard library files to *process* the ... (by exception)
array
 
ok so if am going about this in a new way now i am infile.open("text.txt"); infile >>words >> words >>words >> words >> words ; that puts the words r...
[3 replies] Last: how to create a algorithm ? (by neeraj)
Template, header, implementation Question
 
Hi all, I'm having problem separating the following codes into header file and cpp file. Can help? template <typename T> class List; template <typename...
[4 replies] Last: Thanks guys, for all the help. I've got my prob solved. It's really ... (by freenite)
by xabnu
Multi-threading
 
I asked a long time ago for a way to create multiple threads, and received a very helpful reply. However I am under the impression that process.h may not work o...
[5 replies] Last: Thanks, I'll be looking into that when I can (by xabnu)
September 2008 Pages: 123... 11
  Archived months: [aug2008] [oct2008]

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