General C++ Programming (Page 9)

These lines are reading a long loop
 
I want to read a line (record) of a CSV file. And so as to increase accuracy of hitting the correct ...
[2 replies] Last: Just wondering is the search on all these terms redundant? Guessing (b... (by TheIdeasMan)
whats wrong with this code? run-time error
 
Hi Twilight zone on review here...what am I doing wrong? Compiles fine, but throws run-time error (...
[14 replies] Last: I got it, thx *p_ptr points to allocated memory that has no name... (by technologist)
by Nico
How to make a thread safe DLL?
 
Hello, I am creating a DLL and I would like the application that uses it to be able to use the s...
[7 replies] Last: Hello, I think I see what you did there (took me a while). So I chec... (by Nico)
Adding to a map of unique pointers
 
Hi, I am trying to convert my program to use smart pointers but am having trouble creating a map of...
[4 replies] Last: Thanks for clearing that up. I should be able to finish converting my ... (by asterisk nullptr)
float Nan
 
how to treat a flaot as Nan? method1: float x; if(x!=x){"x is a Nan"} method2: float x; if((...
[1 reply] : std::isnan is better: http://www.cplusplus.com/reference/cmath/isna... (by Cubbi)
return *this
 
*this at the end of a function snippet: return (*this); I read that this is returning the cla...
[4 replies] Last: Thx, that worked fine! Going just a little deeper, what does returnin... (by MikeyBoy)
by taha24
logic gates functions
 
this a four logic gate contains the logic : AND, OR and NOT, and it suppose to take four in put and ...
[1 reply] : http://www.cplusplus.com/forum/beginner/195539/ (by kemort)
Understanding Massif Memory Usage Measurements
 
I've recently been attempting the problems on CodeEval.com, where solutions are rated on execution t...
[no replies]
assign values to struct string[2]
 
I have googled and have not found anything relating to this, or am just looking for the wrong thing....
[2 replies] Last: sorry. the problem is that when t changes from 0 to 1 and I do a watch... (by jwalpole)
Kalman filter, measurements and estimation
 
Hello, I am using a Kalman filter with a PI controller. The goal is to control a mirror to stabi...
[no replies]
Physics engine
 
Im thinking about trying to write some basic physics engine. Do games have a single physics engine i...
[2 replies] Last: OK ty. So i just have to dispatch worker threads if i need multi threa... (by vastrolorde)
Type of C++ Programming
 
I heard that alot of website/games use C++, but what 'type' of C++ do they use? At all my C++ progra...
[2 replies] Last: It might be a little bit surprising that the website/games use the exa... (by liuyang)
by Omni
Error when compiling
 
Well, I'm doing a code that works like a register machine. You can register a product, inserting the...
[2 replies] Last: Im pretty sure you accessed memory not belong to you. Issue 1: A very... (by liuyang)
by dailei
Question about stl code
 
I read some codes implementing iterate in STL and I'm puzzled by it's definition :(partly) templa...
[2 replies] Last: The implementation is sgi-stl ( g++. 2.91.57) I read the code later an... (by dailei)
Sequence Points - Order functions are being called
 
I'm a little confused, I was reading this article here http://stackoverflow.com/questions/3457967/w...
[9 replies] Last: @ JLBorges Thanks for your always interesting replies :+) Perhaps w... (by TheIdeasMan)
help
 
hey guys can someone explain to me how can I solve this ,,,,, Write two functions to compute the va...
[2 replies] Last: thank you that was helpful really appreciate it .... (by rakan511)
using || in do-while loop
 
I have this program here, it isn't complete, just starting it off. It's a switch sequence within a d...
[3 replies] Last: Here, given the way you are using the switch statement, you could do t... (by andywestken)
this program isn't working and i don't know why?
 
#include <cstdio> int main(){ int s=12; int c=0; int l=1; freopen("hallin.txt","r",stdin); ...
[2 replies] Last: Line 10, s-l; , is not doing anything. (by closed account z05DSL3A)
how can i read a gif file byte a byte?
 
heres what i know about the gif files: 1 - the 0x2C(',') is the Image Separator; 2 - the 0X3B(';')...
[1 reply] : Make sure you opened the file in binary mode. (by Peter87)
I need some assist here , my C++ code is not working
 
My code is as below , I cannot display anything out , I spent a whole day on checking the mistakes ,...
[4 replies] Last: I found out what's the problem already , thanks guys (by badbuddy1)
Pages: 1... 7891011... 24
  Archived months: [jun2016]

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