Beginners - November 2011 (Page 36)

Overloaded setter/mutator
 
I am working on a school project where I am to create 2 instances of an employee object, one where we are to enter the information and one using provided values...
[2 replies] Last: Honestly, your explanation is close to not understandable. Be more pre... (by coder777)
argc and argv
 
I've seen this a lot. I've watched a couple of videos. I know the first one is number of arguments, I think, and second is an array containing the arguments, bu...
[1 reply] : Ever used the command line to do anything other than start a GUI? How ... (by Moschops)
HELP I got tired of fixing it.. T_T
 
#include<iostream.h> #include<conio.h> main() { clrscr(); int number; char re; cout<<"multiplication table "<<endl; cout<<"EXIT "<<endl; cin>>...
[7 replies] Last: If I do that the my invalid output won't be shown if I type any number... (by Sky Gio)
policy based design of "modern c++ design"
 
According to "modern c++ design", "effective c++", boost and loki. I believe that policy based design is very powerful(not mentioning about TMP yet). The id...
[no replies]
Getting a bunch of errors from one line of code
 
Hey guys I am currently doing a homework assignment for my class and I could use a little help. The assignment is to create a an abstract class called "number" ...
[1 reply] : I didn't compile this yet but from what I notice, you have alot of hea... (by WilliamW1979)
Header creation from a .cpp
 
Hello everyone. I have been attempting to create a header file for the past 4 hours and failed miserably. I also read/tried multiple way of making said header f...
[5 replies] Last: Multiple definition generally means either something was declared twic... (by WilliamW1979)
Stack Data Structure:
 
Hi....whats the starting code of it and header file aswell? Only following Binary operators are allowed for this program: +, -, *, /, ^ [addition, subtracti...
[no replies]
What's wrong with this sorting?
 
I need to sort this 2d array filled with random numbers. here's my code so far. #include <iostream> #include <ctime> using namespace std; void sort(i...
[4 replies] Last: I think when you sort your test arrays, you only compare the current a... (by novablows)
by sman
suggestions please
 
I'm trying to make this work. Seems simple enough but it's returning only the first integer input. The invalid operator function isn't working as yet either. Th...
[1 reply] : This: cout << "Enter two integers: (using comma in between) "; cin >... (by closed account D80DSL3A)
Sorting Array without changing Index Values?
 
I'm SUPER rusty at C++ and am trying to brush up. I'm trying to write a program that will allow a person to input 10 numbers, then sort them and output the res...
[8 replies] Last: Vectors really aren't that tough to get your arms around. I'm relative... (by mzimmers)
by dpan
Why is this not a constant value?
 
I'm trying to use a global constant variable "SIZE" for use in declaring an array in a function, but even with passing the value to the function, my compiler (M...
[3 replies] Last: Hmmm, ok, I understand the error I was making. Thanks for the quick re... (by dpan)
lexicographical comparison
 
I have been trying to a lexicographical comparison with my doubly linked list but I have no idea what to do with it. here is my code: template <clas...
[2 replies] Last: Alright this what i coded so far: template <class T> bool List<T>::o... (by saverman12)
While loop with nested if won't iterate
 
Can anyone tell me how to get this while loop to iterate. I know it has to do with the way it is reading the if statement, but I am not sure how to fix it. Inst...
[3 replies] Last: Thanks guys! I guess I got tunnel vision. I am totally palm smacking m... (by EleventhHourZ)
by Hotice
Getline isn't working
 
Hi my name is Mike and I have a computer science project that I am working on. I have tried numerous times on it. It is a sorting program that should sort a tex...
[4 replies] Last: That was my idea from my last attempt! I was trying, in my last attemp... (by Hotice)
by Silkxx
Help with error when running program
 
Says cannot convert double to double #include <iostream> #include <iomanip> #include <fstream> #define MAXTEAMS 48 using namespace std; struct teamInfo {...
[4 replies] Last: Check the spelling and capitalization of the function call to make sur... (by shacktar)
Removing duplicates from an array
 
The removeAll function is where my problem is. Every time I compile it I get an error saying [Linker error] undefined reference to `removeAll(int*, int, int...
[3 replies] Last: thanks. (by DocCeaser)
Help with Nested loop
 
Hello, i posted a problem similar to this already, but i now have some code down and just want some assistance. My program uses a nested loop to import data fro...
[no replies]
by ascii
Postfix Notation Calculator
 
I was doing an exercise in the C Programming Language (exercise 5-10), where I have to create a reverse polish notation calculator. Everything is working excep...
[5 replies] Last: Haha, didn't see that coming. So it's interpreting it as the operator... (by ascii)
Error 2660 ... function does not take 1 arguments multiple times. Doesn't appear to be the usual goof.
 
I've been searching for the cause for most of two days now. I'm not a beginning programer, but I am new to C++. suspect I am missing two things or just the co...
[3 replies] Last: Thanks alot Coder777 and helios I was able to get this after falling ... (by seadrake)
by Luftey
User Defined Class Program, assistance needed
 
I have to write a program that meets the following criteria: Build a class called "grades_record" for storing the grades of each student in this course. ...
[no replies]
November 2011 Pages: 1... 3435363738... 65
  Archived months: [oct2011] [dec2011]

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