Beginners - October 2010 (Page 33)

Derived class constructor
 
Can someone help me see why this apparent asymmetry make sense? A derived class’s constructor explicitly invokes its base class’s constructor, but a de...
[3 replies] Last: You never invoke destructors explicitly. Destructors are automatically... (by naivnomore)
Slight issue with a global declaration
 
I have a slight problem with a variable set up. I am making a poker game for a school project. I have created a variable to store the last bet made for each...
[10 replies] Last: lastred is typed incorrectly (lasstred) Other than that, as long a... (by Disch)
Debugging problem
 
Up till today I haven't had any problems debugging and running my programs. I had a class assignment to make a program that would make a diamond out of *. I w...
[3 replies] Last: Write a simple hello world app see if you still have problems and post... (by gcampton)
If, else statements
 
I am a student working on a project. It is a simple program but due to me missing some classes I am lost. The program is suppose to prompt the user for a type...
[2 replies] Last: Thanks man, really helped me out. (by CTMitchell)
Undefined Reference during linking
 
I'm a student working on an assignment, but am stuck in an area. The assignment is to do some basic arithmetic, and the three files I am working on compile fine...
[4 replies] Last: I'm not sure if this properly answers your question, but I'm linking t... (by bluesilver89)
const and iterators
 
helllo, i've got a problem with the code below. I think the problem lies with the const command . I understand you have to use const_iterator with variables t...
[3 replies] Last: yes (by Bazzy)
by dznguy
return 0; problem
 
this prgm convert F to C or C to F. #include <iostream> #include <iostream> #include <iomanip> using namespace std; double calcFahrenheit(); double cal...
[4 replies] Last: 1. Line 17, why not have; while (choice != 1 && choice != 2); thi... (by AlphaBravo)
Tic tac toe in C++ onclick event example
 
So i'm using visual studio.NET to create a tic tac toe game in C++. What i have done so far, i created 9 lables i put them into an array. Now what I would like ...
[2 replies] Last: #pragma once namespace tictactoe { using namespace System; ... (by donaldfarkas)
by nicke
C program arrays - strings
 
Hi everyone! I started a month ago learning the language of C. Its very difficult sometimes for me to figure out the code, and even it is difficult to think ...
[1 reply] : You can make an array of 10 strings so that your_array = "XYZ" , you... (by Bazzy)
expected primary-expression?
 
I don't know what the errors I'm getting mean. I've commented in the errors on the lines they appear: #include <iostream> using namespace std; void getV...
[1 reply] : If you want to pass the array (pointer) to a function, you have to pas... (by Bazzy)
Strange linkage error... Using eclipse
 
I have a static class function defined: Function.cpp //determine if this line is a function, return true if it is. //does not include constructors. stati...
[2 replies] Last: Thanks - Chose option 1. (by closed account Lv0f92yv)
oh noes! i need advice!
 
need help writing a program where the computer will think of a random number between 1 and 9 and the user has to guess what that number is. then if they guess ...
[6 replies] Last: haha, i was in a hurry...and @ Albatross: didn't know, besides... ther... (by sargon94)
c++ program set operations of 2 arrays with no duplicates
 
Hi, My name is Matt and this is my second year learning c++ programming. I am almost finished with this program I am working on but I am having one problem w...
[no replies]
Having a serious problem with my Homework.
 
My homework states: "Write a program that allows the user to enter the last names of five canadiates in a local election and the number of votes received by eac...
[6 replies] Last: Thanks for the help, everyone :) (by tehevan)
by wtf
djgpp doesn't have windows.h
 
is there any way around this? I couldn't download codeblocks today at the library but I was able to download and install djgpp (http://www.delorie.com/djgpp...
[4 replies] Last: Also I just found out that djgpp compiler is like 20 years old. So i'... (by wtf)
Can someone explain these lines for me
 
Hi I was searching for a word count code and I came across this one http://www.cplusplus.com/forum/beginner/1404/ witch I think is the easiest one to understa...
[2 replies] Last: Thx alot man, just what I needed to know :D (by olafurfo)
by bl90
implementing classes
 
hey i hav an assignment and i can't get the first part of it to work, we have been given a header file that we can't change class Card { public: fri...
[6 replies] Last: i can change everything except the header, i'm just saying that i don'... (by bl90)
Configuration file input/output (1,2)
 
Hello! I looked through the documentation on file input/output but I need a little bit more light shed on this situation. How would I go about configuration fil...
[22 replies] Last: Okay. Thank you. One thing I just thought of, writing the stats bac... (by Neo Nemesis)
sizeof multi_array are 48 bytes for one dimension?
 
Below is my code #ifndef MULTIARR_H #define MULTIARR_H #include<iostream> using namespace std; #include <boost/multi_array.hpp> using boost::mu...
[6 replies] Last: thanks a lot This is the first time I really know how many memory vec... (by stereoMatching)
Sorting Arrays
 
ok, im doing the pancake glutton problem found on http://www.cplusplus.com/forum/articles/12974/ . i plagiarized code from wikipedia (the code i pasted below) a...
[2 replies] Last: Actually I still wonder if you are a business application developer th... (by sohguanh)
October 2010 Pages: 1... 3132333435... 42
  Archived months: [sep2010] [nov2010]

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