Beginners - March 2016 (Page 43)

Help with problem
 
Ok, so for my beginner C++ class, I was instructed to write a program with a bool function that returns true if the sum of two integers is greater than 10, and...
[3 replies] Last: Thank you both for your help. (by Turtily)
hbubh
 
[1 reply] : I am confused! What are you want to do? Is this code supposed to find ... (by Calcushtag)
Redefinition of 'Linked Stack' as different kind of symbol
 
I am confused as to why it says I am redefining class LinkedStack on line 14 when I haven't defined it yet. When I remove template <typename T> on line 13, the ...
[2 replies] Last: Thank you very much. (by DoABarrelRoll94)
by nam13g
Error: Expression must have a class type
 
Hello all. This function is supposed to look at a file (which is opened in the main routine) and print the smallest word in the file. However, I keep getting "E...
[1 reply] : Hi, The length() function applies to the whole string not just 1 ch... (by TheIdeasMan)
by mcisa
User-defined decimals (0.1-0.9)
 
How can the user input a decimal between 0.1 and 0.9 and not get an infinitely large answer? The c value must be between 0.1-0.9, but when such values are enter...
[2 replies] Last: Thank you. I used double m1, v1, m2... instead of int, and it worked. (by mcisa)
Ofstream file with argv
 
Hi, I'm trying to pass a command line argument file from main to a class function and use an ofstream object to open a file (argv). I added the file to the ...
[9 replies] Last: thanks it works now :) (by closed account N8RzwA7f)
Game drop item across console :s
 
Hay everyone I am making this game where a number on monsters are placed on a grid at random (DONE). Once the monsters are on the grid food will fall from ...
[2 replies] Last: What type of game is this? Is in in the console, or does it have grap... (by mgoetschius)
How do I use a switch statement with a string?
 
So, One of my lab assignments is to take a word and output how that word would be spelled using International Civil Aviation Organization Alphabet words. Now, I...
[2 replies] Last: Do you still need help? I would start with an array of strings. Each ... (by xismn)
For Loops Problem
 
First time doing for loops/nested for loops. The problem I'm trying to work out is this: Write a program that computes the values of the sum (1 +.5 + .33 +.2...
[3 replies] Last: I'm not sure you're understanding whats happening, or I'm not understa... (by mgoetschius)
Bank charges
 
This is my first time learning C++ and I have a small problem with my code. I would appreciate any help. The issue is whenever I enter a negative value for my b...
[1 reply] : I also tried nesting the if statement with the balance < 400 in the fi... (by olimpiu)
by asya
Problem with readReaction function for a whole number
 
I have an assignment to create a program that reads 2 fractions and print their product. I need to have 3 constructors, one defaults, one that allows us to crea...
[4 replies] Last: I tried, but the program will not show the results, if I don't type a ... (by asya)
Smart Pointers
 
I messing with smart pointers. I would like to define a function that takes a copy of a smart pointer and does not mess with the original. # include <m...
[no replies]
Please Help! Bank Account Inheritance Assignment Problem
 
Hi, I was having problems with the following school assignment: "Define the class bankAccount to store a bank customer’s account number and balance. Suppos...
[no replies]
C++ Primer 5th or Professional C++ 2nd
 
I kno only the bare C base of c++, and could like to learn C++11 as a fresh start.I hav searched the net,and hav seen quite some posts in stackexchange and in c...
[3 replies] Last: You know what, try Professional C++(http://scanlibs.com/professional-c... (by theturk1234)
SDL problem
 
Write your question here. How do I fix this, I did everything that the lazyfoo tutorials told me too do, I don't know how to fix these types of problems. U...
[1 reply] : Most likely you are using either the wrong version of SDL.dll or you a... (by theturk1234)
by jam47
How to make random numbers between 2 to 5?
 
I want to output random numbers 100 times between 2 to 5 but I can't get it. #include <iostream> #include <cstdlib> #include <ctime> using namespace...
[2 replies] Last: Now I get it. #include <iostream> #include <cstdlib> #include <ctim... (by jam47)
Help with compound interest calculator
 
Hi all: Still a beginner here and doing homework but have a issue with my program that I can figure out. it runs correctly for low number of years 10 or s...
[2 replies] Last: Hey bro,type in the whole program so tht we can check the code for fla... (by MaBunny)
my function wont update variables in main()
 
I am trying to make a program that can calculate linear digits of pi by using the formula pi/4 = 1 - 1/3 + 1/5 - 1/7...etc. however I cant seem to get the two f...
[3 replies] Last: ok thanks both of you for your help I appreciate it and will look into... (by overlander27)
by Vidus
help with error
 
when i run my program i get this error http://postimg.org/image/r0jxz88bz/ here is proxy class class Proxy { public: float minX,maxX,minY,maxY,mi...
[2 replies] Last: sorry im confused i was trying show where program crashes. and i showe... (by Vidus)
How to send class method to the screen
 
I cut out most of the code to keep this short. I need to cout: double test::determineAverage(test guy) from: void test::display() by a class obj...
[3 replies] Last: OP, You never, ever, define int main() inside of a class. Maybe that... (by theturk1234)
March 2016 Pages: 1... 4142434445... 47
  Archived months: [feb2016] [apr2016]

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