Beginners - January 2016 (Page 19)

by Mavs25
Help with my code?
 
Hey guys, I have an assignment in which it requires me to add up how many quarters, dimes, nickels, and pennies I have. Now my problem is that how could I make ...
[5 replies] Last: Cheers guys - hope OP (Mavs25) will understand this simple code. (by RonnieRahman)
by Ennoia
function not working properly in loop
 
Hello there, I am beginner in C++, coding for like day or two. My friend, who insisted, that I should learn how to code, gave me an excercise: make a program ...
[4 replies] Last: Like he pointed out your mistakes. And I used your code as a base for ... (by Stalker)
When two functions are exactly the same (except for const), which one gets called?
 
I'm grading a CS class in my school. So someone wrote this template <class T> Vector { T & operator (int index) const; T & operator (int index...
[1 reply] : #include <iostream> #include <iomanip> struct test { void foo() ... (by JLBorges)
by Mavs25
Prompt Confusion?
 
Hey guys, I was recently assigned an lab assignment in which it requires me to create a code based on this prompt: Am I suppose to create a code in which it det...
[1 reply] : @Mavs25 Am I suppose to create a code in which it determines how muc... (by whitenite1)
Moob Ban needs help
 
When I compile this, i get a string of zeros. Why wont my Array accept the inputs of my for loop? int main() { long long int number; int fac...
[2 replies] Last: Possibly because there are no "inputs" to your array. == is compari... (by cire)
pointer to string 'comparison'
 
I need to understand what's going on in the following question. I was given a char * array(c2). I know that this is the 'C' way of doing things and in C++ we sh...
[5 replies] Last: @Zhuge Got it now. Thanks (by saherch)
reading from a file
 
hello, I need help with a program that is supposed to read some values from a file and use those values as input for a function . I didn't include the function...
[14 replies] Last: It works! Thanks so much , I was stuck on this forever! :) I found t... (by closed account N8RzwA7f)
passing cstring into function?
 
I am trying to pass the created c string into a get c string function. the get string function is at the bottom #include <iostream> #include <cstring> u...
[2 replies] Last: I emphatically suggest using C++ standard strings for this kind of stu... (by booradley60)
by ajens
Input validation - range of ints and data type check
 
Hello, I am having issues with my input validation part of my code. I am asking the user for an int, and I need to make sure 1) it is truly an int, and 2) it...
[2 replies] Last: You probably want to have your cin statement first. Something like: ... (by jlb)
Anyone know if *SimpleCV allows c++ or python only?
 
Anyone know if *SimpleCV allows c++ or is python-only? -I only want to know c++ and write my c++ code in whateva compiler I end up with...Does it work with c++?...
[7 replies] Last: SimpleCV is a library for Python. OpenCV is a library which, since it ... (by helios)
Class structure advice
 
I'm making a simple RPG which I'm currently working on a class structure for items. I'm not sure if this is the best way of doing it and I would appreciate i...
[4 replies] Last: Yep those need initial values still. (by TriforceOfKirby)
Learning Templates
 
Hi all, I have started to learn templates and I am having a few issues with compilation and linking errors. After a little research with Google, I found that...
[2 replies] Last: When dealing with templates, both the definitions and the implementati... (by jlb)
Any advanced c++ compilers available yet?
 
Are there any c++ compilers available yet that allow a beginner or hobby level programmer to include libraries as easily as can be done with other languages lik...
[9 replies] Last: Sorry my question was wrongly put. I meant: Is there a simple to use c... (by CodeWriter)
vectors and arrays problem
 
I have a slight problem with my code! Every time i run it, it completes as its supoosed to do but the last element of the vectors do not match - element number ...
[6 replies] Last: Thanks very much for your help! I have taken heed of your advice and m... (by jamesfarrow)
by GonlyG
Index sorting program problem
 
I have to bubblesort an array, and compare the bubblesorted array with the non-bubblesort array. #include <iostream> #include <cstring> #include <algorithm> ...
[5 replies] Last: I see, thanks for clearing that up @AbtractionAnon. (by TarikNeaj)
Finding Correct Numbers Combination
 
John wants to unlock an electrical lock and needs a password to gain access. He is given a set of N numbers and some of these numbers generate the password. The...
[12 replies] Last: Finally found the answer #include<iostream> #include<list> using nam... (by jgg2002)
by Innoox
Stroustrup Ch. 3 (idk what edition I have)
 
Hello community I'm trying to educate myself with C++. I have used Bjarne Stroustrup's book: "Programming. Principles and Practice Using C++". I reached Ch3 and...
[6 replies] Last: Thanks! (by Innoox)
const member function problems
 
Hi, so the problem is that I was trying to make my Tnode class and one of the functions is supposed to find node with given string value and return pointer ...
[8 replies] Last: but than why is Tnode* Tnode::find(const std::string& str) const { ... (by etrusks)
Can't Sort A Phonebook Program
 
Okay. So I've been given the task to make a phone book that saves at max 10 contacts along with their number. The list must be sorted when asked to display the ...
[3 replies] Last: Here are two tutorials about vector: http://www.codeproject.com/Articl... (by Thomas1965)
simple student data show program
 
hi friends just started c++ programming times ago and now i should give my first project to the teacher-_- i only have 5-6 hours to give it :[ and now the pr...
[16 replies] Last: wow wow wow special thanks to you noobforce!! i really dont know how t... (by BONERPG)
January 2016 Pages: 1... 1718192021... 29
  Archived months: [dec2015] [feb2016]

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