General C++ Programming - December 2013 (Page 37)

Decimals - please help
 
I have to create a converter but the results must be in 4 decimal places just like, if i Entered 5000mm the result would be 500.0000cm . what should I do ? I us...
[1 reply] : double cm = mms/mmInCms; cout << setprecision(4) << cm; (by codewalker)
goto in function
 
Hi please can be goto used in function, but with reference in main? And if yes how the source should look like? for ex. void func(int a); int x; int ...
[3 replies] Last: exit(1); will end your program from any function (with an exit code ... (by Disch)
Partial Specialisation of a Template Template Parameter
 
Hi, I've been trying to create a templated class that takes a template as a parameter. I'd like to specialise this class for certain partial specialisations ...
[6 replies] Last: Need to use typename to disambiguate that the dependant name is the n... (by stellarpower)
Array
 
How do I insert a array size as variable?
[5 replies] Last: If you don't know what that does, you should look at your tutorials/co... (by S G H)
Numerical Integration
 
I need help developing a C-code that numerically integrates using N = 20 and N = 40, where N is the number of steps or interval and print out all xi, fi=F(xi) a...
[7 replies] Last: If you need help, check out the tutorial on this website, it is an ama... (by J4ke)
c++
 
BS degree program consist of 140 credit hours .student status is kept in the form of credit hours that has been completed.following are the criteria . ...
[1 reply] : Did you start writing code? Post your code up here if you did. Otherwi... (by closed account 18hRX9L8)
by rlnsig
cumulative quotient
 
What i want to do it have the user put in a number, and then prints the answer of the number divided by all of the numbers below it (above one) such as 6 / 5 / ...
[4 replies] Last: ill try that. Im very new with programming and i just started a month ... (by rlnsig)
Return array function HELP!
 
Ok so I have homework that I am working on, but I cannot figure out what is wrong. I made a function that takes in an array, and returns the smallest number. Ho...
[6 replies] Last: You are going to cuss that it was this simple, but the problem was the... (by josh26757)
Does this program have a pattern sequence?
 
In the below program, i and l diverge when the input string contains a tab. i is a counter to iterate the Buffer and l is a counter that keeps track of chars pu...
[1 reply] : ¿why the double spacing? I don't realize what is your question The p... (by ne555)
by leo255
Having some issues with my Error Output File
 
This program is basically supposed to read data from a file, and then process that data depending on what it is. It's sort of a mock catering company, and the v...
[2 replies] Last: Just to update, I figured out what I was doing wrong. The following we... (by leo255)
December 2013 Pages: 1... 353637
  Archived months: [nov2013] [jan2014]

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