Beginners - February 2016 (Page 18)

Problem with function
 
I keep getting the error that offset and days were not declared in this scope in the displayTable(offset, days) in the main function. Could anyone help me se...
[1 reply] : The online compiler sees your posted code differently: In function '... (by keskiverto)
Finding quadratic real roots with minimal computation
 
I'm working on a problem that says to write a program that accepts from the keyboard 3 numbers a, b, c which are the coefficients of the quadratic equation ax^2...
[3 replies] Last: Well, the exact details I'll leave up to you. It's common in finding ... (by Chervil)
question on strcmp
 
Hi 1 is true and 0 is false so why do the following two lines of code indicate 0 and 1? should they not output 1 and 0 respectively, since the first line is ...
[2 replies] Last: Also, see http://www.cplusplus.com/reference/cstring/strcmp/ for meani... (by Chervil)
Future Value program for current currency change
 
So i have a problem , i need these 2 functions to run together in which dollars from the first funciton is the present value used in the second function cpp....
[no replies]
Do While loop not functioning
 
In this function when i try to write in invalid command like "arblegarble" it hits the else if statement and stays in the loop. However, When i purposely go in ...
[8 replies] Last: Thanks. I did figure it out. (by Hirokachi)
Pointer arithmatics and c style arrays
 
I am trying to improve my understanding of pointer. i know that there are smart pointers and vector/array containers in c++ now and i should use them as that wo...
[3 replies] Last: Ohh that was so silly of me. I guess i was only paying attention to th... (by saherch)
assign values to card
 
this is my whole code but i have an issue in the card class with the get value member function how do i do assign values from 0-13 for each card of the deck? ...
[2 replies] Last: Why don't your classes have constructors that initialize their member ... (by jlb)
Help with palindromes?
 
Write your question here. I'm almost finished, but can't complete my code to make it work. I want it to take user input of integers and output whether it is a ...
[4 replies] Last: You have the right idea logically for checking a palindrome, but you'v... (by dhayden)
problem with a very simple addition of digits
 
The code below creates a file, it stores in it all the numbers from 1 to 100. Closes the file. Then, it opens the file, reads all the numbers one after the oth...
[4 replies] Last: The first 23 lines are fine.They will store numbers 1- 100 in a file.... (by TheIdeasMan)
Standard deviation function
 
I've been trying to write a code for standard deviation and I thought I nearly had it, but it's still slightly off. Could I please get some help? It's getting a...
[13 replies] Last: @ fizrub Please don't bust into someone else's Topic. You have your ... (by TheIdeasMan)
by fizrub
Unhandled exception error
 
Hi! This is all my code. When i debug it, at the 15th line ( c .push_back(card ); ) i get "Unhandled exception in Cpp.exe: 0xC0000005: Access Violation." error...
[4 replies] Last: OK ) Thanks very much . (by fizrub)
Read in 10 Choices of Input By User
 
So I'm working on this program that basically serves as a grade book and I have the basics down but now I'm stuck. I can't figure out (for the life of me) how t...
[1 reply] : You need a loop, specifically For-loop - http://www.tutorialspoint.co... (by TarikNeaj)
by Haziq
How to get data file name from other function?
 
Hello and good day. How do i set myfile from searchstat() to get the file from loaddata() ? void loaddata() { ifstream myfile; while(!myfile.is_open()) ...
[10 replies] Last: case 1 : WeatherReports.LoadData(string &file); //HERE! ... (by TarikNeaj)
by RWB
Header file Program Won't Compile
 
I have a program that I can't get to compile. I have problem with Employee.cpp but I can't figure out how to fix it. Here are the requirements for the progra...
[9 replies] Last: The Employee constructor expects a Name object but you try to pass a s... (by Peter87)
value class
 
i figure it out
[3 replies] Last: You know it would be less cancer for our eyes If you used the code bra... (by closed account 1vD3vCM9)
Write a program using nested loops that asks the user to enter a value for the number of rows to display
 
I have to write a program that ask the user for input of an integer and displays rows like this, using loops: Input: 6 *****? ****?? ***??? **???? *????...
[2 replies] Last: Thanks. Using that i should also have the integers i and j, right? (by YamiFrankc)
pass 2-d array to function in turboo c++
 
please help me to solve this Write a function called biggestEntry( ) that uses a two dimensional array and two parameters representing the row and colum...
[5 replies] Last: PLease fix the above programm and correct my programm (by Muhammad Abdullah)
by edave
help with functions
 
so i got the code right however it's telling me that the function that i am calling failed the test. which i have no idea what that means. this is the assignmen...
[1 reply] : so i got the code right I don't think so. Output of your code: Wri... (by jlb)
Simple function
 
I have three problems due in 3 more hours. I thought I could figure them out easily so yes, I waited till the last minute. I know they are fairly simple but don...
[4 replies] Last: Thanks everyone that helped (by doctterdre)
selection sort problem
 
I am just learning the selection sort algorithm and I cannot seem to understand how this selection sort works. Its supposed to take the largest index and sort i...
[1 reply] : This will help: https://www.youtube.com/watch?v=GUDLRan2DWM&list=PL2_a... (by Arslan7041)
February 2016 Pages: 1... 1617181920... 46
  Archived months: [jan2016] [mar2016]

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