General C++ Programming (Page 6)

by MegsD
question on VOID swapping
 
Hello im in an intro to c++ class and we were discussing void swapping which barely made any sense f...
[3 replies] Last: thanks (by MegsD)
meaning of size_t
 
I recently came across this keyword size_t,I read about it in the official C++ documentation but did...
[6 replies] Last: Thank u so much,I got it now :) (by SoumyadeepRoy)
Truncating a float to a specified number of decimal digits (1,2)
 
The ios.precision(n) function rounds a floating-point value rather than truncating it. To truncate ...
[29 replies] Last: Comedy gold. (by helios)
Can anyone explain this bit shift to me...
 
Suppose I have two integers. Suppose int a = 7 and int b = 3. I know that a | b will be 0x7 because...
[2 replies] Last: FUCKING NAILING IT MAN THANKS!!! I totally get it even though 1011 is ... (by Darkpony)
operator overloading
 
Hey guys, I'trying to overload the >> and << operators but a lot errors are coming up and I can't ...
[4 replies] Last: Thanks!! I didn't saw it before (by unkinkedash)
Infinite display loop
 
I am writing a program that reads from a file a list of numbers and sorts them in ascending order. ...
[1 reply] : So I figured it out. I removed my do while loop and it worked, but I d... (by the lone programmer)
char input help
 
I am having a problem when the user enters the name for the animal, as it is obviously only storing ...
[2 replies] Last: Thanks for the help and I sort of understand what you are saying about... (by can5100)
float numbers
 
Create a program that asks the user for two float numbers. Then asks the user if they would like to...
[1 reply] : duplicate post: http://www.cplusplus.com/forum/general/223019/ (by Chervil)
help me :(
 
Create a program that asks the user for two float numbers. Then asks the user if they would like to...
[1 reply] : Basic input and output: http://www.cplusplus.com/doc/tutorial/basic_io... (by Repeater)
by Ganado
Image editor - efficient pixel data
 
I'm making a simple image editor for fun. It has a feature that's analogous to having multiple frame...
[10 replies] Last: You're describing software-based rendering. This is still possible (in... (by helios)
Do While Loop
 
I need help making this program work #include <iostream> using namespace std; int main() ...
[1 reply] : Original code with code tags to aid legibility : [co de] your code... (by Chervil)
The advantages of iterators
 
Hello all, I finished chapter 20 of the book " Programming Principle and Practice using C++ ". Ther...
[5 replies] Last: Theory is fine but when there is an example (on the explained subject)... (by Frank14)
Can I use cout statement in a void func in a Header class?
 
Below is the Header, I have trouble with. Anyways I cant use cout here, please give me some pointer ...
[2 replies] Last: Thanks. I tried it and it worked. Thanks alot. (by mpansilu)
C++ and Linux
 
Hello guys, I'm an intermediate-level programmer of C++ and have recently started studying Qt, QML ...
[8 replies] Last: Thank you all very much. I appreciate your help. (by Frank14)
by AB21
Help with ERROR statement please?
 
This is my assignment. Write a program that computes the quarterly average sales for a salesperson ...
[1 reply] : If you've removed the statement you're having problems with, how are w... (by AbstractionAnon)
Calculate highest grades
 
I am creating a program that when you input a .txt and input an output file .txt also into the progr...
[2 replies] Last: Thomas1965 how would i do that, and yes (by Brandon i)
Loop won't break right
 
Hi folks! Got stuck on an assignment. It's 99% done and does what I need it to do except for one thi...
[2 replies] Last: Had to tweak it a little bit to fit my code, but it made SO much more ... (by Corbenik)
File handling problems for struct.
 
Hi guys. can someone help me? my problem is that i want to put the data i streamed to a file back to...
[3 replies] Last: > what is stm stm is the name of the variable (of type 'reference t... (by JLBorges)
What does ambiguously overloading the initializer_list constructor mean.
 
Hi guys :) Pardon me if I have not framed the question clearly :/ I was reading through Herb Shut...
[no replies]
Pages: 1... 45678... 23
  Archived months: [aug2017]

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