Beginners (Page 50)

by Kman
Calling operator<<?
My program is telling me my Book class doesn't have an operator<< function even though it does. I'm ...
[7 replies] Last: Got it. Thanks for the help, guys! (by Kman)
Storing a linked list into a vector?
I have to store data from a file into a struct with linked list in it. This is what I've done so far...
[1 reply] : bump (by crimhaze)
problem with passing a variable though the class constructor
I am having trouble getting the second constructor right for the class i created called employee. At...
[2 replies] Last: You have put the asterisk on the right side of the variable name when ... (by Peter87)
common type
Hi, I just found out how the common_type traits is being implemented and I don't really understand o...
[2 replies] Last: Ohh I think I finally understand now :) Tnx a lot man!! (by etrusks)
Help a beginner in the programing world.
Hi! First of all i would like to say that i'm just starting my adventure with C++ and overall progra...
[2 replies] Last: Thank you for your reply, i forgot some basic things, haven't programm... (by Kisielos10)
How do you pass double pointers in a function?
So, I declared a 2D array using double pointers. #include <iostream> using namespace std; int ...
[3 replies] Last: If x is a double, then &x is a pointer to a double So if ptr is a poi... (by Moschops)
Return value of a function
I'm a newbie to C++ programming. I'm learning about function. There is a case that I'm wondering abo...
[6 replies] Last: I found some similar functions to my function in this link: https://co... (by ivanov ivan ivanovich)
by mkb555
Array of structs default values
If you declare an array of structs without defining any of the elements, do elements of the array de...
[4 replies] Last: One other comment. Its hard for me to check since structs don't come... (by Chervil)
by kev558
Values in array change after assignment when using try/catch
I'm trying to use try/throw/catch to check the values of cos(theta) and sin(theta) as they are not q...
[7 replies] Last: Hi, Another thing: In the original code: if ((angle == 0) || (angle... (by TheIdeasMan)
Ofstream writing error?
Hello everyone, I am creating the simplest program. At the top I am including basic ifstream and ofs...
[3 replies] Last: Ok, so you are reading a name and store it in a string variable named ... (by Peter87)
sorted multimap
Heylo! I have to do an abstract data type: sorted multimap and in the implementation to use a binary...
[1 reply] : > I need an idea of how can I use this ADT, so I can prove it's utilit... (by JLBorges)
by kev558
Problem using header files for the first time.
I know this has probably been asked 100 times but I can't find a thread which helps. I'm using head...
[11 replies] Last: Hi, Just on your actual code: Try to avoid raw pointers and new and ... (by TheIdeasMan)
Histogram help
Can Someone help me with a histogram that gets its values from an array in an input file. #inc...
[2 replies] Last: Thomas1965 that worked Thank you! (by Batman93)
functions, passing by reference
So i am writing this code for my computer science class and i am stuck. It is supposed to do this...
[6 replies] Last: Prototype would be void calc_change(double change, int &quarters, int... (by Tyler T)
Problem in creating a .cpp file in Microsoft Visual Express 2015
I have installed Microsoft Visual Express 2015. Everything seems good,however when I created new pro...
[no replies]
Formatting output
Hi, this problem has been bothering me for a little while now because I can't seem to locate the pro...
[2 replies] Last: Names is a string and the longest one is 20. Name ... (by hobbit36)
by mamoyo
Manhatten & Euclidean
Please could you help me with the following.. I would much appreciate an explanation to how you get ...
[3 replies] Last: the Euclidean distance or Euclidean metric is the "ordinary" (i.e. st... (by JLBorges)
cout Issues
Hello, I am reading the following data: Johnson 5000 Miller 4000 Duffy 6000 Robinson 2500 Ash...
[1 reply] : First I suggest you review how to declare variables in C++, you seem t... (by jlb)
Need help with this program assignment
So at this point I am lost. My teacher wants us to generate an array that contains random positive...
[7 replies] Last: Thanks for all the help guys (by kaylah93)
Rand not working correctly
For some reason i cant get it to spit out random numbers, both numbers it generates are the same. ...
[2 replies] Last: Wow... I can't believe i missed that.... Thanks, it works. Haha (by GigaMuff)
Pages: 1... 4849505152... 60
  Archived months: [apr2016]

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