Beginners (Page 2)

by moufou
problem with "while" and cin.get
 
Hi i'm currently doing a homework(I know that you will not give me the answer nor do i want it). Wha...
[2 replies] Last: thanks for the reply! yes exacly i was trying to compare what i enter ... (by moufou)
Losing elements when pushing to stack
 
The issue I am having is not all elements are pushing to my final list from my stacks. Hopefully th...
[6 replies] Last: Alright I'll check into the link, but I am little confused of how to i... (by kamikaze pgmr88)
question
 
Write a complete program that reads an integer k > 1 from the console and finds the first positive...
[15 replies] Last: You already have n and k as parameters, so they should not be masked. ... (by keskiverto)
Help with average function.
 
Im trying to write a code that computes the average of all positive numbers and returns that averag...
[2 replies] Last: Thank you so much! This really helped and I learned what I was doing w... (by painith)
by h4ever
Lambda - boost on Windows
 
Does anybody know why this code does not work on Windows? I see just black window and nothing is pri...
[1 reply] : The program is waiting for user input. If input you 4 then hit enter, ... (by helios)
Print out digits of a number
 
I want to print out the digits of a number, and this program prints them but in reverse. How can I p...
[1 reply] : They are printed in reverse because you print the least significant di... (by dhayden)
by TadyZ
Stroustrup, std_lib_facilities.h and load of error
 
Hello! at the moment i'm reading Stroustrup "Programming principles and practice using C++". I ne...
[1 reply] : See this thread for a solution: http://www.cplusplus.com/forum/beginne... (by admkrk)
Overloading '+'
 
Hello, Does this meet the qualifications for overloading the '+' operator? #include <iostream...
[1 reply] : To overload an operator, at least one of the types that participates i... (by LB)
problem with Overloading
 
Hello everyone, I need to overload these two functions, the problem is, I am lots rusty in overlo...
[3 replies] Last: Would this code be correct #include <iostream> #include <iomanip> ... (by hungrymouth)
Reference to array pointer issue
 
Hi I have a problem with a private class member which is a const reference to array. Here is the ...
[1 reply] : You're storing a reference to a pointer which isn't sticking around. ... (by cire)
Whats wrong with my code?
 
Hello Everyone. This has been bothering me for a while now and for most of my programs, the line ' i...
[3 replies] Last: instead of typing input you can give the user choice like cout<<"yo... (by programmer007)
pointer won't hold a value
 
Hey guys I working on making a Deque, but right now I'm just trying to make one node with an integer...
[6 replies] Last: Undefined reference means your are referencing something that has been... (by Lowest0ne)
problem with geting difftime
 
hi all why line 42 will give me Error: what im doing wrong? #include <iostream> #include <ctime>...
[2 replies] Last: It looks to me like you are calling mktime incorrectly. Try correcting... (by kevinkjt2000)
What are the best programs to make c++ GUI
 
Im looking for a program to make my gui for my personal programs. only thing im finding online is Q...
[4 replies] Last: @LB the actual form. I already have QT so im gonna try wxwidget. I wa... (by riseandtrade)
by h4ever
function to read arguments
 
I am trying to make working a source codes from articls "Playing with OpenCL: Gaussian Blurring" and...
[6 replies] Last: Included by main.c ? Q1. Yes, they have no value set. The value i... (by keskiverto)
Hard Matrix question
 
I'm doing a practice problem, the question is long so it's better if I just paste it below. I wrote...
[5 replies] Last: dest has only one element, from initialiation. Aceix. (by Aceix)
by h4ever
unknown escape sequence:
 
How to correct this error? args.c|35|warning: unknown escape sequence: '\-' [enabled by default]| ...
[10 replies] Last: Ok, now that we have realised that adjacent string literals are conca... (by JLBorges)
by vxk
Use of Pointers
 
I am sorry if this question is too long or badly presented .I am working on a small framework(open f...
[3 replies] Last: A: From http://stackoverflow.com/questions/9181782/why-are-the-terms... (by keskiverto)
what is a companion types ?
 
In my book i'm studying the size function of the string class in c++ and my book defines the type re...
[1 reply] : std::string::size_type is a member typedef - an alias - for an unsig... (by JLBorges)
by vxk
pointer objects
 
I was going through the following code in Bjarne Stroustrups book, when i encountered the following ...
[5 replies] Last: > where it is useful to use > Shape* p =new Text{….}; > instead o... (by ne555)
Pages: 1234... 42
  Archived months: [jul2014]

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