Beginners - August 2009 (Page 16)

not understood error message
 
im getting an error message "cannot resolve address of overloaded function". its happenning whenever i try to call one of two methods i have of a class. im stuc...
[2 replies] Last: i found my mistake... im reeeaaaalllllyyyy stupid =P sorry for troubli... (by robman8855)
Random Numbers
 
i am trying to generate a random number between 0 and 1. i thought the code would look like: rand() % 0 + 1; i keep getting a warning "potential mo...
[7 replies] Last: rand() % x is calling for random integers within a range of x from... (by robman8855)
Issue with the C2447 error message
 
Hey, this is a definite noob question here, but I am absolutely stumped. Here's what's happening: I'm trying to modifying an existing open-source game in C++...
[12 replies] Last: Hmm. I'm afraid I'm in for a rough time, in that case, but I probably... (by SecretAgentMan)
using static_cast<char>
 
Problem: Write a program that prompts the user to input an integer between 0 and 35. If the number is less than or equal to 9, the program should output the num...
[2 replies] Last: Thanks a lot. I know it probably wasn't hard for you (by mcnickmac1)
Compiling with a .def file in VC++ 2008 Express
 
Hi, I am trying to create a DLL with functions that I would like to use in MS Excel. I am receiving the error msg "Can't find DLL entry point ..." when I st...
[4 replies] Last: IT WORKS !!!!!!!!!!! Thank you so much for your help!!!!!!!!!!!!!!!!!... (by tky3142c)
by wincry
How to make gtkmm in windows using MinGW
 
Hi Everybody, i want to make gtkmm in windows using MinGW compiler 4.4.0 ,but i cant configure and make the package . i have downloaded ...
[no replies]
while (std::cin >> value) doesn't seem to work.
 
#include <iostream> int main () { int sum = 0, value; std::cout << "Input some numbers." << std::endl; while (std::cin >> value) sum += valu...
[3 replies] Last: #include <iostream> int main () { int sum = 0, value; s... (by closed account z05DSL3A)
Template class error
 
i'take error line 31,32,33,34.i didn't solve it.thank you #include <cstdlib> #include <iostream> using namespace std; ///////////////////////////////...
[4 replies] Last: http://www.cplusplus.com/forum/beginner/1/ If You Can't Get An Ans... (by wmheric)
by Duncan
Dynamic Memory Allocation (why?)
 
Hullo everyone. I know all about dynamic memory allocation and how it is done and what it accomplishes but honestly I don't see much in the way of application o...
[7 replies] Last: I actual meant virtual computer. Still confused? As I recall, a vi... (by kbw)
scanning two dimensional arrays
 
for the program i will be given a auditorium with empty and filled seats as in the link provided... http://clipper.lehigh.edu/engr1/pas/reserv_a.txt I d...
[1 reply] : A tip: Read the message "Welcome - read before posting" thread in thi... (by webJose)
Can't break out of loop that creates instances
 
Hey guys: I'm having trouble breaking out of a loop that takes input from a file. I can only break it if I make a code that specifies how many inputs there a...
[1 reply] : Well, you haven't posted enough code to try to execute it... But yo... (by Duthomhas)
by leniel
Urgent Assistance PLS
 
The problem ask to enter numb of students up to 100. but the user enter let's say 10. how do i manage to do that in arrays. Sorry if is a bother but I'm a n...
[1 reply] : http://www.cplusplus.com/doc/tutorial/dynamic/ (by helios)
A simple problem with a while loop.
 
#include <iostream> int main () { int v1, sum = 0, end = 0; while (end = 0) { std::cout << "Enter a negative or positive number ...
[3 replies] Last: Oh, thanks a bunch. I remember reading that a long while back on this ... (by closed account Ly59GNh0)
by j3lps
Initialising 2D vectors
 
Hi All, I wonder if anyone can help me with this - I'm trying to create a 2D vector. So in a header file I have: std::vector< std::vector< float > > ite...
[7 replies] Last: This is the way that I work with vector of vectors: int num_of_col... (by gi0rgi0ne)
by hgr126
How to sort similar variables together?
 
For example i have in my struct ->eg: test .blabla= MA for first record,test .blabla SC for 2nd, MA for 3rd, 4th MA, 5th GE, 6th SC, I can't seem to figure how ...
[7 replies] Last: hey kempofighter, really many thanks for your help, but i realised the... (by hgr126)
To be friend or not to be friend
 
Hi, recently I'm writing classes/templates for polynomials and matrices. There seems to be several ways in which I can overload the "same" operator. I wonder wh...
[2 replies] Last: Now things are clear, thanks Disch :) (by wmheric)
by Bv202
Dynamic Memory question(s)
 
Hi, Dynamic Memory is something where I seem to have problems with it since I started with C++ a few months ago. For example, you can make a dynamic arra...
[2 replies] Last: Thank you, I'll have a look at these. I'm a bit tired right now, I'... (by Bv202)
Password program
 
I'm looking to write a small, basic password program and was wondering if someone could tell me some of the headers and functions I might need. Then I'll jus...
[12 replies] Last: BTW, in response to the star question... The '\b' character only caus... (by mcleano)
by Null
#if 0
 
I found this in few .h files: #if 0 #if something #define something #endif #endif so what #if 0 does?
[1 reply] : Some people use it to avoid the compilation of some part of code ( som... (by Bazzy)
Quetion regarding polymorphism
 
Hello, I was thinking about this. If we have two classes, let's say Circle and Triangle, it'll be best to put the common things in a base class. And make it...
[6 replies] Last: Put it in simple language. Let's say you have a function that recei... (by webJose)
August 2009 Pages: 1... 14151617
  Archived months: [jul2009] [sep2009]

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