General C++ Programming - March 2011 (Page 30)

by sich
What is wrong whit this DEV C++ file?
 
I have a problem with a FreeConsole(true) thingy, take a look at this: #include <stdio.h> #inc...
[4 replies] Last: What isn't productive about learning? Well I'd not have a bunch o... (by ultifinitus)
by Sips12
New to C++
 
Hi All 1stly i'm new to C++ and i need to create a program that will calculate an average. It goe...
[3 replies] Last: number of desks per classroom = number of desks/15 (assuming number o... (by crossfire1703)
variables changing when passed to function
 
I've made a few projects recently where I pass an int to a function by value and then once inside th...
[3 replies] Last: Yes that's exactly what happens, and yeah it compiles cleanly, I only ... (by quirkyusername)
Menu selecting on a console application
 
Greetings! Just as a side project, I thought i'd try to make a menu selector in a console applicatio...
[2 replies] Last: This program was to provide event selecting of options rather than tex... (by fhornplayer)
Printf() in C
 
I code like this: printf("Input: "); scanf("%lf",&n); printf("6.2: %6.2lf\n",n); ...
[2 replies] Last: Thank you. I understand now :) (by Forte 201092)
Which delete format to use?
 
When do you use delete p vs. delete p ? Is there a big difference..?
[4 replies] Last: The difference between delete and delete is visible when you have... (by Bazzy)
class pointer VS class instance
 
hey, is there really a true advantage to using a class pointer than just making an instance of it,...
[5 replies] Last: Well then maybe you should. (by Moschops)
character encoding
 
Hi, I am really messed with the encoding schemes. I could not understands how to deal with the the ...
[2 replies] Last: Just curious. How did you establish that the small greek delta is writ... (by simeonz)
Using this-> vs. not using it?
 
I recently encountered a difference between the two ways of calling a parent method. You can either ...
[3 replies] Last: I don't recall exactly when, but there are some cases which accessing ... (by Bazzy)
Function Pointer
 
In C++ function pointer to a normal function and function pointer to a member function is a differen...
[1 reply] : Yes, in the pointer to member function declaration, you must specify t... (by Bazzy)
No matching function for call to error
 
I am currently having a compile error that reads: g++ -c -o assign3.o assign3.cpp assign3.cpp:...
[4 replies] Last: I completely forgot you thank you. I followed your direction and it wo... (by Boltftw)
by bionio
returning a pointer
 
Hey guys I am having trouble returning a pointer within a function. I am creating a program that bre...
[18 replies] Last: No i didnt!!! Hmm I will try it after I am done with some other HW. Bu... (by bionio)
by gfence
Floor/Ceiling (Temp Table) Question
 
I am trying to write a program to output the following table using floor and ceiling, however, for s...
[1 reply] : main must return int (5/9)*(fah1-32); Integer division returns an i... (by ne555)
Question about template class
 
Q6. Which of the following statements are true? A. A class template cannot be derived from a non-...
[3 replies] Last: Let me answer like this: there are only two conditions for deriving A ... (by simeonz)
What is wrong with this?!
 
Its having some problems with "radius".... Im not too sure what I've missed! thank you #inc...
[5 replies] Last: You're passing a circle to the funciton. Logically you'd want to use ... (by Disch)
Object names using variable contents?
 
I was wondering is it possible to create a new object named MemberX during runtime, where x is the v...
[3 replies] Last: Sounds like a perfect job for a vector: http://www.cplusplus.com/refer... (by closed account D80DSL3A)
General Class Question
 
The output for this code is myCount.count = 0, and times = 0 every iteration. I am trying to figure ...
[3 replies] Last: Thanks a lot for both of your help. (by kraigballa)
Linking errors for my Binary Search Tree program
 
This is my first post, sort of, and I hope this is in the right section. For homework, I am writi...
[2 replies] Last: Your reply gave me something new to search for, and you are right... f... (by jamesdavis86)
Read Binary object into an array?
 
I know the topic may be hard to understand, but I am basically trying to take an already stored bina...
[5 replies] Last: Something like this maybe, Loan Loan::operator+(const int num) con... (by naraku9333)
Can a pointer to a vector be invalidated by vector::reserve?
 
It's my understanding that a call to vector::reserve typically forces a reallocation, and invalidate...
[2 replies] Last: Thanks for the quick response. :) I was not sure as to what exactly wa... (by Deviouscola)
March 2011 Pages: 1... 28293031
  Archived months: [feb2011] [apr2011]

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