Beginners - March 2014 (Page 25)

Function assignment problems
 
I have an assignment where I'm supposed to take an old code and rewrite it using functions. I'm still a little shady on where I'm supposed to include certain pa...
[9 replies] Last: What are you doing? int main () { double fv; calculateblah (flo... (by closed account iAk3T05o)
pointers and conditions
 
I do not understand how you could have a pointer to a string literal. and the condition to, const char *cp = "Hello World"; // is this possible, cuz it...
[5 replies] Last: oh! And I was thinking that non-null pointer is something different. T... (by NPcomplete)
by enemy
Value of an object?
 
Hello! It says i na textbook: "A variable of a class type is called an OBJECT ." But, also: "The VALUE of a variable of a class type is called an ...
[2 replies] Last: Hello, cire!!! The value of a variable is the data contained in the... (by enemy)
Problem with temporary object at class initialization
 
Hi .. the below code is generating an error of No matching function for call to room::room(room) . Can anyone clarify .. ?? Am getting error at: room room2 ...
[4 replies] Last: I must've missed your next-to-last post. Yes, in order for that state... (by cire)
It keeps saying : The variable " Middle isn't initialised !!>> Any help <<?
 
#include <iostream> using namespace std; void main () { float mt1 , mt2 , mt3 , fnal , q1 , q2 , q3 ,q4 , q5 , percent; float total = 0; float smal...
[7 replies] Last: #include <iostream> using namespace std; void main () { float mt1 ... (by Student1995)
Loop skips first cin command while repeating?
 
Hi! Using Visual Studio and trying to write this code but it's giving me some serious grief tonight. It was all good--save a few resolved issues--until I got to...
[2 replies] Last: Ah, you lifesaver you. Thanks again. (by sierranm)
Array confusion
 
I'm writing a code that reads data from an input file and uses it to calculate the acceleration of a rocket. The data I have shows time and velocity where the r...
[no replies]
Doing something wrong.
 
So, I have just started finishing fixing up all the majority of the work, and I realized when I enter strings with spaces it doesn't work when I try to show it ...
[4 replies] Last: Oh jeez. That was stupid of me. I didn't even realize that the lines y... (by sierranm)
Making these method spit odd numbers
 
How can I make this method do three-digit odd numbers... any suggestions? void GenerateThreeDigitNumbers() { int k,m; for ( k = 0; k < Row;...
[1 reply] : You need 3-digits numbers. That is 100-999 You need odd numbers. That ... (by MiiNiPaa)
Boolean Function to search Vector Elements??
 
I'm trying to make a Boolean function that will search the elements of a vector of strings and return true if the user-inputted string is present. For instance,...
[2 replies] Last: Thanks! (by Stephenpoole4)
Validation Loop
 
This will compile and run, but after I enter tickets sold the Prompt close without displaying income generated. hello guys, this is what I'm working on. ...
[1 reply] : See this sticky thread: http://www.cplusplus.com/forum/beginner/1988... (by AbstractionAnon)
String array HELP
 
Is there any way to fix this bug? I would like to print the string array but if some of the element is not a or c, it has to change the letter to X. why it does...
[2 replies] Last: so I just have to change it by &&? THANKS L B (by closed account ivDwAqkS)
using command prompt to change array size
 
Okay, so here is what I need to do : Commands for your command prompt: 1. quit-Your program should keep prompting for new commands until the user entered th...
[no replies]
Matrix help!
 
Hello, I'm having a bit of a problem. I need to write a program that will read a matrix from text file, display the matrix, then reduce it to RREF and displ...
[1 reply] : edited. any insight? (by JorgeG0511)
count with array
 
Hello people, now I'm learning array. I now know how to count integers with while loop but I'm not sure how to count the integers with array. so the question...
[9 replies] Last: You can't just take out the do in its current location. The while lo... (by wildblue)
Question about how to rewrite this loop
 
I think I might be having a brain fart, but I can't figure this out. I have a loop that has the following form: while (num1 != num2){ if (num1 == num3){...
[3 replies] Last: Ok I have come up with one solution and that is to make this section o... (by Wallboy)
Run-Time Check Failure #3
 
]Hello guys.!! I have the following code which calculate the average temperature, high temperature, most sunny days etc. So, when i type the value at console it...
[7 replies] Last: Crucifixflipper - I don't intend to be rude now, so no offence, but do... (by MatthewRock)
Tree with multiple nodes + memory leak
 
I am trying to implement a search algorithm,it needs a tree with four(NOTE n=4) nodes.Is the struct declaration correct for array of structure pointers??You see...
[5 replies] Last: > What alternative would you suggest? making `states' a container. cop... (by ne555)
by Kuma97
My calculator doesnt run!
 
This is my first calculator and it´s the first time I use functions or switch so I need help becuse it doesnt run. May someone tell me why it doesnt work? ...
[2 replies] Last: Thanks XD I´m just getting started (by Kuma97)
March 2014 Pages: 1... 2324252627... 79
  Archived months: [feb2014] [apr2014]

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