General C++ Programming (Page 2)

Help!
 
The question is: Write a program that reads 3 integer numbers, then finds and prints the: Mean - Max...
[3 replies] Last: You still have the variable names within double quotes. If I'm underst... (by wildblue)
by Droid
while loop
 
//Print every odd number descending from 39 int y = 0; while(y <= 39){ cout <...
[1 reply] : You're initializing y to 0, but it looks like you want to initialize t... (by wildblue)
Problem with program "Stopped working" [Beginner]
 
Hello, so I was trying to make a c++ console game "Gallows" for school, and I've noticed, that my pr...
[7 replies] Last: @MiiNiPaa Thank you very much! My code now runs perfectly. Here is the... (by Justas Sam)
array,c++
 
#include <iostream> using namespace std; int main() { int a ; int m; cout<<"enter t...
[3 replies] Last: You cannot assign it for same reason that you cannot do following: dou... (by MiiNiPaa)
vector push_back class
 
how bad/good is this code? I mean, how do you push back class to a vector in other way? is this some...
[5 replies] Last: well obviously, as constructor is called whenever the class is created... (by mekkatorqu)
Undefined Reference Problem
 
Hi all, this is a really wierd problem as I have not come across it before. Some info before I st...
[5 replies] Last: > I thought that if you declare a function in the .h file, but not pro... (by ne555)
Leap Year determination while loop problem
 
For an assignment in my C++ class, I need to create a program which will determine if a year entered...
[3 replies] Last: One more thing: You should add break command after each statement, b... (by Justas Sam)
I need help adding arrays/strings together
 
You will have two file streams: an input file stream for the file to be normalized and an output fil...
[8 replies] Last: #include <iostream> #include <fstream> #include <string> using namesp... (by JLBorges)
by mki
Eclipse cdt binary not found
 
I've installed eclipse cdt for my c++ IDE, GNU G++ for compiler, and GNU toolbox in my linux compute...
[no replies]
Help
 
#include <iostream>//this will include the "std::cout" stream for output to console. #include <cmat...
[1 reply] : Hi, Welcome to cplusplus :+) First up please always use code tags - ... (by TheIdeasMan)
writing a program that computes the factorial of a number and displays it.
 
I'm new to c++ and want to write a program that computes the factorial of a number and displays it....
[13 replies] Last: hahaha. LOL .. Use google my friend. There are already a lot of factor... (by jemeripol)
Help with computeGPA function
 
We are currently working on step wise refinement in class. I created my psuedo code in the function ...
[6 replies] Last: Thanks for all your help bro. It was much appreciated! (by YumBerrys)
I'm having trouble with this, the question is listed in the code please somebody
 
#include <iostream> //ask the user for a set of data, product price & amount. calculate the tot...
[6 replies] Last: Thank you so much @JLBorges You are a life saver (by RLara23)
Get Day from Week Program -- DIRE NEED
 
I need help with my program. My program is supposed to get ask the user a date (MM DD YYYY) and its ...
[2 replies] Last: Er, there's actually a pretty simple formula to get the day of the wee... (by Duoas)
value returning function
 
so I have miscellaneous functions being called in "main". The last function is suppose to return a v...
[2 replies] Last: Hi you have called the function but haven't assigned or std::cout th... (by TheIdeasMan)
Missing middle name and no error message
 
I've a problem here that I can't find a solution for. #include "stdafx.h" #include <i...
[3 replies] Last: Why do you have two topics for this? http://www.cplusplus.com/forum/ge... (by Duoas)
Full string not appearing
 
I've a problem here that I can't find a solution for. #include "stdafx.h" #include <i...
[1 reply] : The difference between fields is a HT character. The name field contai... (by Duoas)
by auba
Assigning string tokens to an array
 
Good day, I need to dynamically build a control file for a SQL loader but when tokenizing line va...
[5 replies] Last: Almost. So your input file is just a single record , containing the v... (by Duoas)
Help understanding my homework assignment
 
A complex number has two parts: a real part and an imaginary part. These numbers are written A + B...
[1 reply] : Forget the "complex numbers". You don't need to know their math here.... (by keskiverto)
Linear search vs Binary search
 
Can someone tell me what advantages could linear search have over binary search? It seems to me lik...
[4 replies] Last: Another reason is that binary search requires more code, so on a devic... (by dhayden)
Pages: 1234... 59
  Archived months: [aug2014]

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