General C++ Programming (Page 8)

Simpson's rule question
 
Hey guys, I know that Simpson's rule has to be applied for even n rectangles, however in my assignme...
[14 replies] Last: Thanks again kemort. (by aurimas13)
Want to learn Everything in c++
 
hey ? i am new here and i hope this thread wuld be in the right section , the purpose of this thread...
[2 replies] Last: Thanks for the reply buddy :) and also for the links repect + (by UmairAli)
Need help with simple programming
 
write a C++ program that will calculate the miles per gallon a car gets given the gallons of gas us...
[15 replies] Last: Why do you keep deleting your code? It makes this thread useless as a... (by MikeyBoy)
Creating a recurring number program from a file (Soon to be more)
 
Howdy guys, This is the first time ive posted in cplusplus.com, and im quite glad i've gotten this ...
[4 replies] Last: #include <sstream> int data_2 {0}; std::stringstream i... (by kemort)
Need Help Searching Array
 
Menu driven program. Function is to allow the user to enter a fruit type and display the price. Data...
[4 replies] Last: @aneurysm http://www.cplusplus.com/forum/beginner/220979/ Don't dupl... (by kemort)
\t giving more space in c++
 
Why is the output showing more space between the words "10 years" and "15 years" despite giving only...
[7 replies] Last: I used setw to add spaces manually and got the desired output as shown... (by shivamjain1)
How can I test that a construct must not compile?
 
Hi, Say we have a three element maximum MPL style sequence (as in the tiny type in the book C++ Tem...
[6 replies] Last: I'm guessing a bit: # include <type_traits> # include <utility> tem... (by mbozzi)
Not getting any error messages but...
 
my output is completely wrong! I'm totally not sure why this is or how to fix it.. #include <i...
[2 replies] Last: ... (by ne555)
Counter object that declared only in the base class but used in every derived class separately.
 
Suppose I have a class which represents kind of protocol for other classes that inherited from it: ...
[9 replies] Last: But if I chose to increment counter inside the constructor of each cl... (by mbozzi)
For loops: definition of int as local or global
 
Dear all, I am creating a class, for which some methods include loops and double loops of the for...
[2 replies] Last: Great, that answer the question. Thank you for the reply. (by Tontonbaboum)
Qt Sound problem
 
Hello again, I'm now working with Qt to develop GUI application. My current project is a cross-pl...
[5 replies] Last: Executing qmake helped to build the EXE, but QSound doesn't play the s... (by olfibits)
by Kiryu
My code is a mess
 
Hey, as the title suggests, I have a problem that often holds me back from continuing my projects, a...
[no replies]
Cannot get correct output from separate file.
 
Please if possible can anyone improve my code. This project is due in two days time. So basically wh...
[5 replies] Last: See that's the problem I know for sure there is a problem within my co... (by ArchRon1n)
Metric tons program
 
I know this form says no home work aloud but I need help I can't figure this out. The program I'm tr...
[6 replies] Last: What are you confused about? It's a user input and printing out comput... (by Hengry)
Boost ASIO async operation
 
I have read the tutorials from the boost docs. I care more about the async operation framework. ...
[1 reply] : > Should I create a timer whose expired time is 0 No; the tutorial ha... (by JLBorges)
A program using array. It doesn't work well!
 
#include <iostream> using namespace std; void getScores(double testScores ); void showMenu(); cha...
[6 replies] Last: If the compilation fails due to code that the compiler does not unders... (by keskiverto)
by fmad
A better way to define class id
 
Hello. Currently I define class ids as follows: class Base { public: static unsigned typeId() {...
[4 replies] Last: mbozzi This looks good. Thanks. (by fmad)
Need help please!
 
I'm trying to get it to calculate the students final grade for the class. I can't get it to work. Be...
[2 replies] Last: Thank you so much! That worked perfectly. (by Brandon33310)
Draw a line
 
Hello everyone, I have been searching how to draw a line (horizontal and vertical) using ncurses, bu...
[3 replies] Last: Perhaps this might help: #include <ncurses.h> int main() { //Init... (by timh1970)
Would you class this as a bug;
 
Ok, so this was my bad as I did a rookie off by one error, but this should not have happened anyway;...
[13 replies] Last: You are a star! -Wall doesn't make a difference on its own but g++ T... (by timh1970)
Pages: 1... 678910... 17
  Archived months: [jul2017]

Cannot post in this page. To post a new message, go to the first page.