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

elements greater than the array max
 
im trying to write a program that finds the max in an array and divedes it by two than oututs a modfied list with all the elements greater than the max/2. I go...
[2 replies] Last: that worked perfectly thanks a lot. maybe you could help me on my ot... (by michael25)
I want to help this code to calculate the greatest common laboratory
 
#include<iostream> using namespace std; int GCD (int num , int x ) { for ( int m = x ; m <= num ; m++ ) { for ( int m2 = x ; m2 <= num ; m2++ ) {...
[1 reply] : You mean greatest common factory or greatest common denominator? Ther... (by wmichaelv)
Conditional statements
 
Hi all, I'm new to the forum and C++, and I have learnt all the basics in the last week from reading guides; was just wondering if anyone could help me here as ...
[7 replies] Last: Nobody will blame you if you add that cute "return 0" line tho. It is ... (by S G H)
c++ string/array
 
Im trying to write a program that would see how many of the strings entered in an array end with the the letters ab any sugestions on where to start
[8 replies] Last: still dont understand it. but thanks for you help. (by michael25)
reading txt files
 
int main() { double x, avg, max=0.0, min=100.0,totalsat=0.0, totalunsat=0.0, totalout=0.0; int invalid=0, outstanding=0, satisfactory=0, unsatisfactory=0, koun...
[1 reply] : My guess is that your program can't see "grades.txt". Try entering the... (by Computergeek01)
by jcp
array and function
 
guys can anyone help me with this, i built a program that accepts two input from the user, using a array inside a loop, it is pass to a function inside a class ...
[5 replies] Last: @jcp Good to hear that your program now works.. And you're welcome. (by whitenite1)
by helnow
assembly
 
anybody good with assembly language using pep8 i really need help with
[1 reply] : Anyone???? (by helnow)
Making sense of the regex_search example
 
http://www.cplusplus.com/reference/regex/regex_search/ I compiled the above example because I was trying to understand the embedded for loop. If anyone can ...
[1 reply] : Well the full match is "subject" according to (sub)([^ ]*) taken as ... (by Catfish666)
Undefined reference question
 
I am almost done with this project or I was at one point but lost my finished project. I am getting 2 different errors. What am I doing wrong? Undefined refer...
[3 replies] Last: Yeah, it was as simple as that. xD Thank you very much. (by Hedgehog Ninja)
square root
 
Hello :) i have written a function that gives me the square root of a number. Yes i know there is already a function in <cmath> that gives square roots but i t...
[6 replies] Last: what about this? could i simplify this further? double msqrt(double ... (by CanOpener)
by Ceset
static members
 
hi everyone in .h class chickens { private: static Window * mWin; static Renderer * mRen; public: .... .... Window * GetWindow(...
[5 replies] Last: // Add these lines and it should compile. Window * chickens::mWin = ... (by gpoat)
C++ Project NEED HELP
 
Good Afternoon all, I am in C Programming and for one of our final projects we are working with a 3D object and I need to figure out how to tie the keyboard ...
[4 replies] Last: Cool! Glad you managed to get it working :) (by MikeyBoy)
Calling partition
 
Hi guys.I have a problem.I need your help. I have a array (5,91,9,12,34,3,25,41,8) I have to show the result of calling partition with a)center element b...
[1 reply] : I have to show the result of calling partition with ... Why don't you... (by kbw)
Perfect Matching
 
Hi guys.I have a problem. I have a bipartite graph G = (R ∪ C,E), a graph such that each edge has one endpoint in R and one endpoint in C, and R and C have th...
[no replies]
by GRDfzx
Boost and did you forget the ‘()’
 
Why when I use this m_Thread = boost::thread(boost::bind(&parallel::stop,this)); or this m_Thread = boost::thread(&parallel::stop,this); I get invalid use of ...
[1 reply] : Could you show more code? The following works: #include <boost/thre... (by Cubbi)
bool
 
int count=0; for(i=0; i<size; i++){ for(j=0; j<size; j++){ if(x == y ){ count++; continue; } else break;} } if(count=...
[6 replies] Last: Thank you very much,you help me a lot. (by Chin Pei Ying)
Really Really could use help please!!
 
Hello everyone, I am having a problem with this project at the moment so far i have this. I would be very thankful if someone can help me figure out what i am d...
[2 replies] Last: Here is a version that should work (I tried it on Xcode) int main(in... (by gpoat)
running times
 
I have algorithms with the five running times listed below. (Assume these are the exact running times.) How much slower do each of these algorithms get when I(...
[2 replies] Last: Thank you doug4. I am studying exponents right now.And I finished firs... (by earthquake)
Error occur....
 
Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program must be menu driven, giving the user the choice of co...
[2 replies] Last: Actually, line 3 guarantees that hours will always be < 12. So get ri... (by doug4)
the codes for de modulos sign%
 
Write a c++ programme that will compute all the arithmetic operetors and just work as a calculator. Am done with (+×÷) but it has left with the % codes.pleas...
[1 reply] : Use the same code as for +, only change + with %. (by rodiongork)
December 2013 Pages: 1... 1920212223... 37
  Archived months: [nov2013] [jan2014]

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