General C++ Programming (Page 64)

Why assign out-of-range value to signed integral type will generate machine depedent results?
 
Can anyone give me an example of a value about how can it varies dependent on the machine? I just...
[2 replies] Last: #include <iostream> #include <limits> int main() { long long v ... (by JLBorges)
by mjlohr
bubble sort
 
Hi. I need a lot of help with this. I do not understand it at all. Can someone please explain this ...
[1 reply] : Bubble sort is explained here. https://en.wikipedia.org/wiki/Bubble_so... (by kbw)
i/o functions and operations
 
i want to make a quiz for that i have decided that i will store a number of questions in a text fil...
[no replies]
by Gyiove
Run both in cpu and graphics card.
 
Hello! Is there possible to control what controls the process? Like somehow switching from graph...
[no replies]
by larjy
Code doesn't do calculation
 
Overview: I'm creating a code to simulate quantum tunneling current. I'm getting the code to out...
[6 replies] Last: I can't thank you enough! That's fixed it. Brilliant, I really apprec... (by larjy)
by Gyiove
weird double values on cout
 
Hello! Here is code first: //fp_screen.h class fp_screen{ public: double fps; double xx3; // f...
[5 replies] Last: Problem solved i think. // I calculate fps outside here if( xx5 < ... (by Gyiove)
expression must have a pointer-to-member type
 
I created a class called Polynomial that asks the user for coefficients and exponent. I also created...
[4 replies] Last: The first line of code that he posted does that? So does the second... (by cire)
How to stop console from pausing?
 
Just a quick newbie question: I'm doing a console application and whenever I open a .exe using syste...
[1 reply] : Do not use system(), obviosly. Use WinAPI: http://msdn.microsoft.com/... (by MiiNiPaa)
by Chubby
why doesnt display?
 
#include <iostream> .... Rectangle r; Point xny; Asking user for info .... // I am tryi...
[10 replies] Last: I see it because r is one who have value from user and xny come from n... (by Chubby)
by kimi86
Assignment operator for a class with reference
 
Class A {..........} Class B: {.... private U& u;} I need to write the copy constructor ...
[3 replies] Last: To quote the C++ FAQ, C++ gives you the choice: use the assignment op... (by Cubbi)
Creating string representation of unsigned char bits
 
Hello, I need to convert the bit representation of an unsigned char into a string. so like 254 wo...
[4 replies] Last: #include <string> #include <limits> std::string bin2string( unsigned... (by JLBorges)
by Dkob1
Need help with an equation
 
How do I get an output like this using cin.peek? Please enter an expression (like `4 * 5` or `ln...
[no replies]
by Dkob1
Error in my program
 
I keep getting an error for undeclared choice and cin, I don't understand what to do? #include...
[6 replies] Last: ok thanks (by Dkob1)
Symbolic names basic doubt
 
Hello, I'm learning how to use c++ because I have to work with a code written with it and there's a ...
[2 replies] Last: So I don't have to pay much attention to this in order to understand h... (by ryllprous)
Replacing String in Hangman Game
 
Hi, I'm making a hangman game. All i need to do is after the user guesses the letter correctly it r...
[2 replies] Last: I changed the part that i need help with (by shayanaijaz)
Problem with User defined functions!
 
I have a problem converting some of my codes to a function like the adding a value at a queue. this...
[6 replies] Last: Haha! Now I have a bit of understanding of what it is all about. All m... (by Skhiburdhurs)
Question About The First Argument In Main()
 
Does anybody know why the first parameter to "main()" is a signed integer instead of an unsigned or ...
[3 replies] Last: It's not convention, it's for backwards compatibility. Back before C h... (by LB)
Can main() be called recursively?
 
Can main() be called recursively?
[6 replies] Last: i dont think there is ever a good reason to call main You're right, ... (by MikeyBoy)
Consistent random numbers across implementations
 
If I seed with the same seed I want the same sequence of numbers no matter if I use GCC, Clang, VC++...
[3 replies] Last: Ok. Thanks you for confirming my thoughts. Much appreciated. (by Peter87)
by y12321
problem with reading a string and comparing
 
Hi! I'm trying to read a string and then compare it to a word. My code: char* cmd = "start"; s...
[4 replies] Last: Well, you do not need strcmp with std::string, you can compare directl... (by MiiNiPaa)
Pages: 1... 6263646566... 70
  Archived months: [feb2014]

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