
please wait
printing whole numbers as double |
I am trying to print a whole number as a double, using set precision and it does not work. It works for double number but not for whole numbers. #include <io... |
Apr 29, 2016 at 2:12am
[2 replies] Last: Thanks a lot that worked :) (by funprogrammer)
|
by poiizinn
Stop Working
|
Stop working when i'm executing an FILE in prompt. Stop working when i'm executing an FILE in prompt. #include <stdlib.h> #include <stdio.h>... |
Apr 29, 2016 at 1:27am
[no replies]
|
by jgg2002
See whether a point is in a triangle.
|
I've been trying to solve a problem which states the following: Write a program, which, given the coordinates of a point, and the coordinates of the 2 remaining... |
Apr 29, 2016 at 1:25am
[4 replies] Last: You did a nice job tackling this in terms of line equations and inter... (by closed account D80DSL3A)
|
by csnook
Visual Studio Debug Assertion failed?!
|
Visual Studio throws and error with this code but web based compilers run it just fine? Specific error in VS is Debug Assertion failed! Expression: string itera... |
Apr 28, 2016 at 11:59pm
[no replies]
|
by Phil15
Assignment operator
|
Hi I had a question not so long ago and I am not sure I answered it correctly.. Write the assignment operator for the String class. Keep in mind the memory... |
Apr 28, 2016 at 11:55pm
[3 replies] Last: My bad. I thought I saw a size member somewhere. The code is correct e... (by helios)
|
by Batman93
|
Apr 28, 2016 at 10:06pm
[2 replies] Last: I did not put all of my code on here because it was too long I was jus... (by Batman93)
|
SFML and QT Creator |
Hey guys!! For the last couple of days, I have been trying to setup SFML on my QT creator (5.5). I have been running through many different errors and whenever... |
Apr 28, 2016 at 9:38pm
[no replies]
|
by kkoeplin
output file
|
i am trying to output my file into a chart form but when i output the information is not all on the same line void outputArray(element elements , const ... |
Apr 28, 2016 at 9:38pm
[no replies]
|
by stevenglo300
Help PLease
|
I've been completely stumped by this problem and could someone explain the step to achieve the final answer? #include <iostream> using namespace std; int... |
Apr 28, 2016 at 9:30pm
[2 replies] Last: What is the output is the question and the answer is 8 2. how is it so... (by stevenglo300)
|
by chang123
Need help writing a function for my code, not sure how to start
|
done |
Apr 28, 2016 at 9:25pm
[3 replies] Last: You need some way to know. A switch statement would work; I think a b... (by koothkeeper)
|
by bluemoon3701
Need help with output - Menu item number will not increase and doesn't display correctly after first iteration
|
My code: (line 58-62 is the problem) #include<iostream> #include<fstream> #include<iomanip> #include<string> using namespace std; const int FOOD_... |
Apr 28, 2016 at 9:18pm
[no replies]
|
by etrusks
weird typedef explanation
|
Hi, I'm reading one C++ book and in one example there was this very weird typedef that I have no idea how to use and what exactly does it mean. It was not the i... |
Apr 28, 2016 at 8:44pm
[6 replies] Last: Tnx man for making this clear. I actually thought that besides making ... (by etrusks)
|
How do I use my void function as a class? |
I am trying to understand classes. I'm supposed to use my login system as a class. I don't know what the difference would be between using a class an just invok... |
Apr 28, 2016 at 7:49pm
[no replies]
|
by reppin541
Copy words from text file into array
|
I have a textfile that I'm trying to copy each word in the file to an individual element in an array, then output the contents of the array to the screen. My c... |
Apr 28, 2016 at 7:27pm
[1 reply] : So I edited my code and now I'm getting each letter of each word to co... (by reppin541)
|
by stevenglo300
Help Analyzing Simple Code
|
Could Someone Please Explain How 3 is the answer? #include <iostream> #include <string> using namespace std; int main() { int ctr = 0; int myarray ; ... |
Apr 28, 2016 at 7:25pm
[no replies]
|
by flyboy67666
Sorting in a table?
|
If I have a table of 75 workers in a table set up as such: workerTable wt ; where the workers have the following info saved to them: char name ; double... |
Apr 28, 2016 at 7:25pm
[no replies]
|
by FreshBoi22
Sleep() function generating random numbers on couts.
|
Apologies for posting so many lines of code. Whenever I run this testing out a function. It appears I get a random number after the sleep function is used and i... |
Apr 28, 2016 at 6:10pm
[2 replies] Last: NEVERMIND! It actually had nothing whatsoever to do with the sleep fun... (by FreshBoi22)
|
by SSteven
Ctor takes 1 arg yet able to declare an instance without args
|
Hi I have a very simple class named Vector, which can store a specified number of doubles. (This example is from Stroustrup's book). The class is a handl... |
Apr 28, 2016 at 6:07pm
[4 replies] Last: My question really was why the problem doesn't occur when the ctor is... (by Moschops)
|
by Unisaurus
Payroll class help!
|
Design a Payroll class that has fields for an employee's name, ID number, hourly pay rate, and number of hours worked. Write the appropriate accessor and muta... |
Apr 28, 2016 at 5:55pm
[1 reply] : This is my updated code! #include <iostream> #include <string> #inc... (by Unisaurus)
|
by Dkmariolink
How to setup a linear/binary array search for a shopping program
|
So my program is a book store, and I have to create a linear and binary search function that will search for the book ID, the price of said book, and how many t... |
Apr 28, 2016 at 5:41pm
[3 replies] Last: I did not say: "use std::find". I said: "read". The std::find does no... (by keskiverto)
|