General C++ Programming (Page 39)

#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]
#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)
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)
C++ help
/* * @author Damian Bloch * Chapter08 Project02 * Program is to let the user enter a string...
[1 reply] : You want getLine: (by dhayden)
by juaok
Having a struct as a key for a map
So why does this not work? As an example: struct example { int x; int y; }; int main()...
[4 replies] Last: > since there is no equality operator Must be LessThanComparable ; ... (by JLBorges)
C++ arrays help
Write a program that reads a file consisting of students’ test scores in the range 0–200. It sho...
[4 replies] Last: thanks I think I can do it from here (by damianbloch49)
C++ Exceptions as part of general programme flow
Like most programmers - at least of my mediocre skill level! - I am a bit shy of using exceptions. ...
[13 replies] Last: Yes, it's an excellent point that you want code that is hard to use wr... (by dhayden)
Pages: 1... 3738394041... 67
  Archived months: [sep2014]

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