Beginners (Page 9)

by nomat
Calculating the median from a set of numbers
 
I am supposed to compute the median from a data file with sorted numbers and display the contents of...
[3 replies] Last: Hello nomat, lastchance has given you a good explanation of how to fi... (by Handy Andy)
by qweali
call an object from inside of another same kind object
 
hi im kinda new in learning c++. i have a problem with objects. i have a vector of a certain cla...
[7 replies] Last: It is possible you will find a much better solution if you decide to... (by gunnerfunner)
Code Review
 
Can someone review my code and let me know if there are any big mistakes. The program compiled corre...
[1 reply] : #include <iostream> #include <memory> #include <typeinfo> struct Fly... (by JLBorges)
my outputs are not place where i want them to be
 
I am creating a monthly net income budget calculator, but when I enter some outputs, my program do...
[3 replies] Last: yes i did a lot a careless mistakes thank you! (by lescarys)
by nomat
24 hour date format confusing
 
Guys this program is supposed to do this but I got as far as calculating the difference in hours the...
[1 reply] : Remember that there are only 24 hours in a day, numbered 0..23. Any t... (by Duthomhas)
by i773
Possible to cast void* (Handle) to string?
 
I have a external generic function that sets a void* 'returnData': SPErr PIUGetInfo(ClassID desi...
[6 replies] Last: What is that SPErr in SPErr PIUGetInfo(...? What value does that func... (by i773)
Thinks char I declared is const char *
 
Sorry for the second post in a short amount of time, but for some reason, I'm getting this error: in...
[4 replies] Last: Oh thanks, that makes sense. Glad to know that (by onlinone22)
Empty string after cin >>
 
First I ask the user if he wants a method or another (1 or 2) After processing that I start reading...
[3 replies] Last: Since the problem is quite common, you can find a lot more about it on... (by Enoizat)
how to check if the a recursive scan is pointing to the folder from which it started its recursive scan
 
how to check if the a recursive scan is pointing to the folder from which it started its recursive s...
[6 replies] Last: Something like this, perhaps (the part which prints out the contents o... (by JLBorges)
fstream not Working
 
Hi. For some reason, the std::cout never prints a value, despite there being items in the .txt file...
[4 replies] Last: @helios, thanks for the response! Your explanation made perfect sense... (by onlinone22)
Specific cases of operator overloading. Why do the cases matches the snippets?
 
This is the exercise: struct A { A(int a_) : m_a(a_){} A& operator +=(A const& rhs_) { m_a +...
[11 replies] Last: I understand i.e: operator+() is a free function and operator-() i... (by puertas12)
How can i create an array of 10^9 size?
 
I have a project on school and i need to store 10^9 random numbers in an array for this purpose. I h...
[7 replies] Last: [quote=JLBorges]The amount of storage available in the run-time stack ... (by Enoizat)
forward a struct with a unique_ptr
 
I'm attempting to pass a rvalue struct, which has a unique_ptr as one of its members, as an argument...
[1 reply] : Use std::forward only with forwarding references (to propagate th... (by JLBorges)
What should we do if we want to create a custom random number generator class?
 
Can anyone explain how to create a simple class that produces random numbers, I mean a custom class ...
[11 replies] Last: If you want to have some very simple fun, make a PRNG using von Neum... (by Duthomhas)
remove_copy_if
 
Just practicing algorithms. Can anybody point out why temp is null after using remove_copy_if ...
[5 replies] Last: [quote=Peter87]That's why he used std::inserter Too right!! Thanks a ... (by Enoizat)
by Kuluoz
How to clear Header File Problem?
 
my.h #include <iostream.h> #include <stdio.h> typedef struct book { int bookindex_num ; ...
[7 replies] Last: You should also decide in what language you want to program. Is it C o... (by Enoizat)
How do I rename an existing file using c++
 
How do I rename an existing file using c++?? is there any function in fstream ?? Thanks in a...
[5 replies] Last: Thanks man , You are awesome :) :) (by rajhansk)
Accelerated C++ istream question
 
I'm in chapter 5 and there is a thing I don't understand. When creating for example a function to in...
[4 replies] Last: Oh, I see. Thanks! (by AwesomeGuy)
What C++ standard follow the version gcc 4.6.4?
 
I'm having some problems with the type "auto". So I'm wondering if I am using a gcc version previous...
[3 replies] Last: Check from the manual of your installed gcc % man g++ the descriptio... (by keskiverto)
by hyeon
return statement
 
What are those extra and seemingly pointless return statements in the void functions ??? What does i...
[3 replies] Last: Ah, good man. Glad to have helped. (And sorry to have mis-thought.) (by Duthomhas)
Pages: 1... 7891011... 25
  Archived months: [jun2017]

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