Beginners - April 2010 (Page 11)

how do i fix these warnings / errors from using multiset?
 
I am trying to learn how to use multiset, but my tests keep throwing errors from xtree rather than my from my own code. How do I fix this? // header #pr...
[2 replies] Last: Damn I'm dumb, that was it. Thanks! (by AlwaysLearning)
Declaring things from a class with a variable...
 
Okay, so I have this program, and it has a class "Hero" class Hero{}; I declare things from it using: Hero hero1; Hero hero2; Hero hero3; //etc... ...
[2 replies] Last: OH! I see now. Someone else suggested something about a vector array t... (by Oni Kami)
Stack
 
Hey guys, I have been looking into queue's and stacks this week guys and I decided that I would like to convert my current array into a stack. Does anyone know...
[17 replies] Last: I followed my book example and it was set up similar to this! I knew ... (by tarheelfan08)
Keep getting errors c2601 local function definitions are illegal any thoughts
 
My header is as follows const int TURN_ON=1; const int TURN_OFF=0; class lightControl { private: const int NUM_ROOMS; const int NUM_FLOORS; int bui...
[1 reply] : This is illegal: lightControl lightControl(x,y,TURN_OFF); You ca... (by jsmith)
Problem with cout <<
 
This code seems like it should work, but my compiler is giving me this message: error C2679: binary '<<' : no operator found which takes a right-hand operand...
[1 reply] : Try to #include<string> (by Bazzy)
Pancake Glutton Hit and Miss Program
 
I made this for the Pancake Glutton exercise and although it does work, it seems to be hit and miss. If anyone has any idea why I'd be glad to know. I would lik...
[2 replies] Last: You mean as in: int NumberOfPancakes = {p1, p2, p3, p4, p5, p6, p7... (by MottMan)
Whats a good C++ compiler?
 
I have been looking for a good C++ compiler without success. Could someone help? (Preferably free)
[5 replies] Last: I've heard that some people also like the Intel C++ compiler. For m... (by Albatross)
I get an error code after the output: CRL 80004005
 
//This program calculates the maximum value in a matrix and divides that value by the other members in its column. #include <iostream> #include <iomanip> u...
[8 replies] Last: Thank you so much for your feedback I realize now I have to rewrite m... (by marty09x)
by kodera
error with using a binary search
 
The program takes in a list of names, then sorts them, then asks for a name to serach for, and shoujld give the binary address of the memory. As of right now...
[3 replies] Last: first of all, change the if to if(Name==TwoDArray) and second, try to... (by justAbeginner)
Getting a type from a generated class
 
Hello everyone! I got a question/problem concerning templates. Consider following code: template<typename T,int sX,int sY> class Grid{ T data ;...
[2 replies] Last: Ahhh ... everything seems so obvious now. Thanks alot! (by Haderes)
Running total outside a loop.
 
Hi guys, let me begin by saying thanks to all involved in the site. What a great resoarce for anyone learning C++. I myself am only a few weeks in as part of my...
[7 replies] Last: Its just an exsorsise, the k variable should actually be 1.234 as it i... (by Smoothy8r)
by hatt
new to c++, ran into a problem
 
hey I'm new to c++ and i've done a few tutorials, but i find i learn better by experimenting with stuff, so im trying to add a few commands(from a website i go...
[16 replies] Last: another question, i tried googleing this but got nothing, is there a c... (by hatt)
Error in Binary'<<'
 
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion) Hi, I have been searchi...
[1 reply] : You have defined printPatientDateofBirth() as returning void; make it ... (by Zhuge)
by kodera
Ending out of loop without return 0
 
In my code, I am trying to end out of the for loop to continue with my next list of arguments, but do not know how to properly exit out of the loop so as to con...
[6 replies] Last: New problem... if you know how to fix, chime in!! When it gets to the... (by kodera)
no match for operator>
 
What am I doing wrong here? I really can't tell.. I'm pretty lost struct graph::path { vertex* dest; double cost; bool operator<(const vertex& rhs) co...
[2 replies] Last: yeah...missed that. Thanks! (by adikid89)
factors of positive numbers
 
I need to find the factors of positive numbers greater then 0 in an array. i need to count the factors and find the sum. I totally drew a blank and can't get a...
[1 reply] : does anyone have any suggestions. I guess what is confusing me is how ... (by flyraf821)
winner anouncment, in a game
 
hey guys, i wrote a code for a tic tac toe game, nothing to beautiful, but i hade some ishues(i managed to solve), but now i am at the "most important" part...
[4 replies] Last: thx bluezor i will try that :) (by justAbeginner)
what do you think?
 
hi 2 all... what do you think? what is the output of this form of for loop:a nested loop without{} float sum=0; for(int i=1;i<=11;i+=2) for(int j=25...
[9 replies] Last: friend, never mind.. just edit it well.. good luck in your assignment.... (by Maimaje Bello Abdullahi)
by zoerb
Extern Const int in header file
 
Hello, I am trying to create a unique ID for each World_Object that is created. //World_Object.h class World_Object { private: extern const int Objec...
[6 replies] Last: How would I use an initialization list to initialize two const ints? ... (by zoerb)
clear terminal screen on ubuntu?
 
how can i do so without using system("cls") or system("clear")?
[3 replies] Last: First off, you probably shouldn't be clearing the screen for what you ... (by Duthomhas)
April 2010 Pages: 1... 910111213... 35
  Archived months: [mar2010] [may2010]

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