Beginners - October 2009 (Page 8)

how the member function can access private variable
 
Hi I have a strange question. consider the following example. I understand that private variable c...
[1 reply] : Private members can only be accessed by member functions of the same ... (by helios)
error C2061
 
: error C2061: syntax error : identifier 'density' I have done quite a bit of research about this...
[4 replies] Last: Ha. Wow. Perfect answer. I completely missed that. I had been changing... (by Programmer Will)
trouble printing an array....
 
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an arra...
[4 replies] Last: Ok i see. I looked at the tutorial and it explained it to me better th... (by bwright)
by triz
Entering values for choices
 
I'm trying to write a program where it asks for which choice, A or B and after selecting the choice,...
[1 reply] : Please use [co de][/co de] tags and format your code. I'm not rea... (by chrisname)
by sato
Learning technique
 
Hi I am learning c++ from the book. What would you recommend: to got through the book as fast as re...
[7 replies] Last: Just because your teacher doesn't use it doesn't mean the book sucks. ... (by chrisname)
problem with project
 
Hi everyone. I am new here and here is what I have going on. I have been working on a project for ...
[1 reply] : What you have posted above doesn't compile - there are some errors an... (by guestgulkan)
Function summing n integers
 
Having trouble writing a function "compute_sum" that will ask for n input and then sum the first n i...
[4 replies] Last: Fair enough, I will spend some more time on it and figure out the rest... (by foncused)
Taylor Series Function
 
So I am working a a project for my intro C++ class, and I am having some trouble with a function for...
[3 replies] Last: Thanks a lot!! It works. (by iowabball)
by Fsmv
Multi dimensional arrays
 
If I put in this code: #include <iostream> using namespace std; int place = {{0,1,2,3,...
[4 replies] Last: The problem isn't with the array definition, it is will your for loop... (by Fsmv)
by baross
Converting numbers to months -
 
The porgram works -just need the last function(month_convert_ to convert numbers to months -thank...
[4 replies] Last: To Kempofighter: Thank you for posting the link and for calling my... (by baross)
Unit Transformer
 
Hello I found an exercice which seems important for me Write a program that can transform from ce...
[1 reply] : Don't use void main, use int main instead. You have some illegal st... (by firedraco)
If statements Exercices
 
Hello. I have an exam tomorrow in "if statement" it's just a small Quiz and the teacher will ask...
[2 replies] Last: I would just review information on control statements and operators. ... (by kempofighter)
Doubles are giving me problems
 
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I ...
[8 replies] Last: Ok problem solved just had to change the condition of the while loop s... (by Ima noob)
Libraries in C++
 
Hi all, I have two libraries. one is based targeted on linux platform and uses another library wh...
[10 replies] Last: Hi Helios, Thanks for the help. Since, this thing didn't work I am ... (by abhipro)
How to calculate the prime factors of a number using a function?
 
Hello. I'm new to c++ and trying to get used to using declaring and using functions. For practise I'...
[6 replies] Last: I would use a std::vector<> or std::deque<> instead of an array; they ... (by jsmith)
Calculating n! using vector
 
#include <cstdio> #include<iostream> #include <vector> using namespace std; int main() { ...
[2 replies] Last: Your problem is that you aren't managing the carry correctly, because ... (by jsmith)
by Bv202
Dynamic memory problem
 
Hey, At the beginning of my code, I have this line: Shape* gShape = 0; As this is dynamic m...
[6 replies] Last: If you have not implemented a copy constructor and assignment operator... (by jsmith)
How to add an image/C++ OpenGL?
 
Hi, I have been trying to look online for this and, so far, I haven't found anything useful. I wo...
[3 replies] Last: I wrote simple BMP and TGA readers for use with OpenGL a while ago. T... (by Duthomhas)
why use #define?
 
Why not just put the number itself in?
[16 replies] Last: That reminds me I need to learn sorting alogrithms and linked lists an... (by chrisname)
Problem in String replace program's output
 
Hi all, I was trying to make a program which accepts a string and replaces it with another string a...
[6 replies] Last: fgets(pointer to string, amount of characters, file); File will be ... (by chrisname)
October 2009 Pages: 1... 678910... 25
  Archived months: [sep2009] [nov2009]

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