General C++ Programming - May 2011 (Page 19)

problem with arrays
 
Hi, I wrote this simple program and I am trying to add up all the elements of one array into one element of another array but this does not seem to work. As ...
[5 replies] Last: Thank you sahzz and CreativeMFS....that worked... (by sanehatter)
by fafner
"class has no member named"
 
I'm getting a well-known error that should be pretty easy to solve: ‘class GeometricObject’ has no member named ‘get_material_ptr’ However, I ca...
[7 replies] Last: Rewrite appeared to be the only option, fixed now:) (by fafner)
cleanest stl algorithm?
 
ok, here is some pseudo-code for my requirements - it's not hard to do with nested loops and multiple passes, but I'd like to see if anyone has any idea of how ...
[3 replies] Last: Since m_cur and m_tgt are sets (which means they are sorted) and you ... (by m4ster r0shi)
c++/cli enabled
 
Can anyone tell me how to enable CLI is VS2010. I cannot use the directive #using without doing that.
[4 replies] Last: Project -> General -> Common Language Runtime Support and set to enabl... (by modoran)
<operator
 
Hello! Doing a old exam atm,one of the tasks is to create a template function that does compare two flower objects by color/name. if the name/color is equal t...
[1 reply] : You overload operator<, yet you attempt to use operator== in the funct... (by webJose)
by Adidas
Expert 1...
 
I'm having terrible time trying to make a while inside a while sequence I have a list of Departments and in every Department there is list of Courses who is ...
[no replies]
Memory addresses signed - unsigned
 
I just have fun with pointers a bit and found that i can actually hold some variable address as value in another non-pointer variable, never seen an example of ...
[2 replies] Last: Thanks. (by savavampir)
I need some kowledge
 
Okay, so... I need to know a few C++ terms, errors, vocabulary and what they mean. An example might be... What does "bool = true;" mean? I use a lot of th...
[2 replies] Last: So... Do you expect us to start randomly posting definitions of C++ te... (by cnoeval)
comparison functor for std::map
 
Hey... I like to use a map which key is of type std::tm. Since there is no <-operator predefined for std::tm, but std::map expects one, I did define one mys...
[3 replies] Last: kooth, he/she will be using std::map<std::tm, SomeType, CCompareTM>, s... (by webJose)
reading from a file
 
hello guys i am having trouble reading this file even with ios::binary can someone help me?   E  E   O ]AXK[B\]of;H E H O LM ...
[8 replies] Last: this is hopeless... no one's replying (by tejashs)
conversion error (I'm rusty please help)
 
Hi all, It has been 6 years since I have done any real programming at all, and I have lost most of my skill and lost my syntax and just plain old suck now. ...
[no replies]
by chaman
how i will find type of variable from void *
 
how i will find type of variable from void *. cout return Pv on gcc-4.4.5 but i get original type on each iterator such as int, double etc. according iterartion...
[2 replies] Last: I don't see why you would want to do it, either. Use templates instead... (by chrisname)
need some help with this code input.
 
hi i tried cin and scanf but i didn't get it. How i can get input in this code? thanks for guidance and help
[5 replies] Last: ok i got your meaning. i need to input from output file, these list n... (by iamuser2007)
Clearing Bad Input Produces Odd Behavior
 
I created a program to calculate a cumulative grade by entering points earned out of points total. My function branch() produces odd behavior when called. Somet...
[no replies]
Seekg()
 
Hello everyone, I have a problem when working with file. I use seekg() function to go to the beginning of the file, but my code doesn't work. I don't know why....
[no replies]
Problem with adding Symbols
 
Hey guys , i would like to ask a question regarding some ways on how i can include certain characters into a string. using namespace std; int main() ...
[1 reply] : Those caracters should need a \ before them : http://msdn.microsoft.co... (by bartoli)
by chaman
Is it possible to make data type array which act as java Class Object.
 
Is it possible to make data type array which act as java Class Object. My problem I do not know which data type send by user at run time. therefore I want...
[1 reply] : It can't be just anything, surely it's one of a family of types. (by kbw)
Performance: Virtual Function vs Function Pointer call
 
Dear All, let me have a testing question as Iam not sure how to measure it correctly. The question basically is: Which is faster ? A. Call 1000 times a ...
[10 replies] Last: I got some insight now, and this article is truly the crown on such to... (by Avithohol)
Help in storing data into a file.
 
I made a quiz program. Now I wanted to keep score of the previous user. I made a string asking the name is the user. Then continued with the quiz. Then add...
[6 replies] Last: I changed that after your first post. Now the code is fstream user... (by Nisheeth)
2D Dynamic array - help
 
The below memory allocation for a and a1 are correct?. I am getting incorrect values while printing array contents I ran it in Linux with g++ compiler P...
[no replies]
May 2011 Pages: 1... 1718192021... 32
  Archived months: [apr2011] [jun2011]

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