Beginners - October 2013 (Page 46)

Switch statement
 
My switch statement is not working properly. It keeps giving me an error wherein line 46 and 48 are not within a switch statement. I've quadrupled check already...
[2 replies] Last: Thanks! (by colinjames12)
by GaDiBo
I get stuck when my sort function does not work, or anything else?
 
I get stuck when my sort function (void process) does not work, or anything else? #include<iostream.h> #include<conio.h> #include<fstream.h> #include<s...
[6 replies] Last: So here is the complete program of ranking students #include<iostre... (by GaDiBo)
Could we pass the arguements to inside function from outside function
 
I have two functions abc() and cdf(). I have called cdf in abc. I had passed input to abc() and passed nothing to cdf(). but in cdf() i require the the input va...
[1 reply] : The syntax above is pretty tangled up. Here it is straightened out a b... (by Chervil)
by Anna22
Last function's coding needs correction
 
Everything calculates except for the last line: Total Cost of Paint Job. It gives a crazy number. Here is how the command prompt looks and my code is underneath...
[3 replies] Last: code and output tags make it look like this int main() { double ... (by freecody24)
Arithmetic Calculation
 
I don't really understand about the question...The question is as below: Assume i=1,j=2,k=3 & m=2.What does the statement prints? printf("%d",m<=99&&k<m); ...
[1 reply] : I'm not sure how else I could phrase the question. You need to evalua... (by Zhuge)
help on a c++ code?
 
how can i turn the number like 5 in to 5 asterisks like ***** but the user hast to enter the number it int main(int argc, char** argv) { int num; cout<...
[1 reply] : you can use a for loop to cout the number of asterisks that you want. ... (by jugggle)
for(;;) syntax information
 
what does mean by ;; in following code for (;;) {} Regards cam
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/control/ (by BitRat)
help on a easy c++ code
 
i need to make it so that the numbers will make * so if the numbers used were 5,6,5,6,9 it would look like ***** ****** ***** ****** ********* ...
[2 replies] Last: thanks for the help i need to have a loop on it so if they dont enter... (by freecody24)
Declaring Char Array in a Structure
 
Ok, I can't declare a char array(not a string, an array of single chars)in a structure so what I did is this. But the problem is it's not working properly. It d...
[12 replies] Last: What chervil was saying is that a std::string is the same as a char ar... (by giblit)
Stack Code Help
 
Having some issues with figuring out syntax. The assignment: Stack Homework: Write a stack program that can determine whether or not the following sym...
[4 replies] Last: As in stack::push.... Wow, you know what the sad part is, I have done ... (by elite zero)
by layzer
Money counter problem.
 
Hey guys i have a problem. This is our original homework assignment: Write a program to display the bills and coins dispensed for check cashing store sc...
[no replies]
Boolean Expressions Unnecessarily Long
 
I need to write a program the inputs 15 numbers and displays only the highest and lowest number. The partial code I included below is the only way I know how to...
[2 replies] Last: Or like this. It uses just 3 variables, and one more as a loop counter... (by Chervil)
Can you guys give me some pointers with this code?
 
Need help with a problem. Can you guys give me some pointers with my code? The question is: The Bored Auto Company has done it again. Some models of their cars ...
[5 replies] Last: > My teacher actually told me to avoid using a break unless I absolute... (by JLBorges)
If else if ladder help with simple calculator program
 
Can someone help me modify this program using the if-else-if ladder so that instead of the program performing all 4 mathematical functions on two numbers, the...
[no replies]
Post and Prefix Increment Operators
 
I'm still stumped on this subject. Why do I get different values whenever I use either, and what would I use this for in a practical setting? #include <i...
[14 replies] Last: Nowhere in the topic until just now did we write or discuss any code w... (by LB)
Copy data from text file into array
 
Hi! I am trying to build a code to read the data from a text file into the array and display all records but it is not working and I am not sure how to fix the...
[2 replies] Last: because you only extract the name and not the values ? And another: ... (by nvrmnd)
Confused after initializing variables. Please Help !
 
Hello Everyone I got an assignment as follows Write a program to calculate the standard deviation of a list of numbers. Use a constant in your program for...
[12 replies] Last: Please use code tags when posting code. int n; float data ; This ... (by MikeyBoy)
Learning, need help with endless loop and quit
 
Write your question here. I was wondering how I could put my program into an endless while loop and have it quit when the user enters "quit". Thanks!
[1 reply] : #include <iostream> #include <string> int main() { std::string c... (by LB)
While loop problem.
 
can someone help me with this problem. Do i need a while loop within a while loop? in the pressure.d2 there is one number greater than 100. Put the c// ...
[1 reply] : Do you want to read the data until until it encounters a pressure grea... (by nvrmnd)
by amj89b
Assistance with data validation within if else or switch statements
 
Hi, This code is supposed to go through some calculations regarding fat content for various meal types. I have everything right, as far as I know ( I am at a...
[6 replies] Last: So, would my method of just defining as char variables at the beginni... (by nvrmnd)
October 2013 Pages: 1... 4445464748... 86
  Archived months: [sep2013] [nov2013]

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