Beginners - February 2016 (Page 43)

Please help with "container" code
 
:116: error: invalid operands of types `int' and `<unknown type>' to binary `operator<=' #include <iostream> #include <iomanip> #include <cstdlib> // ...
[2 replies] Last: @chervil thank you SOOO Much. (by leashbomb69)
Help
 
It says ERROR:C4716 Vector::NormalizeInPlace': must return a value Im very new to C++ and i need help if anyone could help inline float Vector::NormalizeI...
[9 replies] Last: Does your code define function main() ? (by Chervil)
by Mavs25
Help me with my code?
 
1) const double taxrate = 0.0875; According to checkpoint 3 this must be "Use a defined constant for the tax rate" 2) Price for each item according to check...
[2 replies] Last: how did you define the taxrate previously? #define works like search ... (by Jaybob66)
Silly question; maybe
 
Is it possible to have a variable type with several possible values. For example int = 8 || 5; string token_1; = '+' || '-';
[5 replies] Last: I know you marked this as solved, but did you see strtok()? http://www... (by Jaybob66)
Help with beginner problem
 
So I'm trying to code this program but the code I keep trying is wrong or just doesn't give me the right answers. I need to code a program that will compute the...
[12 replies] Last: sweet :) (by Jaybob66)
Beginner Array Program Help!!!
 
I am confused on how to go about this adding in all the required rules...please help! Write a C++ program in a file called math.cpp that reads user val...
[2 replies] Last: You should really make a start for yourself, but here's a little help ... (by Jaybob66)
by nj1995
Problem with resize function
 
Hi, my program appears to be working for the most part, except for when I want to resize my c3 object to 7, which doesn't work. I am unsure why this. Any help i...
[3 replies] Last: when you call c3.resize(7) (which was previously 4, you decrement co... (by Jaybob66)
Getting back into C++
 
Hey whats up guys, I have not done any programming for at least 3 years, im trying to get back into it. The problem I am having today is getting my user defined...
[2 replies] Last: Wow, thanks haha (by bbunn77)
Why we use string library while using string data type?
 
According to book from which I am learning C++, you should add string library before using string data type, but suddenly when I missed adding string library th...
[2 replies] Last: A little more informative: http://stackoverflow.com/questions/9539650/... (by cire)
// Creates and manipulates a person with a first name, last name and age
 
Why am I getting the error of the argument has not been declared #include <iostream> #include <string> #include "Person.h" #include <cassert> using na...
[1 reply] : Please post the EXACT text of the error message you're getting. You ... (by AbstractionAnon)
Issues with basic OOP Program
 
Hello I have recently created a basic OOP program for my college assignment but am experiencing a very tedious issue that I have been trying to solve. I have ...
[11 replies] Last: @kbw Oh right okay I see, relatively makes sense, I guess that would b... (by tyrelg123)
Composition example error
 
I am trying to make a program which the user types the current date, user's name and birthday then the program calculates the age using 2 different classes whe...
[1 reply] : Your problem is pretty clear. This is your age function - age(int d... (by TarikNeaj)
Possible Linking Issue
 
Hello all, Firstly, let me apologize for anything out of the norm in this post; it is my first. I have to write a program that parses an input file and g...
[3 replies] Last: @Moschops I did not realize that the actual #include directive would ... (by edge6768)
gets(name) does not Invoke second time.
 
Dear Sir, I always get problem in getting strings by gets(name). It does not invoke second time. can you please check below code. //Static Data Mem...
[4 replies] Last: [quote=Thomas1965]It worked on my PC. http://www.cplusplus.com/refere... (by Peter87)
Error using cout with char*
 
Hi, I cannot seem to understand why am I getting this error: \main.cpp(8): error C3867: 'Mammal::getName': non-standard syntax; use '&' to create a pointer t...
[2 replies] Last: Oh fail. Thank you c: (by kingpulse)
by rantiv
Factoring
 
How would i get this to print out in descending order? #include <iostream> using namespace std; int main() { int n,i; cin >> n; for(i=1...
[2 replies] Last: Yup that worked! Thanks so much!!! (by rantiv)
Error in Programme
 
Dear Sir, I dont understand the below error in following Program. I'm trying to return objects from member function. 35 C:\...\Untitled1.cpp no match f...
[2 replies] Last: Thank you.. I wonder when ill become expert in programming (by Adeelpak)
Help to find the area under a curve
 
I need to write a code to find the area under this curve: f(x) = 5x^3 + 7x^2 – 3x + 4 and I've been trying to look at examples online to understand how but ...
[2 replies] Last: This assumes you understand some calculus, and the idea of a limit. Us... (by Duthomhas)
calc issue
 
wew
[1 reply] : #include <iostream> #include <fstream> int main() { const int AR... (by JLBorges)
i can't get printf to work inside any of my loops
 
I can't get printf to work in my loops.. all I can get to print is my extras to know that I am in fact reading from a file, and the initial 0. above my code is ...
[1 reply] : Is lab1.dat a binary file? (by JagerDesu)
February 2016 Pages: 1... 414243444546
  Archived months: [jan2016] [mar2016]

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