Beginners - May 2011 (Page 41)

by tmso
Please help! Problem calling different constructor in constructor
 
Hi, I don't understand why I can't call the constructor of the class 'line' in a constructor of class 'rectangle' when I declared a line member variable in the ...
[8 replies] Last: Sorry I didn't highlight my code, this is the first time in my life po... (by tmso)
#include <vector>
 
Ok this one has me a bit confused. I'm trying to compile a .h file by itself #ifndef SOLVER_H_ #define SOLVER_H_ #include <map> #include <vector> te...
[3 replies] Last: bingo. Thanks. (by theexactpoint)
Visual Studio and intranet location for projects?
 
I working in Visual Studio 2008 it installed on VMware virtual machine I’d like to store all my projects on host machine so I made share folder and put path i...
[no replies]
C++ ques doubt 1
 
Hi, I had an exam on OOPS today and wasn't able to answer 3 ques as I am not that good at OOPS. Wish to discuss and understand what could be the possible solut...
[1 reply] : Look up "const member functions" or "const methods". That should have ... (by Zhuge)
Creating, Reading From, Writing To Files
 
I have two programs for school. The first program involves the user entering the number of rows and columns of a matrix, then use the random number generator to...
[2 replies] Last: Oh okay well heres the rest of program 1... #include <iostream> #incl... (by cabbagemista)
Preventing copying and assigning objects
 
Hi, How can
[2 replies] Last: yes, over-ride default constructors and assignment operators with priv... (by kfmfe04)
Pass 2D array to a function!!
 
how to pass 2D array to a function ? e.g: void twoDim(int values ,int size) { for(int i=0; i<9; i++) { for(int j=0; j<9; j++) ...
[4 replies] Last: thanks both :> it works. (by Thuraya)
easy question
 
#include <iostream> #include <cmath> using namespace std; int main() { int i; int z; int x; for (i = 1; i< 10; i++) { x = 2; ...
[8 replies] Last: by using the = operator z is getting a new value each time. what *= d... (by ascii)
Derived Class
 
Hi, I am a newbie and unable to clearly understand how the classes derived from an abstract base class work. My question is :
[3 replies] Last: You'll need to override every pure virtual method of the base(s) if ... (by closed account 3hM2Nwbp)
Making a math testing program.
 
Hello, my name is Josh Johnson, and I'm new to this forum. I'm 18 years old, and I took a small class on C++ programming online, so I know the basics of program...
[8 replies] Last: theyre called functions. http://www.cplusplus.com/doc/tutorial/funct... (by ascii)
by OkTim
ASCII
 
I have a little problem :), I don't know how to convert char to ASCII number. Can anyone to help me?
[no replies]
by rvevea
Stepping past stupid
 
I'm just curious if anyone else out there feels dumb at times? My Situation: I've been coding off and on for probably 10 years now (started around the age...
[2 replies] Last: True. I learned C (and thought it was C++) by force trying to learn t... (by webJose)
Default Arguments Help
 
Hi guys, I have a program that try's to use default parameters (arguments) as a way for a function to accept varied arguments, however, I keep getting errors...
[16 replies] Last: The issue is that his assignment is to use default parameter values, ... (by closed account zb0S216C)
Please help!!! i cant find the problem of the program
 
#include<iostream> #include <string> using namespace std; int main() { int select,select1,installment; int total,total1, char*carModels ={"ford foc...
[1 reply] : no need to make a new thread: http://cplusplus.com/forum/beginner/4... (by Disch)
Modulus understand even more.
 
Hello, i know how to use modulus but i dont understand what a part of this code means: a % 2 == 0 what does 2 == 0 means? why is there a zero over there? ...
[5 replies] Last: Thanks, finally got it. (by Love236)
Easily comment out cout
 
In my code, i have lots of couts which i use for debugging purposes. Rather than having to comment out all the cout statements, i've heard there is a much easie...
[13 replies] Last: Then how about: #define Debug(x) if (dbug) x; Then you would do: D... (by anonymous23323124)
According to VS, I'm <<mising ";" before "*">>...
 
Hi everybody. I'm staring into my screen for a while and can't figure out what's wrong. Could you help me? Here's the code of Truck.h: //DONE #ifn...
[3 replies] Last: It was indeed the spelling problem. :) (by vutives)
Ordering matrix components
 
I'm new here but i heard here i can find a helpful community.I have to solve this problem:It reads a square matrix of order n from keyboard. Order in ascending...
[no replies]
Read Access Violation on QuickSort?
 
My program compiles, but when I do the quicksort call, I get a read access error...and I can't figure out why. Any help? Here is my code. template <class ...
[no replies]
Array 2D
 
I am receiving a C4700 warning. The C++ program I am building, is suppose to allow user to enter (50)numbers, store in array, calculate the average of numbers i...
[2 replies] Last: Thank you Disch. The warning is: uninitialized local variable "tot_... (by masquerade1986)
May 2011 Pages: 1... 3940414243... 48
  Archived months: [apr2011] [jun2011]

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